Knowledge Management

How to define a macro with source filename in argument

emcathalo
New Member

Hi,

Thanks to tell me how to replace following search:

index=myIndex source="E:\\myApp\\Logs\\myFile.csv"

by a macro called by:

Get_source("E:\\myApp\\Logs\\myFile.csv")

Or even better by a macro called by:

Get_source("myFile.csv")

Emmanuel.

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...