2
我一直在試驗Logstash’s Loggly output,並且已經注意到它爲從輸入讀取的每個日誌事件發出一個HTTP POST請求。配置Logstash Loggly輸出以使用Loggly的批處理API
我的配置是這樣的:
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,使您可以發送多個日誌事件在一個POST請求。是否可以將Loggly輸出配置爲使用此批處理API而不是默認輸入API?
謝謝