venkat_s
(Venkatesh)
March 19, 2021, 8:28am
1
Hello,
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.
Thanks
Badger
March 19, 2021, 2:53pm
2
Use mutate+split to convert the [category] field to an array, then use a split filter to convert that to multiple events.
1 Like
venkat_s
(Venkatesh)
March 19, 2021, 3:22pm
3
This worked! Thank you so much. I really appreciate for helping me.
system
(system)
Closed
April 16, 2021, 3:23pm
4
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.