Hi Splunker!
I have some trouble extracting values.
for example,
fruits
apple (blah blah blah)
apple (blah2 blah2 blah2)
apple (blah3 blah3 blah3)
melon (blah blah blah)
melon (blah1 blah2 blah3)
orange (blah blah blah)
peach (blah blah blah)
so I want to extract values as below
apple
melon
orange
peach
I tried to use
eval fruit = if('fruit' like "apple%", "apple", if('fruit' like "melon%", "melon", if('fruit' like "orange%", "orange", if('fruit' like "peach%", "peach", 'fruit')))
It was successful, but too inefficient when there are too much values.
Can I extract the values using 'rex mode=sed' ?
or Do you have another way to extract values?
Please Help me Splunker!
... View more