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!

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...

Splunk Answers Content Calendar, July Edition I

Hello Community! Welcome to another month of Community Content Calendar series! For the month of July, we will ...