I having a data like
Based on status value need to add one more field and insert good,bad in new field
if status is even number then new field value is good else status is alphabet and odd number than new field value is bad
Used this code in filter(using logstash 5.0)
code => "if event.get('status') % 2 ==0 event.set('STATUS', "Good") else event.set('STATUS', "Bad")"
But not able to fulfill can u guys please help on this is this possible
And can you please provide me the ruby filter reference doc link for further use.