<?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: Subsearch with different date range in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59456#M14646</link>
    <description>&lt;P&gt;Thanks you got me pointed in the right direction.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2012 13:09:09 GMT</pubDate>
    <dc:creator>jkcouch</dc:creator>
    <dc:date>2012-09-14T13:09:09Z</dc:date>
    <item>
      <title>Subsearch with different date range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59454#M14644</link>
      <description>&lt;P&gt;Script sends VM configuration information into splunk daily. Trying to get a list of events that existed more than 3 times (3 days). Then I want to take that list and pare it down to the ones that still exist today(because many may not exist anymore since I use this list to remove the cause of the event daily). &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="PS_VM_Config" VMCDMedia="True" earliest=-3d@d | stats count(VMName) AS ConnectedDays, Values(VCenter) AS VCenter BY VMName | where ConnectedDays &amp;gt; 2 | join VMName [search source="PS_VM_Config" VMCDMedia="True" earliest=-1d@d] | table VMName VCenter 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently I get the full list, not the ones that still exist today. I want to see events that match this criteria: 3 ore more events in the last 3 days and exist within last 24hours.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 18:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59454#M14644</guid>
      <dc:creator>jkcouch</dc:creator>
      <dc:date>2012-09-13T18:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch with different date range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59455#M14645</link>
      <description>&lt;P&gt;You can use the option: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| join type=inner
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to only join events that have matching fields. Read more here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2012 18:51:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59455#M14645</guid>
      <dc:creator>ytamura</dc:creator>
      <dc:date>2012-09-13T18:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch with different date range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59456#M14646</link>
      <description>&lt;P&gt;Thanks you got me pointed in the right direction.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2012 13:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59456#M14646</guid>
      <dc:creator>jkcouch</dc:creator>
      <dc:date>2012-09-14T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Subsearch with different date range</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59457#M14647</link>
      <description>&lt;P&gt;ytamura got me pointed in the right direction (thanks). join defaults to type=inner, my problem was the date formatting of "Earliest". Once changed to hour format it worked.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="PS_VM_Config" VMCDMedia="True" earliest=-72h | stats count(VMName) AS ConnectedDays, Values(VCenter) AS VCenter BY VMName | where ConnectedDays &amp;gt; 2 | join [search source="PS_VM_Config" VMCDMedia="True" earliest=-24h] | table VMName VCenter 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Sep 2012 13:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Subsearch-with-different-date-range/m-p/59457#M14647</guid>
      <dc:creator>jkcouch</dc:creator>
      <dc:date>2012-09-14T13:15:45Z</dc:date>
    </item>
  </channel>
</rss>

