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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...