Logstash-output-s3 line termination

I am using the below config, problem with the config is , the events are written in the s3 file, without any line separator. making it hard to read and replay later if required.

s3 {
    access_key_id => "xxx"
    secret_access_key => "yyy"
    region => "us-east-1"
    bucket => "logs.hello.com"
    size_file => 10240
    time_file => 5
    codec => "plain"
    prefix => "raw-logs-backup/%{[fields][client]}/%{+YYYY}/%{+MM}/%{+dd}"
}

It might help to specify the format in the codec

 codec => plain { format => "%{message}
" }

codec => line { format => "%{message}" }
@Badger , thanks , this did the trick

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.