I am a newbie to Logstash and ES in general, and struggling to add S3 bucket name to logstash output.
I have a setup where we have multiple s3 buckets with RDS instance logs (1 bucket per instance) and we want to harvest the logs from the bucket.
In order to identify the instance, we need to add bucket name to the logstash output but i can't find a way to do that. I am able to add file name via [@metadata][s3][key] but what i need is the bucket name.
Aren't you setting the bucket name in the s3 input confguration (please always post your configuration when you ask a question)? Then just use add_field in the input to add the same string as a field.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.