Hello everybody, My first case to this community as I am relatively new to Splunk detailing, would be the following: I am encountering: External search command 'sendfile' returned error code 1. for...
See more...
Hello everybody, My first case to this community as I am relatively new to Splunk detailing, would be the following: I am encountering: External search command 'sendfile' returned error code 1. for the below search. The savedsearch returns the correct results while ran independently, but the output is always the same when trying to send an automated report running the job described. Worth mentioning that if I sample the results, the report is sent, otherwise Splunk spits the error I am facing. Do you know where can I look to fix it? Thank you in advance! | savedsearch "savedsearchname" | outputxls [| stats count | eval search=strftime(now(), "File_name_%Y%m%d.xlsx") | fields search] | sendfile "sender" "receiver" [| stats count | eval first=strftime(relative_time(now(),"-1y"), "Title of report - %d/%m/%Y") | eval search = first+strftime(relative_time(now(),"@d")," and %d/%m/%Y") | eval search = "\""+search+"\"" | fields search] "report testing insert text here" [| stats count | eval search=strftime(now(), "File_name_%Y%m%d.xlsx") | fields search] "smtp.server"