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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...