Getting Data In

How to use action.email.reportFileName to remove the automatic timestamp from the csv output filename attached to emails?

kearaspoor
SplunkTrust
SplunkTrust

I'm looking for an option to remove the automatic timestamp from the csv output filename attached to emails.

According to both the doco (http://docs.splunk.com/Documentation/Splunk/6.4.3/Admin/Alertactionsconf)
and this answer: https://answers.splunk.com/answers/439644/removing-time-stamp-from-the-emailed-csv-file.html

It sounds like it should be as simple as going into Advanced Edit and adjusting action.email.reportFileName so that the default ($name$-$time:%Y-%m-%d$) is removed and putting in .csv... which I've done.

Any ideas why I'm still getting the default : Searchname-yyyy-mm-dd

We do have a search cluster that I'm not 100% familiar with but I have verified that the Advanced Edit setting replicated to each node. I've even looked at the savedsearches.conf on in the CLI for each node and verified that it has the
action.email.reportFileName =.csv

Thanks in advance for your assistance!

0 Karma
1 Solution

kearaspoor
SplunkTrust
SplunkTrust

Received word from vendor support that this issue is an official bug that should be resolved in version 6.5.1

View solution in original post

0 Karma

kearaspoor
SplunkTrust
SplunkTrust

Received word from vendor support that this issue is an official bug that should be resolved in version 6.5.1

0 Karma

somesoni2
Revered Legend

Did you replace $name$-$time:%Y-%m-%d$ with .csv? The .csv extension is added automatically, you should just remove the timestamp ports which is -$time:%Y-%m-%d$.

0 Karma

kearaspoor
SplunkTrust
SplunkTrust

Sorry! Didn't realize that my original post cut out some information regarding the file name.

I've tried removing the -$time:%Y-%m-d$ as you recommend, leaving just $name$
I've also tried removing the entire default ($name$-$time:%Y-%m-%d$) and manually entering just a filename without the .csv at the end.
And I've also tried removing the entire default, manually entering the filename with the .csv at the end.

All of them end up with the default ($name$-$time:%Y-%m-%d$) as the results.

0 Karma
Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.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 ...