Questions tagged [aws-cloudwatch-log-insights]
301 questions
1
vote
1 answer
Log retrieval solution using AWS CloudWatch insights logs
I'm planning to implement a log retrieval solution from AWS CloudWatch logs using Insights logs query which let the users get the logs for 15 days. The queried data can range any where between KBs to GBs for that time frame.
Is there any way to…

cosmos713
- 87
- 3
- 7
1
vote
0 answers
How to get entire period aws cloud watch logs data in logs insights query
I have aws cloud watch log group like "data_analysis" and retention period is 30 days and yesterday i changed the retention period to "never expires" . while query the data using "logs insights" on "data_analysis" log group still getting 30days…

Prasad
- 303
- 1
- 4
- 14
1
vote
1 answer
Mediatailor metrics in Cloudwatch
I'm looking Mediatailor metrics in Cloudwatch and found that for "Avail" group there are: duration, observedDuration, filledDuration, observedFilledDuracion, fillRate, observedFillRate.
For example for duration, documentation says that duration is a…

Pavel Angel Mendoza Villafane
- 417
- 4
- 21
1
vote
1 answer
AWS LogInsights query stats average of count
I have cloudwatch entries that may be group with respect to a certain field. To be clear assume that field is city. I would like to count the entries with respect to cities. This is the easy part.
fields city
|stats count(*) by city
However I…

kundante
- 2,100
- 2
- 16
- 20
1
vote
1 answer
Parsing JSON with CloudWatch Insight Logs
I am having difficulty in parsing my JSON to only show the ingestId of my messages. My JSON file that is uploaded to CloudWatch is like so:
{
"message": "changeStatus ingestId=2343d8sf-etc,
status=UPLOADING",
"level":…

Roma
- 535
- 6
- 18
1
vote
1 answer
aws.logger.serilog key and secret configuration .netCore
so I added serilog for logging I was using it locally to log on files, but I want use serilog to update the logs on AWS cloud watch or add a log group on the cloud watch but I don't know where to add the secret and key or how to configure serilog to…

Asker
- 97
- 1
- 11
1
vote
1 answer
How to split Cloudwatch field by its value in insights query
I'm trying to create an AWS dashboard visualization that displays the counts of cache hits vs. misses over a period of time. To do this, I'm setting up a log type dashboard with an insights query on the log. To be as simple as possible, my log is…

NateH06
- 3,154
- 7
- 32
- 56
1
vote
1 answer
Amazon CloudWatch Insights Query
I have logs like this:
I, [2020-06-17T09:32:48.100103 #9] INFO -- : [54b35e04-9c19-443d-adff-b2c3192b5590] Completed 500 Internal Server Error in 7ms (ActiveRecord: 2.3ms | Allocations: 1705)
I, [2020-06-17T10:37:27.169909 #9] INFO -- :…

Murakami
- 3,474
- 7
- 35
- 89
1
vote
1 answer
Cloudwatch insight grok extract json as field
I am trying to extra a json field which can be either null or array.
example logs is;
04 Jun 2020 09:48:00,741 [32m[INFO] [m 4277a4fa-13fe-49f9-8348-9c515c988481 Class1: Method1: {"property1":"property1Value","property2":["string1", "string2"] ,…

Vivek Goel
- 22,942
- 29
- 114
- 186
1
vote
2 answers
How do I create a Cloudwatch Log Filter with a resource?
I can't figure out how to deploy queries from Cloudwatch Log Insights using terraform. Is this supported? If not, is it on it's way?
Specifically, referring to the query syntax such as the below:
FIELDS @message
| PARSE @message "[*] *" as…

aaronsteers
- 2,277
- 2
- 21
- 38
1
vote
1 answer
In CloudWatch Insights, how do I build a histogram of an aggregation function (second level query)?
I'm not sure I'm asking this correctly which is probably why I can't find the solution. So I'll provide an example.
Suppose I have a log of employees hired by managers in a given time period. I can create a query that groups by manager and shows the…

kane
- 5,465
- 6
- 44
- 72
1
vote
2 answers
parse syntax for xml message in CloudWatch Insights
I have a message in XML format.

Hector
- 45
- 7
1
vote
2 answers
Specify credentials to AWS Cloudwatch logs Client
Hi I am trying to create a exception logs of my java application code in AWS cloudwatch for that I have used CloudWatchLogsClient to put my events to it but i am getting a below Error
DEBUG…

Mohan vel
- 505
- 9
- 29
1
vote
1 answer
AWS Cloudwatch Logs to Azure Log Analytics
I am aware of the HTTP Data Collector API that can be used to pull data into Azure Log analytics, my ask here is on AWS Cloudwatch data to Azure. We have Azure hosted application and an external AWS hosted Serverless Lamda functions and we want to…

user42012
- 722
- 12
- 33
1
vote
1 answer
Not able to call start_query method
Not able to call start_query method
I am trying to query cloudwatch Logs with the below code. But I got the below error
TypeError: cloudwatchlogs.startQuery is not a function
It seems the API was not able to find startQuery method.
Kindly help…

Kiran Kumar
- 51
- 1
- 2
- 8