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
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.
@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)
I think what you're looking for is here - http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/SearchTimeModifiers
or maybe here http://docs.splunk.com/Documentation/Splunk/6.2.2/Search/Specifytimemodifiersinyoursearch