I am using filebeat version 6.8 is fine with prefix path in logstash file config:
s3 { bucket => "${X_S3_BUCKET}" #pr