<?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 to sort out values greater that a certain number in a table? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653754#M17038</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following query that I am working with and it generates a table with multiple counts for various ports at 15 min intervals.&lt;/P&gt;&lt;P&gt;index=abc source=xyz&amp;nbsp; SMF119HDSubType=2&lt;BR /&gt;| timechart span=15m count by SMF119AP_TTLPort_0001 usenull=f useother=f | stats values(*) as * by _time&lt;BR /&gt;| table _time Port1 Port2&lt;/P&gt;&lt;P&gt;The result is the following table. I only want to display results more that 5000 counts. I am trying to use the where Port 2&amp;gt;5000 command. But it does not work. I am only displaying 2 port columns. However, I have several other ports to monitor as well.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Port1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Port2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 09:30:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;800&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2700&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 09:45:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1200&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;4800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 10:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1300&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;5300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 10:15:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;600&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;8000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 10:30:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;400&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;13500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate your inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chinmay.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 14:45:13 GMT</pubDate>
    <dc:creator>chinmay25</dc:creator>
    <dc:date>2023-08-09T14:45:13Z</dc:date>
    <item>
      <title>How to sort out values greater that a certain number in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653754#M17038</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following query that I am working with and it generates a table with multiple counts for various ports at 15 min intervals.&lt;/P&gt;&lt;P&gt;index=abc source=xyz&amp;nbsp; SMF119HDSubType=2&lt;BR /&gt;| timechart span=15m count by SMF119AP_TTLPort_0001 usenull=f useother=f | stats values(*) as * by _time&lt;BR /&gt;| table _time Port1 Port2&lt;/P&gt;&lt;P&gt;The result is the following table. I only want to display results more that 5000 counts. I am trying to use the where Port 2&amp;gt;5000 command. But it does not work. I am only displaying 2 port columns. However, I have several other ports to monitor as well.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;_time&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Port1&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;Port2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 09:30:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;800&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;2700&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 09:45:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1200&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;4800&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 10:00:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;1300&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;5300&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 10:15:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;600&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;8000&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;SPAN&gt;2023-08-09 10:30:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;400&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;13500&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate your inputs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chinmay.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 14:45:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653754#M17038</guid>
      <dc:creator>chinmay25</dc:creator>
      <dc:date>2023-08-09T14:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort out values greater that a certain number in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653762#M17039</link>
      <description>&lt;LI-CODE lang="markup"&gt;| untable time port count
