Getting Data In

Why does metadata command returns only one sourcetype?

dillardo_2
Path Finder

We've got over 50 sourcetypes, however, when I run the command below, I only see syslog under the sourcetype column.

| metadata type=sourcetypes | sort - totalCount

Does anyone have an explanation?

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

It's only looking at your default index(es). Try | metadata type=sourcetypes idnex=* | sort - totalCount.

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

It's only looking at your default index(es). Try | metadata type=sourcetypes idnex=* | sort - totalCount.

---
If this reply helps you, Karma would be appreciated.

dillardo_2
Path Finder

Thanks @richgalloway, this did the trick!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...