<?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: help on where condition in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450256#M171366</link>
    <description>&lt;P&gt;No, I meant:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (index="toto" sourcetype="perfmon:logicaldisk" instance="C:" counter="% Free Space") OR (index="titi" sourcetype=WinHostMon Type=disk Name="C:" TotalSpaceKB)
 | eval time = strftime(_time, "%m/%d/%Y %H:%M")
 | eval Value = round(Value, 1)
 | eval TotalSpace = TotalSpaceKB/1024
 | eval TotalSpace = round(TotalSpace/1024,1)
 | stats latest(Value) as Free_Space latest(TotalSpace) as TotalSpace by host
 | where Free_Space &amp;lt;= 20 AND TotalSpace &amp;gt;= 164
 | eval Free_Space=FreeSpace." %", TotalSpace=TotalSpace." GB"
 | sort +Free_Space limit=10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 09 May 2019 13:37:32 GMT</pubDate>
    <dc:creator>knielsen</dc:creator>
    <dc:date>2019-05-09T13:37:32Z</dc:date>
    <item>
      <title>help on where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450253#M171363</link>
      <description>&lt;P&gt;hello&lt;/P&gt;

&lt;P&gt;I use the where condition below &lt;BR /&gt;
I would like to display the events  where Free_Space &amp;lt;= "20" AND TotalSpace &amp;gt;= "164"&lt;BR /&gt;
But I dont understand why even if the free space is &amp;lt; to 20 I have TotalSpace events &amp;lt; to 164?&lt;BR /&gt;
You can see an example in the screenshot&lt;BR /&gt;
thanks for your help&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7027i8116128C74BA5A60/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="toto" sourcetype="perfmon:logicaldisk" instance="C:" counter="% Free Space") OR (index="titi" sourcetype=WinHostMon Type=disk Name="C:" TotalSpaceKB)
| eval time = strftime(_time, "%m/%d/%Y %H:%M") 
| eval Value = round(Value, 1). " %" 
| eval TotalSpace = TotalSpaceKB/1024 
| eval TotalSpace = round(TotalSpace/1024,1). " GB" 
| stats latest(Value) as Free_Space latest(TotalSpace) as TotalSpace by host
**| where Free_Space &amp;lt;= "20" AND TotalSpace &amp;gt;= "164"**
| sort +Free_Space limit=10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 May 2019 13:16:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450253#M171363</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-05-09T13:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: help on where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450254#M171364</link>
      <description>&lt;P&gt;Without trying it jumps at me that you do your comparison on strings, not numbers.&lt;/P&gt;

&lt;P&gt;You should add " %" and " GB" after you filter with your where clause, not before.&lt;/P&gt;

&lt;P&gt;Hth,&lt;BR /&gt;
Kai,&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 13:22:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450254#M171364</guid>
      <dc:creator>knielsen</dc:creator>
      <dc:date>2019-05-09T13:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: help on where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450255#M171365</link>
      <description>&lt;P&gt;I m doing this but it doesnt works&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where Free_Space &amp;lt;= "20 %" AND TotalSpace &amp;gt;= "164 GB"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 May 2019 13:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450255#M171365</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-05-09T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: help on where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450256#M171366</link>
      <description>&lt;P&gt;No, I meant:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; (index="toto" sourcetype="perfmon:logicaldisk" instance="C:" counter="% Free Space") OR (index="titi" sourcetype=WinHostMon Type=disk Name="C:" TotalSpaceKB)
 | eval time = strftime(_time, "%m/%d/%Y %H:%M")
 | eval Value = round(Value, 1)
 | eval TotalSpace = TotalSpaceKB/1024
 | eval TotalSpace = round(TotalSpace/1024,1)
 | stats latest(Value) as Free_Space latest(TotalSpace) as TotalSpace by host
 | where Free_Space &amp;lt;= 20 AND TotalSpace &amp;gt;= 164
 | eval Free_Space=FreeSpace." %", TotalSpace=TotalSpace." GB"
 | sort +Free_Space limit=10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 May 2019 13:37:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450256#M171366</guid>
      <dc:creator>knielsen</dc:creator>
      <dc:date>2019-05-09T13:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: help on where condition</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450257#M171367</link>
      <description>&lt;P&gt;perfect thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-on-where-condition/m-p/450257#M171367</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2019-05-09T14:37:50Z</dc:date>
    </item>
  </channel>
</rss>

