Splunk Search

Extra indexed field in _meta require * in search query

jeanmatthieu
Explorer

Hi,

I have an inputs.conf as below in my UniversalForwarder

[monitor::///private/var/log/system.log]
_meta = serial_number::"ABC123456"
disabled = False
index = core
sourcetype = osx_syslog

Events are pushed nicely and search works well except for one minor issue.
To search by serial numbers, I have to do

index=core serial_number::ABC123456

or

index=core serial_number=*ABC123456*

However I wish to be able to search as such

index=core serial_number=ABC123456

I would be grateful if you could help me figure out what additional configuration stanzas might be needed and hopefully this can be set on the SplunkForwarder end.

Thank you for your help!
Jean-Matthieu

the_wolverine
Champion

[serial_number]
INDEXED_VALUE=false

jeanmatthieu
Explorer

Adding stanzas in fields.conf on the indexer help sorting this out

[serial_number]
INDEXED=true

or

[default] 
# Apply to all extra _meta indexed field
INDEXED=true

Will there be an impact on search time extracted fields performance to add the default stanza as defined above ?

Thanks!

ashishmusale
New Member

I tried adding INDEXED=true but that did not work. Any other suggestions?

0 Karma

woodcock
Esteemed Legend

He meant INDEXED=false

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...