Splunk Search

need to extract multiple values for a field in a custom event

New Member

The whole event is coming in as below. Need eventtype to extract "event_type={type}" and size to extract all the values in size

Tags (1)
0 Karma


please try this one:

very good site to test regex expressions -> www.regex101.com

0 Karma


Sorry I pasted the wrong regex

0 Karma

Splunk Employee
Splunk Employee
| rex max_match=9999 "event_type=(?<event_type>[^\"]+)\",\"size\":\"(?<size>\d+)\""
0 Karma
Get Updates on the Splunk Community!

Index This | How many sides does a circle have?

February 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

Registration for Splunk University is Now Open!

Are you ready for an adventure in learning?   Brace yourselves because Splunk University is back, and it's ...

Splunkbase | Splunk Dashboard Examples App for SimpleXML End of Life

The Splunk Dashboard Examples App for SimpleXML will reach end of support on Dec 19, 2024, after which no new ...