Feature: add rsyslog multiline logs

This commit is contained in:
2017-05-24 14:59:12 +02:00
parent 104cecde72
commit 84dbfe7dba
6 changed files with 68 additions and 0 deletions

View File

@@ -23,6 +23,12 @@ input {
topics => ["apache-forwarder"]
client_id => "logstash_indexer_1"
}
kafka {
codec => json{}
bootstrap_servers => "kafka:9092"
topics => ["javalog"]
client_id => "logstash_indexer_1"
}
}
filter {
@@ -130,6 +136,12 @@ output {
index => "apache-%{+YYYYMM}"
}
}
if [type] == "javalog" {
elasticsearch {
hosts => ["elasticsearch:9200"]
index => "javalog-%{+YYYYMM}"
}
}
if [type] == "random-forwarder" {
elasticsearch {
hosts => ["elasticsearch:9200"]