Splunk Search

metadata command returns duplicate sourcetypes - "WinEventLog"

net1993
Path Finder

Hello

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

thambisetty
SplunkTrust
SplunkTrust

Can you share sourcetypes returned from the search?

————————————
If this helps, give a like below.
0 Karma

J0el
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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...