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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...