Questions tagged [aws-cloudwatch-log-insights]

301 questions
0
votes
0 answers

AWS CloudWatch get log using CLI

I'm studying AWS CloudWatch, which now I can get some logs using the AWS Console by using "log insights". But when I try to use CLI for some operation(Document here), I can't find any command which is associated with exporting log/ show log. Is…
0
votes
0 answers

Cloudwatch Stats Count if greater than zero

In Cloudwatch Log Insights, we have a query which totals some transactions based on the logs. We'd like to add one more count - that is the number of transactions that have a value above zero or is not null for a given query. fields @timestamp,…
0
votes
0 answers

Count how often logs with dynamic field value that is the same gets emitted?

I don't think this is possible, but wanted to ask anyway -- is there a way in Cloudwatch Insights where I can find the count of how often a log with a dynamic value is emitted with the same value from distinct logs? The use case I have is we want to…
aug
  • 11,138
  • 9
  • 72
  • 93
0
votes
1 answer

Make dashboard with Athena output of SQL Query from Editor

I want to use the output of sql query in Athena and turn that output into a dashboard/visuals so that it reflects the output in real time. I am researching this but I couldn't find the step by step approach to do this except few cloud watch links.…
0
votes
0 answers

Cloudwatch Logs Insights aggregating data for application dashboard

I have a lambda function that makes a call to a ticketing API, and returns a list of tickets and their attributes (open/resolved, assignee, etc). I want to build a dashboard within CloudWatch to show this information but I'm not sure if I'm…
0
votes
0 answers

Is there any way to print on cloudwatch dashboard Status as Running of a particular codebuildproject , if cloudwatch logs is still running

Is there any way to print on cloudwatch dashboard Status as Running of a particular codebuildproject , if cloudwatch logs is still running. I tried with filtering keyword from logs but it isn't helping.
0
votes
0 answers

Monitoring latency statistics with Prometheus

I have a job which I am interested in tracking the latency of with Prometheus, with source values like this: timestamp | latency ------------------- 0 | 15ms 1 | 20ms 2 | 18ms 5 | 22ms 6 | 30ms 8 |…
zpr
  • 2,886
  • 1
  • 18
  • 21
0
votes
0 answers

Regex in Log Insight Parse

I have 2 kind of response body for a api: 1st: [RESPONSE] ENDPOINT=/my_dummy_endpoint , RESPONSE_BODY= {my_dummy_variable_1":false} and 2nd: [RESPONSE] ENDPOINT=/my_dummy_endpoint , RESPONSE_BODY= { "my_dummy_variable_1":true,…
ratnesh
  • 436
  • 1
  • 5
  • 16
0
votes
0 answers

Aggregating Fields from AWS CloudWatch Logs

I am pretty new to CloudWatch unfortunately, and have a rather complex task. So after some extensive work, we have some logs that break down all of our clicks into reasons that it was tossed or did not work as good as it could have. It comes in with…
0
votes
0 answers

Cloudwatch 'number' widget that displays number of active alarms

I am trying to configure a simple cloudwatch 'number' widget that displays the total number of alarms currently in 'in-alarm' status ...and likewise another one that displays the total number of 'ok' alarms. (i will colour the widgets red and green…
0
votes
0 answers

CloudWatch Log Insights using "in" to match any message that has any item in array

I have an array with a list of unique literal strings (ids) and I want to use the "in" keyword to test for set membership. I've used the following query, the ephemeral field "id" extracts the id from the message. fields @timestamp,@message,…
codeinaire
  • 1,682
  • 1
  • 13
  • 26
0
votes
0 answers

Cloudwatch Logs Insights nested aggregated functions

I have a query to retrieve how much time an specific 'event' takes to finish: fields @timestamp, @message | parse @message "[Id: *] *" as eventID, loggingMessage | stats sortsFirst(@timestamp) as date1, sortsLast(@timestamp) as date2 by…
0
votes
1 answer

How do I show CloudWatch stats per server?

I have some metrics that are being published to CloudWatch logs. (It would probably be better as CloudWatch metrics) Basic Query: fields @timestamp, jvm.threads.live, process.cpu.usage, server , system.load.average.1m , jvm.memory.usage.after.gc |…
0
votes
1 answer

AWS Log insights, parse all occurrences in a log

I have a question concerning log insights in aws. How is it possible to fetch all the occurrences in a log ? I tried with and without a regex and the parse will only fetch the first occurrence. I have a log like this (and multiple entries of this…
Pred05
  • 492
  • 1
  • 3
  • 13