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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...