<?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: How to extract the first and last start time (as conditional term) and only use them in a search? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150947#M30722</link>
    <description>&lt;P&gt;See this run anywhere example with two data inputs. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Two input Form&amp;lt;/label&amp;gt;
  &amp;lt;description/&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="sourcetype" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Sourcetype&amp;lt;/label&amp;gt;
      &amp;lt;populatingSearch fieldForLabel="sourcetype" fieldForValue="sourcetype"&amp;gt;index=_internal | stats count  by sourcetype&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="source" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;Source&amp;lt;/label&amp;gt;
          &amp;lt;populatingSearch fieldForLabel="source" fieldForValue="source"&amp;gt;index=_internal | stats count  by source&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;searchString&amp;gt;index=_internal sourcetype=$sourcetype$ source=$source$| timechart count&amp;lt;/searchString&amp;gt;
        &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;        
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 15 Dec 2014 23:46:24 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-12-15T23:46:24Z</dc:date>
    <item>
      <title>How to extract the first and last start time (as conditional term) and only use them in a search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150944#M30719</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;in my data I have time slots in this format:&lt;/P&gt;

&lt;P&gt;starttime="1403032818"&lt;/P&gt;

&lt;P&gt;for each field. the number of starttimes are 17 (search was run on the data in 17 different times) for the whole data and I only need to use the first and last start times in my search, for example if we assume the whole times like this:  140153402,...., 1402513801, 1403032818  &lt;/P&gt;

&lt;P&gt;I only need my search to run on the fields which contains the first (140153402) and the last (1403032818) start time and ignore the results regard the start times in between .&lt;/P&gt;

&lt;P&gt;How can I add this conditional (?) term to my search?&lt;/P&gt;

&lt;P&gt;Thank you so much in advance for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 20:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150944#M30719</guid>
      <dc:creator>sina_shafaei</dc:creator>
      <dc:date>2014-12-15T20:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the first and last start time (as conditional term) and only use them in a search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150945#M30720</link>
      <description>&lt;P&gt;What is your current search query? &lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 21:07:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150945#M30720</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-12-15T21:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the first and last start time (as conditional term) and only use them in a search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150946#M30721</link>
      <description>&lt;P&gt;it's just a normal query e.g showing a table based for two variables. actually I want to use this "start time" as a variable (using an input like drop-down menu) for my dashboard (form) to choose the result based on first or last or both times and ignore the other start times and results related to them, but I have no idea how to do that? &lt;/P&gt;

&lt;P&gt;I've used it for normal search like this:&lt;/P&gt;

&lt;P&gt;index=remedy   1403032818  OR   140153402 | (rest of the search) ....&lt;/P&gt;

&lt;P&gt;but for a form using drop-down menu ...?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Dec 2014 21:19:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150946#M30721</guid>
      <dc:creator>sina_shafaei</dc:creator>
      <dc:date>2014-12-15T21:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract the first and last start time (as conditional term) and only use them in a search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150947#M30722</link>
      <description>&lt;P&gt;See this run anywhere example with two data inputs. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Two input Form&amp;lt;/label&amp;gt;
  &amp;lt;description/&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="sourcetype" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Sourcetype&amp;lt;/label&amp;gt;
      &amp;lt;populatingSearch fieldForLabel="sourcetype" fieldForValue="sourcetype"&amp;gt;index=_internal | stats count  by sourcetype&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="dropdown" token="source" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;Source&amp;lt;/label&amp;gt;
          &amp;lt;populatingSearch fieldForLabel="source" fieldForValue="source"&amp;gt;index=_internal | stats count  by source&amp;lt;/populatingSearch&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;searchString&amp;gt;index=_internal sourcetype=$sourcetype$ source=$source$| timechart count&amp;lt;/searchString&amp;gt;
        &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
        &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;        
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Dec 2014 23:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-the-first-and-last-start-time-as-conditional-term/m-p/150947#M30722</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-12-15T23:46:24Z</dc:date>
    </item>
  </channel>
</rss>

