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!

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had 3 releases of new security content via the Enterprise Security ...

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...