Splunk Search

Display a single value from multyple value filed in the table.

bigll
Path Finder

I have filed "Labels" with multiple value in the single filed.
I need to see only OS value red hat(linux) or windows 2019
I  tried eval in SPL but as a result I gut eather first value or empty cell.

Thank you.

Please see eval statement and sample data below.
--------
| eval Labels= split (Labels, " ")
------------------------------

Sample data before eval

development
red hat(linux)
main_ucmdb

or

contingency
production
red hat(linux)
main_ucmdb

or 
production
windows 2019
wintel server
microsoft windows server 2019 standard
main_ucmdb

Labels (3)
Tags (1)
0 Karma

PickleRick
SplunkTrust
SplunkTrust

And how do you decide which label is the one you want? Your examples aren'r consistent here in term of the label order.

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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...