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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...