Splunk Search

how to extract all values separately suing rex command

Puvi
New Member

hi,

i have a string like: AAA TEST BBB 1000 CCC DDD EEE FFF GG 11111
i need to extract all the values separately and display in table..
can you help me in this

Tags (2)
0 Karma

vnravikumar
Champion

Hi

Try this

| makeresults 
| eval test="AAA TEST BBB 1000 CCC DDD EEE FFF GG 11111" 
| rex field=test max_match=0 "(?<output>[^\s]+)" 
| mvexpand output 
| table output
0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...