Splunk Search

How to use Eval in Props.conf?

pfabrizi
Path Finder

I am using EVAL in my props.conf to create a multi-value field.

EVAL-test = split(test,",")

test = this,that,xyz

If I use an existing field and that field is not a multivalued field will become multivalues with the eval and split command or does it remain as is?

Thanks!

0 Karma
1 Solution

tiagofbmm
Influencer

The split just returns a mv field spitting X by the delimited character Y.

If an existing field, say field1 is not multivalued, let's say the values are "a b" or "c d"and you are using split on it, then your are making it multivalued.

raw1 field1
a

b

raw2 field1
c
d

The field will only become a multivalued field if it contains the character which you are using to do the split

View solution in original post

0 Karma

tiagofbmm
Influencer

The split just returns a mv field spitting X by the delimited character Y.

If an existing field, say field1 is not multivalued, let's say the values are "a b" or "c d"and you are using split on it, then your are making it multivalued.

raw1 field1
a

b

raw2 field1
c
d

The field will only become a multivalued field if it contains the character which you are using to do the split

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...