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!

Dashboards: Hiding charts while search is being executed and other uses for tokens

There are a couple of features of SimpleXML / Classic dashboards that can be used to enhance the user ...

Splunk Observability Cloud's AI Assistant in Action Series: Explaining Metrics and ...

This is the fourth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how ...

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...