Splunk Search

Search by macro name?

blurblebot
Communicator

Is there a way to count events by the name of the macros matched?

Example, I have macros A, B, and C.

Can I do a search of something equivalent to

`A` OR `B` OR `C` | stats count(macro_name)

?

Tags (2)
1 Solution

dwaddle
SplunkTrust
SplunkTrust

Not that I know of. Macros gets interpreted into the search string, and their original identity is pretty much lost. Depending on the complexity of your macro, you could build eventtypes that match it (or even replace it?). Eventtypes do retain their identity through the search and would let you do this.

View solution in original post

dwaddle
SplunkTrust
SplunkTrust

Not that I know of. Macros gets interpreted into the search string, and their original identity is pretty much lost. Depending on the complexity of your macro, you could build eventtypes that match it (or even replace it?). Eventtypes do retain their identity through the search and would let you do this.

Get Updates on the Splunk Community!

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

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...