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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...