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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...