input - Logstash, how can I add field depending on output? -
i have 1 jdbc input need send 2 different outputs (http , influxdb). need add fields depending on output. hoping use add_field during output stage available during input , filter stages. can suggest solution? logstash 2.4
eg.
input { jdbc { statement => "select col1, col2..." ... } } filter { } output { http { #need add/remove field here http output } influxdb { #need add/remove field here influxdb output } }
multiple outputs send same event outputs. can add field in input{} or filter{} sections, sent both.
if outputs conditional, can have same conditional in filter section add unique fields.
Comments
Post a Comment