Hi,
It is possible to create multiple index with different column values (In elastic search) with 1 input (beats) ?
My logstash.conf is:
input {
beats {
port => 5044
}
}
filter {
csv {
separator => ","
columns => ["A", "B", "C", "D"]
}
mutate {
remove_field => ["message", "prospector", "tags", "beat", "offset", "@version", "host"]
}
}
output {
elasticsearch {
hosts => "http://localhost:9200"
index => "index-%{[A]}"
manage_template => false
}
elasticsearch {
hosts => "http://localhost:9200"
index => "index-%{[B]}"
manage_template => false
}
}
ex.
index-%{[A]} will have all the csv columns
and index-%{[B]} will have only column B
How to configure logstash output part?