<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165475#M47028</link>
    <description>&lt;P&gt;Let me explain more. Our team do not control the Splunk server and because of the limited memory, we are not allowed to change the subsearch configuration. It's a shared server and I should not consume all the resources. It will be great if we can focus on the problem itself. I am sorry for my current situation and limitations.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Apr 2015 18:00:12 GMT</pubDate>
    <dc:creator>shengcow</dc:creator>
    <dc:date>2015-04-24T18:00:12Z</dc:date>
    <item>
      <title>Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165471#M47024</link>
      <description>&lt;P&gt;I have a little confusion about how time stamp actually works. I want to do a very simple query to combine the result for two searches into one single table. I am using a simple OR to achieve that. A simplified version of my query will be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index=firewall1 dst=8.8.8.8) OR (index=firewall2 starttime="03/23/2015:12:13:45" endtime="03/23/2015:13:13:55" dst=8.8.8.8)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know this is a very inefficient search and I am supposed to use subsearches. However, I find that the Splunk server I am using does not have enough memory for the millions of results returned by a subsearch in this case.&lt;/P&gt;

&lt;P&gt;The tricky part is that, the time modifier should only be applied to the second index. When running the search, I find the results for the first search are missing.  I know it's missing because I ran the first search alone and there are a lot of results, yet, nothing shows up for the search after the OR clause. If I remove the time modifier in the second part, I get all the expected results. &lt;/P&gt;

&lt;P&gt;What is creepy is that this does not happen for all the IPs, only for some of the IP addresses, I got all the results I want and for some I got nothing for the first search. The time modifier cannot be global because I can sometimes see results from the first search that does not fall in the time range. Same thing happened with earliest/latest keyword and I double checked I don't have any format issue with IPs.&lt;/P&gt;

&lt;P&gt;The version of my Splunk is 5.0. Can anyone help me explain the logic behind that? Or help me come up with another solution without using any subsearches?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:25:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165471#M47024</guid>
      <dc:creator>shengcow</dc:creator>
      <dc:date>2015-04-24T16:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165472#M47025</link>
      <description>&lt;P&gt;Hi I'm not sur i understand you very well.but this is a way to do what you want without using OR.&lt;/P&gt;

&lt;P&gt;1-&lt;BR /&gt;
|multisearch [search index=firewall1&lt;BR /&gt;
dst=8.8.8.8 ]&lt;BR /&gt;
[search index=firewall2&lt;BR /&gt;
starttime="03/23/2015:12&lt;BR /&gt;
:13:45"&lt;BR /&gt;
endtime="03/23/2015:13:&lt;BR /&gt;
13:55" dst=8.8.8.8]&lt;/P&gt;

&lt;P&gt;2-you can pipe all an continue your search with: table,chart,..........&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 16:50:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165472#M47025</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-24T16:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165473#M47026</link>
      <description>&lt;P&gt;Thanks for the quick answer. As I metioned in my question, I can not use any subsearches because of the massive number results for both queries and the limited memory my Splunk server. And it will be nice if you can explain my observation first.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 17:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165473#M47026</guid>
      <dc:creator>shengcow</dc:creator>
      <dc:date>2015-04-24T17:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165474#M47027</link>
      <description>&lt;P&gt;You can also control the subsearch with&lt;BR /&gt;
settings in limits.conf for the runtime and&lt;BR /&gt;
maximum number of results returned:&lt;BR /&gt;
[subsearch]&lt;BR /&gt;
maxout = &lt;BR /&gt;
Maximum number of results to return&lt;BR /&gt;
from a subsearch.&lt;BR /&gt;
This value cannot be greater than or&lt;BR /&gt;
equal to 10500.&lt;BR /&gt;
Defaults to 10000.&lt;BR /&gt;
maxtime = &lt;BR /&gt;
Maximum number of seconds to run a&lt;BR /&gt;
subsearch before finalizing&lt;BR /&gt;
Defaults to 60.&lt;BR /&gt;
ttl = &lt;BR /&gt;
Time to cache a given subsearch's&lt;BR /&gt;
results, in seconds.&lt;BR /&gt;
Do not set this below 120 seconds.&lt;BR /&gt;
Defaults to 300.&lt;/P&gt;

&lt;P&gt;docs.splunk.com/Documentation/Splunk/6.2.2/Search/Aboutsubsearches&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 17:27:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165474#M47027</guid>
      <dc:creator>stephane_cyrill</dc:creator>
      <dc:date>2015-04-24T17:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165475#M47028</link>
      <description>&lt;P&gt;Let me explain more. Our team do not control the Splunk server and because of the limited memory, we are not allowed to change the subsearch configuration. It's a shared server and I should not consume all the resources. It will be great if we can focus on the problem itself. I am sorry for my current situation and limitations.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 18:00:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165475#M47028</guid>
      <dc:creator>shengcow</dc:creator>
      <dc:date>2015-04-24T18:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165476#M47029</link>
      <description>&lt;P&gt;Hi shengcow &lt;BR /&gt;
Use simply the following search code :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|set union[ search index=firewall1 dst=8.8.8.8 ][search index=firewall2 starttime="03/23/2015:12:13:45" endtime="03/23/2015:13:13:55" dst=8.8.8.8]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Apr 2015 22:10:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165476#M47029</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-04-27T22:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I not getting all expected results when using time modifiers in my search in Splunk 5.0?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165477#M47030</link>
      <description>&lt;P&gt;set union/intersect will not return the result for sub-searches if they have millions of results(over the sub-search limitation), it will just return empty. And there is usually no notification on that. It is not working in my case here since there are not enough memory on Splunk server to increase the sub-search limitation.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 22:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-am-I-not-getting-all-expected-results-when-using-time/m-p/165477#M47030</guid>
      <dc:creator>shengcow</dc:creator>
      <dc:date>2015-04-27T22:16:17Z</dc:date>
    </item>
  </channel>
</rss>

