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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...