I want to create my document using mysql data, here when creating document i want to use if condition,
This is my mysql data,
id myid1 myid2 name
1 1 2 abc
2 1 2 xyz
i want to create logstash out put based on below condition,
if id == myid1
id => myid1,
name => 'abc'
and
if id == myid2
id => myid2,
name => 'xyz'
is it possible to do?