Hi guys,
I'm trying to replace values in an irregular multivalue field.
I don't want to use mvexpand because I need the field remains multivalue.
Here some examples of my multivalues fields
#1
| makeresults
| eval field1="115000240259839935-619677868589516300
1003000210260195023-294635473830872390
1003000210260241553-580541817408914764
531000140235102831-490142552617583496
115000240260262212-692365156372645389"
| eval field2="448000250026778748-44531981890881098
1286000030219284359-851572649149989069"
| rename COMMENT as "from here, the logic"
| rex max_match=0 field=field1 "(?<result1>(?m)^\d+)"
| rex max_match=0 field=field2 "(?<result2>(?m)^\d+)"
How about rex?
| eval yourfield=mvmap(yourfield,mvindex(split(yourfield,"-"),0))
Hi ITWhisperer,
this i s exactly what I was looking for.
Thank you very much
Great Job
Regards
Mario