How to download aws cloudwatch log data?


(Abhishek) #1

Please tell me about
How to download aws cloudwatch log data?


(Mark Walkom) #2

Probably with https://www.elastic.co/guide/en/logstash/current/plugins-inputs-cloudwatch.html.

If that's not what you want then providing more detail would be helpful.


(Abhishek) #3

I looked into it but it was not helping it returns with an error always as it can not find metrics???


(Mark Walkom) #4

Providing the error and your config would be helpful.


(Abhishek) #5

This is my conf file

input {
cloudwatch {
region => "us-east-1"
access_key_id => "1111"
secret_access_key => "11111"
namespace => "AWS/EC2"
metrics => [ "CPUUtilization" ]
filters => { "Volumes: { attachment.status ⇒ attached }" }
}
}

output {
elasticsearch{ hosts => [ "localhost:9200" ] index => "EC2_CloudWatch1" }
stdout{ codec => "rubydebug" }
}


(Mark Walkom) #7

You are low on disk space.


(Abhishek) #9

Now i am able to access logs.


(system) #10

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.