Ad slot: top

SPL

List all fields for an index

Description

Submitted by Azeemering

A few different queries / methods to list all fields for indexes.
9 0
index=yourindex| fieldsummary | table field
or
index=yourindex | stats values(*) AS * | transpose | table column | rename column AS Fieldnames
or
index=yourindex | stats dc() as * | transpose
or ;-)
index=yourindex | table *

Comments

2 total

GR
Greg Smith
1/19/2022

index=your_index\r\n| fieldsummary\r\n| fields field values

SP
splunk-pony
12/1/2022

It may just be on my instance but when using the fieldsummary command, the distinct count of values returned truncates to 500. There may be a limit configuration adjustment somewhere that would accommodate this.

Leave a comment

You must log in to post a comment.

Ad slot: bottom