<?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 How can I run a windowed realtime seach from the command line? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-windowed-realtime-seach-from-the-command-line/m-p/82930#M21061</link>
    <description>&lt;P&gt;I can run a search from the command line with time boundaries as earliest= and latest= as part of my search.  And I can run a realtime search over all time from the command line using 'rtsearch'. &lt;/P&gt;

&lt;P&gt;But if I try to run a realtime search with earliest= and latest= keywords as part of the search string, they aren't effective.  How can I make this work?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2013 23:49:59 GMT</pubDate>
    <dc:creator>jrodman</dc:creator>
    <dc:date>2013-01-09T23:49:59Z</dc:date>
    <item>
      <title>How can I run a windowed realtime seach from the command line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-windowed-realtime-seach-from-the-command-line/m-p/82930#M21061</link>
      <description>&lt;P&gt;I can run a search from the command line with time boundaries as earliest= and latest= as part of my search.  And I can run a realtime search over all time from the command line using 'rtsearch'. &lt;/P&gt;

&lt;P&gt;But if I try to run a realtime search with earliest= and latest= keywords as part of the search string, they aren't effective.  How can I make this work?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 23:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-windowed-realtime-seach-from-the-command-line/m-p/82930#M21061</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2013-01-09T23:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I run a windowed realtime seach from the command line?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-windowed-realtime-seach-from-the-command-line/m-p/82931#M21062</link>
      <description>&lt;P&gt;Using 'earliest' and 'latest' may not work as mentioned in the following splunk answer: &lt;/P&gt;

&lt;P&gt;&lt;A href="http://splunk-base.splunk.com/answers/40885/querying-a-real-time-search#71382"&gt;http://splunk-base.splunk.com/answers/40885/querying-a-real-time-search#71382&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Try using the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;bin/splunk rtsearch 'index=_internal -earliest_time 'rt-30s'  -latest_time 'rt+30s'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;-earliest_time and -latest_time should set the same-name arguments in the REST API. &lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2013 23:53:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-run-a-windowed-realtime-seach-from-the-command-line/m-p/82931#M21062</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2013-01-09T23:53:38Z</dc:date>
    </item>
  </channel>
</rss>

