简体   繁体   中英

Configuring the Logstash Loggly Output to Use Loggly's Batch API

I've been experimenting with Logstash's Loggly output , and have noticed that it makes one HTTP POST request for each log event that is read from the input.

My configuration looks like this:

input {
    file {
        type => "some-logs"
        path => "/my-log-file.log"
        codec => "json"
    }
}
output {
    loggly {
        host => "logs-01.loggly.com"
        key => "loggly-customer-key"
        proto => "https"
    }
}

Loggly provides a bulk API that allows you to send multiple log events in a single POST request. Is it possible to configure the Loggly output to use this batch API instead of the default inputs API?

Thanks

Looks like this isn't possible with the current version of the plugin. Instead, I'm using Logback Extensions batch mode and removing Logstash from my solution altogether.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM