CloudWatch logs monitor

20 views
Skip to first unread message

mohd

unread,
Mar 17, 2020, 5:32:39 AM3/17/20
to Prometheus Users
Hello Team,

Could anyone please help me on to monitor AWS CloudWatch logs.

Trying with Insight query for
vpcflow logs (top 10 bytes transfers by source and destination IP addresses)

stats sum(bytes) as bytesTransferred by srcAddr, dstAddr
| sort bytesTransferred desc
| limit 10

Any help on setting up beatiful dashboards for CloudWatch logs greatly appreciated.

Thank you.

Screenshot_1.png

mohd

unread,
Mar 17, 2020, 6:18:01 AM3/17/20
to Prometheus Users
Not sure how it is scraping data from 1970.

I am trying to get top 20 source IP address with highest number of reject request.

filter action="REJECT"
| stats count(*) as numRejections by srcAddr
| sort numRejections desc
| limit 20

Please find the attachment.

Thank you.
Data-Outside-Time-Range.png

Brian Candler

unread,
Mar 17, 2020, 7:10:47 AM3/17/20
to Prometheus Users
Sorry, but I don't think this has anything to do with prometheus.  Prometheus does not handle logs, and it certainly doesn't have the query language you've shown.

Try the grafana community discussion groups perhaps - or a forum for AWS users (if it's an issue with Cloudwatch Logs).

mohd

unread,
Mar 17, 2020, 7:12:48 AM3/17/20
to Prometheus Users
Thanks for your reply Brain Candler.

Thank you.
Reply all
Reply to author
Forward
0 new messages