<?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 do I sort and get a count for specific data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70862#M17737</link>
    <description>&lt;P&gt;Ahhh... well in that case get rid of &lt;CODE&gt;field=event_desc&lt;/CODE&gt; and you should be good.&lt;/P&gt;

&lt;P&gt;Also, seeing as you're dealing with ASA logs, you might find the "Splunk for Cisco Firewalls" and "Cisco Security Suite" apps worth a look.&lt;/P&gt;</description>
    <pubDate>Tue, 24 Sep 2013 10:08:41 GMT</pubDate>
    <dc:creator>rturk</dc:creator>
    <dc:date>2013-09-24T10:08:41Z</dc:date>
    <item>
      <title>How do I sort and get a count for specific data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70859#M17734</link>
      <description>&lt;P&gt;I have the following search for my Cisco ASA&lt;/P&gt;

&lt;P&gt;event_desc="Deny TCP (no connection) from IP_address/port to IP_address/port flags tcp_flags on interface interface_name."&lt;/P&gt;

&lt;P&gt;How can I sort this search on the "to IP_address/port" and get a count of each?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;SK&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:50:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70859#M17734</guid>
      <dc:creator>sean_kirkpatric</dc:creator>
      <dc:date>2020-09-28T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort and get a count for specific data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70860#M17735</link>
      <description>&lt;P&gt;Hi Sean, try the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; | rex field=event_desc "to (?&amp;lt;dst_ip_address&amp;gt;\d+\.\d+\.\d+\.\d+)/(?&amp;lt;dst_port&amp;gt;\d+)" | stats count by dst_ip_address, dst_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If this doesn't work, if you could post an actual event I might be able to fine tune it for you.&lt;/P&gt;

&lt;P&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 01:37:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70860#M17735</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-24T01:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort and get a count for specific data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70861#M17736</link>
      <description>&lt;P&gt;Thank you for you help. Unfortunately, the results come out empty.  Splunk says it finds 1900+ matches though.  Here is an actual event.&lt;/P&gt;

&lt;P&gt;Sep 23 18:14:15 10.10.10.1 Sep 23 2013 18:16:15: %ASA-6-106015: Deny TCP (no connection) from 15.16.17.8/80 to 12.22.12.1/1398 flags FIN PSH ACK on interface outside&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 09:54:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70861#M17736</guid>
      <dc:creator>sean_kirkpatric</dc:creator>
      <dc:date>2013-09-24T09:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort and get a count for specific data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70862#M17737</link>
      <description>&lt;P&gt;Ahhh... well in that case get rid of &lt;CODE&gt;field=event_desc&lt;/CODE&gt; and you should be good.&lt;/P&gt;

&lt;P&gt;Also, seeing as you're dealing with ASA logs, you might find the "Splunk for Cisco Firewalls" and "Cisco Security Suite" apps worth a look.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 10:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70862#M17737</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-24T10:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort and get a count for specific data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70863#M17738</link>
      <description>&lt;P&gt;Thanks.  I removed field=event_desc, and I still get the matching events but no results found.  &lt;/P&gt;

&lt;P&gt;I have the Firewall app, but it doesn't give me all the info I need.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 11:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70863#M17738</guid>
      <dc:creator>sean_kirkpatric</dc:creator>
      <dc:date>2013-09-24T11:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort and get a count for specific data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70864#M17739</link>
      <description>&lt;P&gt;Got it...  I was missing a ? before &lt;DST_PORT&gt;.  Thanks!&lt;/DST_PORT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 11:36:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70864#M17739</guid>
      <dc:creator>sean_kirkpatric</dc:creator>
      <dc:date>2013-09-24T11:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I sort and get a count for specific data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70865#M17740</link>
      <description>&lt;P&gt;Glad I could help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2013 11:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-sort-and-get-a-count-for-specific-data/m-p/70865#M17740</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-09-24T11:37:27Z</dc:date>
    </item>
  </channel>
</rss>

