Hello,
I am trying to set up a logstash pipeline with input source AWS S3. I set up as below and tested, and saw all log files were successfully retrieved by logstash. but only problem was from using "prefix" option.
input {
s3 {
bucket => "xxx"
region => "xxx"
access_key_id => "xxx"
secret_access_key => "xxx"
id => "xxx"
**prefix =>** "sample-log/E1GL1WCR8XPQ2H*"
type => "s3"
}
# stdin {}
}
the source S3 structure looks attached image (I captured from AWS console).
I put prefix option as above but got INFO line as below. It seemed logstash couldn't find file with prefix.
[2019-08-23T01:30:25,410][INFO ][logstash.inputs.s3 ] S3 input: No files found in bucket {:prefix=>"sample-log/E1GL1WCR8XPQ2H*"}
was my above input code something wrong?
the log file from S3 should be indexed into ES based on the prefix of the log file name.
please advise.
thank you!
[I am using Logstash 6.8.2]