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 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 ...