Splunk Search

How would I get stats on the fieldname (not value)?

the_wolverine
Champion

I'm working with multiple logs which have different field naming conventions for the same date. Is there a way to list out fieldnames (by sourcetype) ?

Tags (3)
0 Karma
1 Solution

MuS
Legend

Hi the_wolverine

I'm pretty sure you can use this as a start and do some fancy stuff out of it:

  | stats dc(*) as * by sourcetype 

cheers,
MuS

View solution in original post

MuS
Legend

Hi the_wolverine

I'm pretty sure you can use this as a start and do some fancy stuff out of it:

  | stats dc(*) as * by sourcetype 

cheers,
MuS

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...