Splunk Search

one event one filed multi value

crazyeva
Contributor

hello
I have my log form as multi lines breaked with an empty line
thanks to ziegfried, I have devided each event successfully with his help
now I want to extract a field, in each event, may covers more than one value. 1,2 maybe 3 of them, same REX.

I find slpunk can pick out the first value which match the REX express, the others are dropped.
Can splunk extract multi values in one event with one REGEX or one FIELD name?
Thank you!

Tags (1)
0 Karma
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

crazyeva
Contributor

Thank you very much

0 Karma

kristian_kolb
Ultra Champion
0 Karma

0waste_splunk
Communicator

@kristian.kolb.

can you please explain in detail with some example?

thanks

0 Karma

gkanapathy
Splunk Employee
Splunk Employee

You should look at the max_match parameter of the rex command.

http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex

crazyeva
Contributor

Thank you very mutch.
It is realy a long cause to study on splunk.

0 Karma

Ayn
Legend

Check kristian.kolb's comment.

0 Karma

crazyeva
Contributor

is there any way for pre-extraction
like some parameters in props.conf or transforms.conf?

0 Karma

kristian_kolb
Ultra Champion

Check out how to make multi-valued extraction through MV_ADD in transforms.conf

Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...