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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...