All Apps and Add-ons

Using eval to add a comment?

tbaublys_splunk
Splunk Employee
Splunk Employee

Here is the newer official way to add the comments (using preinstalled macro):
comment("THIS IS A COMMENT")

http://docs.splunk.com/Documentation/Splunk/7.2.1/Search/Addcommentstosearches

Tags (1)

richgalloway
SplunkTrust
SplunkTrust

Would you mind editing this into a question and a separate answer? Then please accept the answer so future readers will find it.

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

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...