<?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: Search Condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181972#M52453</link>
    <description>&lt;P&gt;then why "Time Elapsed" in where?&lt;/P&gt;</description>
    <pubDate>Tue, 11 Mar 2014 22:03:15 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2014-03-11T22:03:15Z</dc:date>
    <item>
      <title>Search Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181968#M52449</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have my search set and everything is work fine except the condition. In the search I have this condition in the end of my query search  (where "Time Elapsed" &amp;gt; "03:00:00"), this condition does not work if it is like that and it shows all the file. However, if I have it like this( where TimeElapsed &amp;gt; "03:00:00"); it works just fine I don't know why?? &lt;/P&gt;

&lt;P&gt;Any idea &lt;/P&gt;

&lt;P&gt;Thanks &lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 16:54:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181968#M52449</guid>
      <dc:creator>hxa27</dc:creator>
      <dc:date>2014-03-11T16:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: Search Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181969#M52450</link>
      <description>&lt;P&gt;Well, what's the name of the field you're testing the condition against?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 21:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181969#M52450</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-11T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181970#M52451</link>
      <description>&lt;P&gt;This is my search query &lt;/P&gt;

&lt;P&gt;index="test" sourcetype=NewIndex| eval timenew= now()- _time| eval TimeElapsed=tostring(timenew,"duration")|replace "C:\Users\hxa27\Desktop\NewIndexing\Test\&lt;EM&gt;" with "&lt;/EM&gt;"|rename source as "File Name" |eval "File Create Date"=strftime(_time,"%m-%d-%Y %H:%M:%S")|table "File Name" TimeElapsed "File Create Date"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181970#M52451</guid>
      <dc:creator>hxa27</dc:creator>
      <dc:date>2020-09-28T16:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Search Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181971#M52452</link>
      <description>&lt;P&gt;I see. In that case, &lt;CODE&gt;where TimeElapsed &amp;gt; "something"&lt;/CODE&gt; is correct because that's the name of the field you're testing against. &lt;CODE&gt;where "Time Elapsed" &amp;gt; "something"&lt;/CODE&gt; is comparing two strings with each other, and one is literally "Time Elapsed" rather than the value of the field.&lt;/P&gt;

&lt;P&gt;A suggestion for rewriting that query, provided I understand what you're trying to achieve: Leave off the &lt;CODE&gt;where&lt;/CODE&gt; entirely, and set the time range to not load events less than three hours old.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 22:02:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181971#M52452</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-03-11T22:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Search Condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181972#M52453</link>
      <description>&lt;P&gt;then why "Time Elapsed" in where?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2014 22:03:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-Condition/m-p/181972#M52453</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-03-11T22:03:15Z</dc:date>
    </item>
  </channel>
</rss>

