Splunk Search

How do you merge events on common field values?

alanzchan
Path Finder

Basically I have two fields, index and sourcetypes.

Index:          Sourcetype:
index1          sourcetypeA
index2          sourcetypeA

How do I merge the values of index on the common field value in source type?

Expected result:

Sourcetype:
sourcetypeA      index1
                 index2
0 Karma

laurie_gellatly
Communicator

Merge - could mean several things.

search index=index1 OR index=index2 | stats count by sourcetype

will do a form of merging but I suspect that's not really what you want?

...Laurie:{)

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...

Updated Data Management and AWS GDI Inventory in Splunk Observability

We’re making some changes to Data Management and Infrastructure Inventory for AWS. The Data Management page, ...