hi,
i have to attach the current time in sendemail
Below is my search:
index=_internal| head 5|table source,sourcetype | sendemail
[email protected] server=localhost subject="Report No 1 has been executed at"+""+now() message="This is an example message" sendresults=true inline=true format=raw sendpdf=false
and also i have tried
index=_internal| head 5|table source,sourcetype | sendemail
[email protected] server=localhost subject="Report No 1 has been executed at"+""+$_time$ message="This is an example message" sendresults=true inline=true format=raw sendpdf=false
but i am not getting the date in the message.
Getting Output:
Report No 1 has been executed at
Expected Output:
My Subject : Report No 1 has been executed at 27/05/2015 10.12.10 AM
Please suggest how to edit my search.
Thanks in Advance
... View more