Splunk Search

metadata command returns duplicate sourcetypes - "WinEventLog"

Path Finder


I have this command:

| metadata type=sourcetypes index=wineventlog

The problem is that there are returned multiple lines for  "WinEventLog" sourcetype so I dont understand why that when the names are absolutely same.

I expect to get 1 line per sourcetype.

If I search with index=wineventlog and stats by sourcetype - there is no problem so it is something with metadata command

Same issue  for "wineventlog" sourcetype

Labels (1)
0 Karma


Can you share sourcetypes returned from the search?

If this helps, give a like below.
0 Karma

New Member


It could be because you have multiple sources. Check with:

| metadata type=sources index=wineventlog

 It will likely show WinEventLog:Security, WinEventLog:System, etc.

0 Karma
Get Updates on the Splunk Community!

.conf23 | Get Your Cybersecurity Defense Analyst Certification in Vegas

We’re excited to announce a new Splunk certification exam being released at .conf23! If you’re going to Las ...

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...