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 Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...