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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...