How to use if else in logstash output

That is exactly what the sprintf field reference I suggested will do.

1 Like