Splunk Search

Checking if the _meta data is actually indexed and used during searches

pietervi
Path Finder

Hi all,

Our forwarders are adding meta data using inputs.conf

[default]
host = some.host.name
_meta = environment::testing site::somewhere

First question: how can I check if that data is actually correctly stored next to the event? Is there a search command that I could use to show only this metadata.

Second question: how can I check if that meta data is actually used during the search execution?

Thanks,
Pieter

Tags (2)
0 Karma

sbhale
Explorer

I don't know if anyone still cares as this question was posted long ago but here is the answer:
If you want to use the meta fields in search you have to make them indexed fields.
To do this you need to make a change on the indexer.
In fields.conf add the following:

[environment]
indexed=true
[site]
indexed=true

After that you should be able to use 'environmnt=' in your search. And you should also see those two fields show up in the fields list.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

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