Refine your search:

4
1

Are sub-searches, by default, constrained to the time range that is currently in the picker? Or are they run over "all time" unless you specify a range such as earliest=-24h latest=now?

I can't tell just by the speed of search execution because my search + subsearch appears to take a while to complete.

asked 16 Sep '10, 19:32

caphrim007's gravatar image

caphrim007
19510
accept rate: 50%


2 Answers:

I believe that unless you specify earliest and latest, subsearches are run over the time range chosen in the time picker, but will only run for as long as the maxtime setting in limits.conf specifies.

Section of limits.conf:

[subsearch]
maxout = <integer>
* Maximum number of results to return from a subsearch.
* Defaults to 100.

maxtime = <integer>
* Maximum number of seconds to run a subsearch before finalizing
* Defaults to 60.

ttl = <integer>
* Time to cache a given subsearch's results.
* Defaults to 300.
link

answered 16 Sep '10, 19:40

ftk's gravatar image

ftk ♦
6.2k419
accept rate: 37%

edited 16 Sep '10, 20:19

Subsearches are run with the same time range as the time picker selects (which are passed as an API parameter to the search). If you set a time range in the search string, say with earliest=..., it will not be used by the subsearch, only the API parameter.

link

answered 16 Sep '10, 20:13

Stephen%20Sorkin's gravatar image

Stephen Sorkin ♦
8.1k47
accept rate: 52%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×196
×131

Asked: 16 Sep '10, 19:32

Seen: 1,150 times

Last updated: 16 Sep '10, 20:19

Copyright © 2005-2012 Splunk, Inc. All rights reserved.