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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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