Hey,
This forum has been so very helpful... I really cannot thank the posters here enough!
However, I have a question I have not been able to find an answer to. I have a search that I am trying to gather statistics for the previous day, but only the previous weekday. So if today is Monday I want my search to reflect information from Friday. If it is Tuesday I wnat the search to reflect information from Monday.
So I am trying to essentially do something along the lines of:
"mysearch" earliest=if(strftime(now(), "%A")=="Monday", relative_time(now(),"@w5"), relative_time(now(),"-d@d") ) latest=if(strftime(now(), "%A")=="Monday", relative_time(now(), "@w6"), relative_time(now(),"@d")) | chart count by host
However, splunk does not like this syntax. Is there something I am missing or a simple way of doing this? Thank you very much for your help!!
... View more