Splunk Search

Can I call a macro without using transaction in my search?

msteinb4
New Member

The current search I am running calls "transaction" and then a macro to output results into my table. When I remove the transaction command and just call my macro, I get the following error: Error in 'lookup' command: Lookups: The lookup table ' ' does not exist or is not available.

Any ideas as to why transaction MUST be present for this to run?

0 Karma

493669
Super Champion

It seems to be permission issue for lookups:
try to change the permission of lookup Global in Settings>>Lookups>>Lookup definitions
also refer :https://answers.splunk.com/answers/154326/so-many-lookups-so-many-errors-the-lookup-table-xxx-does-n...
also try to run :

|inputlookup <lookup name.csv>

does it gives any result?

0 Karma

msteinb4
New Member

My macro and lookup are both set to Global already, and when running the | inputlookup command, the table shows up correctly

0 Karma

richgalloway
SplunkTrust
SplunkTrust

What does the macro expand to? It seems to expect something specific out of the inputlookup command, but there's no way to know what that is without seeing the content of the macro.

---
If this reply helps you, Karma would be appreciated.
0 Karma

richgalloway
SplunkTrust
SplunkTrust

It's possible the macro is using part of the output of the transaction command. Can you share the macro definition?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...