Logstash CSV adding multiple rows by splitting a column value


I am importing csv file to elasticsearch using logstash.

I need to duplicate a row based on a comma separated column values. This is how the data looks.


I want to add multiple rows based on the number of values in the column 'category' as below.


Kindly suggest me on how to achieve this using logstash.


Use mutate+split to convert the [category] field to an array, then use a split filter to convert that to multiple events.

1 Like

This worked! Thank you so much. I really appreciate for helping me.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.