Hi,
I'm trying to combine the values of multiple fields to together form a single field name in an eval if statement.
Something like the example below.
Is that in any way possible?
Thanks for your help!
| eval {operation}_{merchant}_{country}=if((operation=operation AND country=country AND merchant=merchant), {operation}_{merchant}_{country}+1, 0)
| makeresults
| eval _raw="operation merchant country
1 2 3
4 5 6
7 8 9
10 11 12"
| multikv
| table operation merchant country
| eval true_condition=$country$+1
| eval {operation}_{merchant}_{country}=if(1==0,$operation$."_".$merchant$."_".$true_conditon$,0)
This is a sample search.
Change the if
search condition to suit your needs.
@jurjenterpstra
Can you please share some sample data and expected results?
@jurjenterpstra In order for community to assist you better you should provide more context with your data. For example what are some of the sample data and what is the output you need.