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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...