Splunk Search

index field list

cyberpop
New Member

I have a index, I want to know all display fields list and field description for this index without running the search,  where in splunk enterprise security, can we find this info?

Labels (1)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @cyberpop,

Splunk isn't a DB, so there isn't a list of fields related to an index, in other words, an index isn't a table!

So in Splunk fields extraction is ususally related to sourcetype, so you could try to see in [Settings -- Sourcetypes] if there is the list of the fields extractions, but it could be not sufficient, because if in your logs, theres something like "field=value", there's no field extraction and Splunk automatically recognize a field.

In conclusion, the only way to have the field list is to run a search like this:

index=your_index
| table *
| transpose
| table column

Ciao.

Giuseppe

0 Karma

FrankVl
Ultra Champion

In addition to @gcusello  his comment, you can also use the '| fieldsummary' command to get a summary of all fields extracted from the events in a certain index.

index=your_index | fieldsummary

Get Updates on the Splunk Community!

Splunk Platform | Upgrading your Splunk Deployment to Python 3.9

Splunk initially announced the removal of Python 2 during the release of Splunk Enterprise 8.0.0, aiming to ...

From Product Design to User Insights: Boosting App Developer Identity on Splunkbase

co-authored by Yiyun Zhu & Dan Hosaka Engaging with the Community at .conf24 At .conf24, we revitalized the ...

Detect and Resolve Issues in a Kubernetes Environment

We’ve gone through common problems one can encounter in a Kubernetes environment, their impacts, and the ...