<?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 most common events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/most-common-events/m-p/174288#M186593</link>
    <description>&lt;P&gt;Hello, in my search how do i find most common events.&lt;/P&gt;

&lt;P&gt;tried  this &lt;YOUSEARCH&gt; | cluster | table cluster_count, _raw | sort - cluster_count &lt;BR /&gt;
but not displaying the cluster_count.&lt;/YOUSEARCH&gt;&lt;/P&gt;

&lt;P&gt;need to find what errors are generated the most.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:41:16 GMT</pubDate>
    <dc:creator>tlow</dc:creator>
    <dc:date>2020-09-28T16:41:16Z</dc:date>
    <item>
      <title>most common events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/most-common-events/m-p/174288#M186593</link>
      <description>&lt;P&gt;Hello, in my search how do i find most common events.&lt;/P&gt;

&lt;P&gt;tried  this &lt;YOUSEARCH&gt; | cluster | table cluster_count, _raw | sort - cluster_count &lt;BR /&gt;
but not displaying the cluster_count.&lt;/YOUSEARCH&gt;&lt;/P&gt;

&lt;P&gt;need to find what errors are generated the most.&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/most-common-events/m-p/174288#M186593</guid>
      <dc:creator>tlow</dc:creator>
      <dc:date>2020-09-28T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: most common events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/most-common-events/m-p/174289#M186594</link>
      <description>&lt;P&gt;The problem as I see it: you need to decide how to group the events. You can try &lt;CODE&gt;cluster&lt;/CODE&gt; but it better if you define "common".&lt;/P&gt;

&lt;P&gt;Here is one possible search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;error* | stats count by source sourcetype host | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you a count of the events that contain the word "error", with the most common host source and sourcetype listed first in the list.&lt;/P&gt;

&lt;P&gt;Here is another - this also groups the errors by including a few of the characters that surround the word "error"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;error* | rex "(?&amp;lt;msg&amp;gt;.{0,25}error.{0,25})"  | stats count by source sourcetype host msg | sort -count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 May 2014 19:31:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/most-common-events/m-p/174289#M186594</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-21T19:31:49Z</dc:date>
    </item>
  </channel>
</rss>

