Splunk Search

Using rex to extract a field from transactioned event

markthompson
Builder

Hi,
I'm trying to extract 2 fields from a transacted search, one for the max and one for the usage.

looks like;

2015-03-12 12:10:11,180 INFO metrics - type=GAUGE, name=heap.max, value=1908408320
2015-03-12 12:10:11,181 INFO metrics - type=GAUGE, name=heap.used, value=82831232

0 Karma
1 Solution

markthompson
Builder

I have solved this by using;

rex field=_raw "name=heap.max, value=(?<Max>\S+)" | rex field=_raw "name=heap.used, value=(?<Used>\S+)"

View solution in original post

markthompson
Builder

I have solved this by using;

rex field=_raw "name=heap.max, value=(?<Max>\S+)" | rex field=_raw "name=heap.used, value=(?<Used>\S+)"
Get Updates on the Splunk Community!

Splunk Cloud | Empowering Splunk Administrators with Admin Config Service (ACS)

Greetings, Splunk Cloud Admins and Splunk enthusiasts! The Admin Configuration Service (ACS) team is excited ...

Tech Talk | One Log to Rule Them All

One log to rule them all: how you can centralize your troubleshooting with Splunk logs We know how important ...

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through: An introduction to the Splunk Threat ...