<?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: Count Command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167386#M47666</link>
    <description>&lt;P&gt;counting by sip, signame breaks the table with two columns sip and list(signature), with the sip detailing the source ip associated with the signatures triggered. I'm looking for a third column with a count of the number of times each signature was triggered. Each log has a unique field "eventid" so was looking at using this as a counter.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2013 11:35:39 GMT</pubDate>
    <dc:creator>sukhgillz</dc:creator>
    <dc:date>2013-12-05T11:35:39Z</dc:date>
    <item>
      <title>Count Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167382#M47662</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm experiencing some difficulties when using count, the below search query works by listing sip (source ip) against all the siganmes (signatures) which were triggered against the sip. I'm trying to break this down further with a count of these signatures, so:&lt;/P&gt;

&lt;P&gt;sip       signature      count&lt;BR /&gt;
1.1.1.1   UDP Flood      4&lt;BR /&gt;
          TCP Flood      56&lt;BR /&gt;
2.2.2.2   UDP Flood      6&lt;BR /&gt;
          TCP Flood      34&lt;/P&gt;

&lt;P&gt;I've constructed the following search:&lt;/P&gt;

&lt;P&gt;idp-01 signame=* | transaction sip signame count by eventid | table sip signame |stats list(signame) by sip&lt;/P&gt;

&lt;P&gt;eventid is a unique reference for each event, this gives me:&lt;/P&gt;

&lt;P&gt;sip       list(signature)&lt;BR /&gt;
1.1.1.1   UDP Flood&lt;BR /&gt;
          UDP Flood&lt;BR /&gt;
          UDP Flood&lt;BR /&gt;
          TCP Flood&lt;BR /&gt;
          TCP Flood&lt;BR /&gt;
          TCP Flood&lt;BR /&gt;
          TCP Flood&lt;BR /&gt;
          [repeats 56 times]&lt;/P&gt;

&lt;P&gt;Any clues where I’m going wrong here?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 08:49:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167382#M47662</guid>
      <dc:creator>sukhgillz</dc:creator>
      <dc:date>2013-12-05T08:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Count Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167383#M47663</link>
      <description>&lt;P&gt;hello&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| stats count by sip, signature
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Dec 2013 08:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167383#M47663</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-12-05T08:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167384#M47664</link>
      <description>&lt;P&gt;Hi gfunete, no joy... &lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 09:14:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167384#M47664</guid>
      <dc:creator>sukhgillz</dc:creator>
      <dc:date>2013-12-05T09:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167385#M47665</link>
      <description>&lt;P&gt;What do you mean no joy - what are your results and how do they differ from the results you want?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 09:52:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167385#M47665</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-12-05T09:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167386#M47666</link>
      <description>&lt;P&gt;counting by sip, signame breaks the table with two columns sip and list(signature), with the sip detailing the source ip associated with the signatures triggered. I'm looking for a third column with a count of the number of times each signature was triggered. Each log has a unique field "eventid" so was looking at using this as a counter.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 11:35:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167386#M47666</guid>
      <dc:creator>sukhgillz</dc:creator>
      <dc:date>2013-12-05T11:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167387#M47667</link>
      <description>&lt;P&gt;Try:&lt;BR /&gt;
...| stats dc(eventid) by sip, signature&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:19:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167387#M47667</guid>
      <dc:creator>gfuente</dc:creator>
      <dc:date>2013-12-05T12:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count Command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167388#M47668</link>
      <description>&lt;P&gt;Thanks gfuente works a treat &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:29:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Count-Command/m-p/167388#M47668</guid>
      <dc:creator>sukhgillz</dc:creator>
      <dc:date>2013-12-05T12:29:13Z</dc:date>
    </item>
  </channel>
</rss>

