Splunk Search

Limit Search by timeframe

anasir
Engager

Want to run this search index="_internal" source="*metrics.log" group="per_host_thruput" splunk_server="splunk-x" | chart sum(kb) by series | sort - sum(kb) | head 5 | ] and want to limit it by day, week month etc

Tags (1)

sideview
SplunkTrust
SplunkTrust

If Im following correctly, I get the feeling you're using the CLI or the REST api maybe? If you're in the UI you use the time range picker pulldown. In the CLI there are earliest and latest arguments, and the REST api has similar earliest,latest arguments that you send along with the search string.

0 Karma

nikos_d
Explorer

@sideview: could you provide a link with the documentation for the time range arguments for the REST API? I cannot find it (says I, knowing that the probability of a reply 5 years after the post is near zero)

0 Karma

sideview
SplunkTrust
SplunkTrust
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 ...