s3 bucket : elk
folders: syslog, errorlog etc..
filepattern: syslog-
input {
s3 {
access_key_id => ""
secret_access_key => ""
bucket => "elk"
region => "eu-central-1"
prefix => "syslog/syslog-"
additional_settings => {
force_path_style => true
follow_redirects => false
}
}
}
output {
elasticsearch {
hosts => ["http://localhost:9200"]
index => "apache2log-%{+YYYY.MM.dd}"
user => ""
password => ""
}
}
index is happening with all the files under different folders, need to process only files under particular folder
I tried the prefix option with the below formats, but not indexing as expected.
- syslog
- syslog/
- syslog/syslog-