Splunk Search

In Extract Fields: how can you extract Multivalue Field using Regex Code?

moaf13
Path Finder

So I have this:

                    01010101 01/02/2015 4200000  U-55555555-0000  1.00 
               Q CC                100 Random Text with numbers 676
               R BB                2 Another Random Text Message 23$kjaldsf@@

      01010101 01/02/2015 4200000  U-55555555-0000  1.00 
value 1 ==>(Q) CC                100 Random Text with numbers 676
value 2 ==>(R) BB                2 Another Random Text Message 23$kjaldsf@@

I can extract both fields using this in search Rex command _index search ....| rex field=_raw "\s(?[A-z])\s"_
returns the multivalue field i want.
However if i use the same regex during Extract field, it only takes the first value "Q" not the second one. So how can i extract multivalue field using Extract Field option. Let me know if that is even possible, if it is please let me know how?

this is how i wanted it to be

otherField       WantedField        Date                   AnotherField              AnotherMultiValueField ....etc
01010101                 Q          01/02/2015              U-5555555-0000                        CC
                         R                                                                        BB 
Tags (2)
0 Karma
1 Solution

moaf13
Path Finder

I was able to find out the answer, it can be done in Tranforms.config or the rex pipe in search head.

View solution in original post

0 Karma

moaf13
Path Finder

I was able to find out the answer, it can be done in Tranforms.config or the rex pipe in search head.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...