Splunk Search

How to calculate request arrival rate only for weekdays and exclude weekends for PST time?

rajhemant26
New Member

Hello everyone.

Want to display the output only for the time which crosses 18 months (earliest time)

Tags (1)
0 Karma

woodcock
Esteemed Legend

For the PST part, run the search as a user that had <LoginID> -> Preferences -> Time zone to PST.
For the other part, you can add something like this to your search:

... | eval date_wday = strftime(_time, "%a")
| where NOT (date_wday = "Sat" OR date_wday = "Sun")
0 Karma

adonio
Ultra Champion

many answers in this portal, here are couple:
https://answers.splunk.com/answers/426673/how-to-filter-out-weekdays-or-weekends-in-one-sear.html
https://answers.splunk.com/answers/660420/how-to-exclude-weekends-from-last-30-days-search.html
you can address the time in many different ways, depending on your user setting, timestamp, and other.
if data is generated in the West Coast, you can also try and use _indextime

hope it helps

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...