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.

Get Updates on the Splunk Community!

Splunk is Nurturing Tomorrow’s Cybersecurity Leaders Today

Meet Carol Wright. She leads the Splunk Academic Alliance program at Splunk. The Splunk Academic Alliance ...

Part 2: A Guide to Maximizing Splunk IT Service Intelligence

Welcome to the second segment of our guide. In Part 1, we covered the essentials of getting started with ITSI ...

Part 1: A Guide to Maximizing Splunk IT Service Intelligence

As modern IT environments continue to grow in complexity and speed, the ability to efficiently manage and ...