| where count &amp;gt; 5000
| xyseries time port count&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 09 Aug 2023 15:09:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653762#M17039</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T15:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort out values greater that a certain number in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653768#M17040</link>
      <description>&lt;P&gt;The solution worked perfectly for the count over 5000.&lt;/P&gt;&lt;P&gt;How can I combine the query for count greater than 5000 with the following query that generates the percent data. I want to set an alert only when the count is greater that 5000 and EDCD &amp;gt; 90&lt;/P&gt;&lt;P&gt;index=abc source=xyz (SYSNAME=EDCD) ((date_wday=tuesday AND date_hour=*) OR (date_wday=wednesday AND date_hour=*) OR (date_wday=thursday AND date_hour=*) OR (date_wday=friday AND date_hour=*) OR (date_wday=monday AND date_hour=10) OR (date_wday=monday AND date_hour=11) OR (date_wday=monday AND date_hour=12) OR (date_wday=monday AND date_hour=13) OR (date_wday=monday AND date_hour=14) OR (date_wday=monday AND date_hour=15) OR (date_wday=monday AND date_hour=16) OR (date_wday=monday AND date_hour=17) OR (date_wday=monday AND date_hour=18) OR (date_wday=monday AND date_hour=19) OR (date_wday=monday AND date_hour=20) OR (date_wday=monday AND date_hour=21) OR (date_wday=monday AND date_hour=22) OR (date_wday=monday AND date_hour=23) OR (date_wday=saturday AND date_hour=0) OR (date_wday=saturday AND date_hour=1) OR (date_wday=saturday AND date_hour=2) OR (date_wday=saturday AND date_hour=3) OR (date_wday=saturday AND date_hour=4) OR (date_wday=saturday AND date_hour=5) OR (date_wday=saturday AND date_hour=6) OR (date_wday=saturday AND date_hour=7))&lt;BR /&gt;| bin _time span=1h&lt;BR /&gt;| eval CPU = round(RCVCPUA/16,2), Hour = date_hour&lt;BR /&gt;| chart eval(round(avg(CPU),2)) as "CPU" over Hour by SYSNAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This query generates a table as follows&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%"&gt;Hour&lt;/TD&gt;&lt;TD width="50%"&gt;EDCD&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;8&lt;/TD&gt;&lt;TD width="50%"&gt;43.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;9&lt;/TD&gt;&lt;TD width="50%"&gt;76.2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="50%"&gt;10&lt;/TD&gt;&lt;TD width="50%"&gt;91.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Chinmay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 16:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653768#M17040</guid>
      <dc:creator>chinmay25</dc:creator>
      <dc:date>2023-08-09T16:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort out values greater that a certain number in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653781#M17042</link>
      <description>&lt;P&gt;It is not at all clear how you want these two searches combined.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 17:50:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653781#M17042</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T17:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort out values greater that a certain number in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653784#M17043</link>
      <description>&lt;P&gt;I am having that trouble too. So we want to be alerted when both conditions meet. The count is over 5000 and the EDCD percent is above 90%.&lt;/P&gt;&lt;P&gt;Right now I have 2 separate alerts one for count over 5000 and another for EDCD percent above 90%.&lt;/P&gt;&lt;P&gt;Is there a way we can combine the two using a AND clause.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 17:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653784#M17043</guid>
      <dc:creator>chinmay25</dc:creator>
      <dc:date>2023-08-09T17:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort out values greater that a certain number in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653821#M17044</link>
      <description>&lt;P&gt;It depends on what you want to compromise - you have different time spans, different time ranges(?), different filters.&lt;/P&gt;&lt;P&gt;You could try appending one search to the other but you might run into subsearch limitations.&lt;/P&gt;&lt;P&gt;To be honest, I think it would complicate it too much for the sake of not have two alerts. It doesn't seem worth it to me.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 20:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/653821#M17044</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-08-09T20:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort out values greater that a certain number in a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/655192#M17191</link>
      <description>&lt;P&gt;I have the following query that gives the count for port and CPU percent.&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=abc source=xyz SMFID=EDCD SMF119HDSubType=2&lt;BR /&gt;| timechart span=60m count by SMF119AP_TTLPort_0001 usenull=f useother=f | stats values(*) as * by _time&lt;BR /&gt;| untable _time Port Count&lt;BR /&gt;| where Count &amp;gt; 4000 | eval DATE = strftime(_time,"%m/%d/%y %H:%M:%S.%2N")&lt;BR /&gt;| eval Date = substr(DATE,1,9) | eval Hours = substr(DATE, 11,18)&lt;BR /&gt;| appendcols [search index=abc source=xyz (SYSNAME=EDCD) ((date_wday=tuesday AND date_hour=*) OR (date_wday=wednesday AND date_hour=*) OR (date_wday=thursday AND date_hour=*) OR (date_wday=friday AND date_hour=*) OR (date_wday=monday AND date_hour=10) OR (date_wday=monday AND date_hour=11) OR (date_wday=monday AND date_hour=12) OR (date_wday=monday AND date_hour=13) OR (date_wday=monday AND date_hour=14) OR (date_wday=monday AND date_hour=15) OR (date_wday=monday AND date_hour=16) OR (date_wday=monday AND date_hour=17) OR (date_wday=monday AND date_hour=18) OR (date_wday=monday AND date_hour=19) OR (date_wday=monday AND date_hour=20) OR (date_wday=monday AND date_hour=21) OR (date_wday=monday AND date_hour=22) OR (date_wday=monday AND date_hour=23) OR (date_wday=saturday AND date_hour=0) OR (date_wday=saturday AND date_hour=1) OR (date_wday=saturday AND date_hour=2) OR (date_wday=saturday AND date_hour=3) OR (date_wday=saturday AND date_hour=4) OR (date_wday=saturday AND date_hour=5) OR (date_wday=saturday AND date_hour=6) OR (date_wday=saturday AND date_hour=7))&lt;BR /&gt;| bin span=1h@h _time | eval "Hours"=strftime('_time',"%H:%M:%S.%2N") | eval DATE = strftime('_time',"%m/%d/%y %H:%M:%S.%2N") | eval Date = substr(DATE, 1,9)&lt;BR /&gt;| eval CPU = round(RCVCPUA/16,2)&lt;BR /&gt;| stats avg(CPU) as "CPU" by Hours Date | eval CPU=round(CPU,2)&lt;BR /&gt;]&lt;BR /&gt;| table Date Hours Port Count CPU&lt;/P&gt;&lt;P&gt;This generates the following result. I want to set an alert only when the count is &amp;gt;5000 and CPU &amp;gt;80. What combined statement can be used to get the desired result?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="24px"&gt;Date&lt;/TD&gt;&lt;TD width="20%" height="24px"&gt;Hours&lt;/TD&gt;&lt;TD width="20%" height="24px"&gt;Port&lt;/TD&gt;&lt;TD width="20%" height="24px"&gt;Count&lt;/TD&gt;&lt;TD width="20%" height="24px"&gt;CPU&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;08/22/23&lt;/TD&gt;&lt;TD width="20%"&gt;7:00:00.00&lt;/TD&gt;&lt;TD width="20%"&gt;23050&lt;/TD&gt;&lt;TD width="20%"&gt;75787&lt;/TD&gt;&lt;TD width="20%"&gt;38.42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;08/22/23&lt;/TD&gt;&lt;TD width="20%"&gt;8:00:00.00&lt;/TD&gt;&lt;TD width="20%"&gt;23050&lt;/TD&gt;&lt;TD width="20%"&gt;19854&lt;/TD&gt;&lt;TD width="20%"&gt;84.56&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;08/22/23&lt;/TD&gt;&lt;TD width="20%"&gt;9:00:00.00&lt;/TD&gt;&lt;TD width="20%"&gt;23008&lt;/TD&gt;&lt;TD width="20%"&gt;4126&lt;/TD&gt;&lt;TD width="20%"&gt;37.16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;08/22/23&lt;/TD&gt;&lt;TD width="20%"&gt;9:00:00.00&lt;/TD&gt;&lt;TD width="20%"&gt;23050&lt;/TD&gt;&lt;TD width="20%"&gt;20121&lt;/TD&gt;&lt;TD width="20%"&gt;35.71&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 22 Aug 2023 15:03:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-sort-out-values-greater-that-a-certain-number-in-a-table/m-p/655192#M17191</guid>
      <dc:creator>chinmay25</dc:creator>
      <dc:date>2023-08-22T15:03:23Z</dc:date>
    </item>
  </channel>
</rss>

