We are trying to make S3 input prefix as dynamic value.
s3 {
bucket => "bucketName"
aws_credentials_file => "/root/logstash-5.3.0/config/aws_credentials.yaml"
delete => false
interval => 60 # seconds
prefix => "AWSLogs//CloudTrail/" ### ---> Dynamic
type => "cloudtrail"
codec => "cloudtrail"
sincedb_path => "/tmp/sincedb"
region => "us-east-1"
}
We are planning to use HTTP input plugin to get S3 prefix from the user end and passing the same S3 prefix to S3 input plugin. Is it possible to do so?