Can I get only one data in logstash's output?
If the data after filter like:
"a" => 1,
"b" => 2,
"c" => 3,
in the output, send it to elasticsearch.
output {
elasticsearch {
protocol => http
host => "ES_NODE_HOST"
}
}
I want to add another output but only get a
:
output {
elasticsearch { # It get a,b,c
protocol => http
host => "ES_NODE_HOST"
}
file { # It get a
path => ...
codec => line { format => "custom format: %{message}"}
}
}
Is it possible?