Knowledge Management
Highlighted

How to define a macro with source filename in argument

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
Highlighted

Re: How to define a macro with source filename in argument

Legend
Speak Up for Splunk Careers!

We want to better understand the impact Splunk experience and expertise has has on individuals' careers, and help highlight the growing demand for Splunk skills.