Splunk Search

Search is not listing the Extracted field

bshamsian
Path Finder

I am having problems with an extracted field not showing in the search results. I am indexing a log file that among many things it contains the size of certain Queue. The size is outputted in the log in the following format(example):

07/11/12 06:04:30 PM INFO com.foobar.recorderResource handle - 10 events currently in queue.

In the search window I used the following query to extract the field:

host=abc | rex "recorderResource handle - (?P\d+) events currently in queue" | search queueSize="*"

This works great and I see the values. I then created a new extracted field based on the regex pattern I used above as such:

host::abc : EXTRACT-queueSize Inline recorderResource handle - (?P\d+) events currently in queue

However when I do a search for

host=abc

the queueSize extracted field does not show up anywhere - It is not in the 'Selected Fields' section of the leftnav or the 'Suggested Fields' or in the Field Picker popup. I thought it might be because it is in less than %1 of the result so I switched the search string to

host=abc events currently in queue

which would only show results that have the queue size in them and the extracted field still does not show up anywhere. Can anyone suggest what I am doing wrong?

All help is greatly appreciated.

Tags (2)
0 Karma

kenth
Splunk Employee
Splunk Employee

Add to your transforms.conf;

[queueExtract]
REGEX = recorderResource handle - (\d+) events currently in queue
FORMAT = queuesize::$1

and to your props.conf

[host::abc]
REPORT-queueExtract = queueExtract

Should work, but only on that specific host though so I might add it under a sourcetype or source if you've got that.

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...