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!

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, ...