logstash-input-cloudwatch-logs
logstash-input-cloudwatch-logs copied to clipboard
Cloud watch logs are not read
Hi Team,
Below is the setting I have mentioned in my pipeline config. I am not able to fetch the aws cloud watch logs though. Not sure what I am missing. I have specified the correct access id and secret key. Also the logs group name is correct. Not sure what I am missing from the config perspective. Do we need to install any other beat shippers for this?
input {
cloudwatch_logs {
id => "cloudwatchid"
log_group => "log group ID"
access_key_id => ""
secret_access_key => ""
log_group_prefix => true
}
}
filter {
}
output {
elasticsearch {
id => "elastic-search-id"
hosts => "elasticsearch:9200"
user => "elastic"
password => "changeme"
}
}
Thanks, Rajesh
I could see the outputs are printed in the logstash stdout. But in Kibana , how to retrieve the elastic search? Is that a indices problem?
You should probably provide an index in your output configuration. Look there: https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html