Splunk Enterprise Security

Splunk Macro cim_Alerts_indexes Error

lucilleddajab
Explorer

Hi, we are using a Splunk Cloud ES and we can't seem to edit the base search macro of the "Alerts" datamodel. The macro in question is, " cim_Alerts_indexes" and it appears it has an extra parameter which generates an error when this macro is ran manually.

Error: "Error in 'search' command: Unable to parse the search: Comparator '=' has an invalid term on the right hand side"

And that is due to the fact that the macro SPL is set up as follows:

 

(index=(index=azure_security sourcetype="GraphSecurityAlert") OR (index=trendmicro))

 

 

The extra "index=" in the beginning is what's messing it up. It should be removed.

However, when we try to go to Settings -> Advanced Search and click on this macro, we are taken to the CIM Setup interface (Splunk_SA_CIM) which shows the config settings of the macro, including the:

 

Indexes whitelist = azure_security,trendmicro
Tags whitelist = cloud, pci

 

Notice, the editable configs do not include the definition which is:

 

(index=(index=azure_security sourcetype="GraphSecurityAlert") OR (index=trendmicro))

 

 
So can anyone assist how we can correct this?

Regards

 

Tags (1)
0 Karma

meetmshah
SplunkTrust
SplunkTrust

Hello @grep, Can you please try removing whitelisting from the "CIM Setup" page and only have condition available from Macro page?

Let me know if it doesn't work and I can troubleshoot.

0 Karma

dural_yyz
Motivator

You need a btool debug output for macros.conf on the ES SHC.  The app is reading the proper file but it appears you have some override of that stanza coming from and outside file.

0 Karma

lucilleddajab
Explorer

Hi @dural_yyz,

Thanks for your response. I'm not sure if we can do btool as this is in Splunk Cloud ES.

 

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...