<?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: filter a table result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/filter-a-table-result/m-p/665695#M228388</link>
    <description>&lt;P&gt;Using just the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command to filter results just removes one Server1 event rather than all of them.&lt;/P&gt;&lt;P&gt;Instead, you can use the &lt;FONT face="courier new,courier"&gt;eventstats&lt;/FONT&gt; command to associated the Deleted status with all events from the same server.&amp;nbsp; Then filter on that association.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats count(eval(Status="Deleted")) as is_deleted by Name
| where is_deleted=1
| fields - is_deleted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 15:14:08 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2023-10-20T15:14:08Z</dc:date>
    <item>
      <title>filter a table result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-a-table-result/m-p/665687#M228387</link>
      <description>&lt;P&gt;Hi - i'm not great at Splunk and am struggling with this one:&lt;/P&gt;&lt;P&gt;I have this search result in table form&lt;/P&gt;&lt;TABLE width="416"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="201"&gt;Name&lt;/TD&gt;&lt;TD width="215"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Server1&lt;/TD&gt;&lt;TD&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Server2&lt;/TD&gt;&lt;TD&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Server1&lt;/TD&gt;&lt;TD&gt;Deleted&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Server2&lt;/TD&gt;&lt;TD&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Server3&lt;/TD&gt;&lt;TD&gt;Discovered&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I'd like to filter out any servers that have status deleted so for the example i'd like&lt;/P&gt;&lt;TABLE width="416"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="201"&gt;Name&lt;/TD&gt;&lt;TD width="215"&gt;Status&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Server2&lt;/TD&gt;&lt;TD&gt;OK&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Server3&lt;/TD&gt;&lt;TD&gt;Discovered&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 14:56:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-a-table-result/m-p/665687#M228387</guid>
      <dc:creator>trifledalliance</dc:creator>
      <dc:date>2023-10-20T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: filter a table result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-a-table-result/m-p/665695#M228388</link>
      <description>&lt;P&gt;Using just the &lt;FONT face="courier new,courier"&gt;where&lt;/FONT&gt; command to filter results just removes one Server1 event rather than all of them.&lt;/P&gt;&lt;P&gt;Instead, you can use the &lt;FONT face="courier new,courier"&gt;eventstats&lt;/FONT&gt; command to associated the Deleted status with all events from the same server.&amp;nbsp; Then filter on that association.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eventstats count(eval(Status="Deleted")) as is_deleted by Name
| where is_deleted=1
| fields - is_deleted&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 15:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-a-table-result/m-p/665695#M228388</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-20T15:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: filter a table result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/filter-a-table-result/m-p/665977#M228476</link>
      <description>&lt;P&gt;That works nicely thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; I just had to tweak the where to get the list of undeleted.&lt;/P&gt;&lt;P&gt;| eventstats count(eval(Status="Deleted")) as is_deleted by Name&lt;BR /&gt;| where is_deleted=0 | table Name is_deleted Status&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2023 08:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/filter-a-table-result/m-p/665977#M228476</guid>
      <dc:creator>trifledalliance</dc:creator>
      <dc:date>2023-10-24T08:48:08Z</dc:date>
    </item>
  </channel>
</rss>

