Getting Data In

Dynamic lookup file name in Transforms.conf

sscandoit
Explorer

Hi,

We have a cron job which periodically updates the lookup file. The file name is of the format lookup_mmddyyyy.csv where mmddyyyy is date on which the file is generated. Currently I manually change the file name to lookup.csv since the transforms.conf has following:

[AppLogLookup]

case_sensitive_match=false

filename=lookup.csv

Is there any way I give the name with date? for e.g.

[AppLogLookup]

case_sensitive_match=false

filename=lookup_mmddyyyy.csv

Appreciate all the help.

Thanks,
Suvelee

Tags (2)
1 Solution

Linegod
Path Finder

If it were me, I would symbolically link the 'lookup.csv' to your updated lookup_mmddyyy.csv' when you create it to make it work.

View solution in original post

0 Karma

Linegod
Path Finder

If it were me, I would symbolically link the 'lookup.csv' to your updated lookup_mmddyyy.csv' when you create it to make it work.

0 Karma

sscandoit
Explorer

Thanks a lot. That's an easy solution.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...