<?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 to count and filter types of error data that are in the form of strings, not fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192918#M55470</link>
    <description>&lt;P&gt;You would have to extract a field containing the error message and then you can count individual error message count. Please post some sample log entries, possibly covering all possible error messages and Splunkers here can help you find regex to extract the field.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Nov 2014 19:00:06 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-11-03T19:00:06Z</dc:date>
    <item>
      <title>How to count and filter types of error data that are in the form of strings, not fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192917#M55469</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;So I'm running a command which displays me errors (Aborted, Ping too slow etc, connection aborted), these are just strings of data, not fields.&lt;/P&gt;

&lt;P&gt;I want to count how many of each error I get on a 7 day period. I am able to count how many in total there are, however as the data I need to filter is just a string of data, not a field I'm having some difficulties. &lt;/P&gt;

&lt;P&gt;Thanks, &lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 18:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192917#M55469</guid>
      <dc:creator>shingdayho</dc:creator>
      <dc:date>2014-11-03T18:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to count and filter types of error data that are in the form of strings, not fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192918#M55470</link>
      <description>&lt;P&gt;You would have to extract a field containing the error message and then you can count individual error message count. Please post some sample log entries, possibly covering all possible error messages and Splunkers here can help you find regex to extract the field.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192918#M55470</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-03T19:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to count and filter types of error data that are in the form of strings, not fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192919#M55471</link>
      <description>&lt;P&gt;You would either need to define a field to differentiate the types. Or you can use the "Patterns" tab to have Splunk generate event types to help differentiate different patterns of event text.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:04:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192919#M55471</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2014-11-03T19:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to count and filter types of error data that are in the form of strings, not fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192920#M55472</link>
      <description>&lt;P&gt;Search thus far which shows all errors: &lt;BR /&gt;
index=nagios AND "backuppc" AND "WARNING;HARD" AND "CURRENT SERVICE"&lt;/P&gt;

&lt;P&gt;Some example results: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;03/11/2014 00:00:00.000 [1414972800] CURRENT SERVICE STATE: backuppc.shingdayho;BACKUPPC;WARNING;HARD;3;BACKUPPC WARNING - (webserver.shingdayho (ping too slow: 182.5msec (threshold is 60msec)), teamspeak.shingdayho (ping too slow: 145.4msec (threshold is 60msec)), ) host = nagios.shingdayho.com index = nagios source = /var/log/nagios/nagios.log 
03/11/2014 00:00:00.000 [1414972800] CURRENT SERVICE STATE: backuppc.shingdayho;BACKUPPC;WARNING;HARD;3;BACKUPPC WARNING - (mail2.shingdayho (aborted by signal=PIPE), ) host = nagios.shingdayho.com index = nagios source = /var/log/nagios/nagios.log 
02/11/2014 00:00:00.000 [1414886400] CURRENT SERVICE STATE: backuppc.shingdayho;BACKUPPC;WARNING;HARD;3;BACKUPPC WARNING - (webserver.shingdayho (lost network connection during backup), ) host = nagios.shingdayho.com index = nagios source = /var/log/nagios/nagios.log 
01/11/2014 00:00:00.000 [1414800000] CURRENT SERVICE STATE: backuppc.shingdayho;BACKUPPC;WARNING;HARD;3;BACKUPPC WARNING - (mail1.shingdayho (aborted by signal=PIPE), )
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:06:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192920#M55472</guid>
      <dc:creator>shingdayho</dc:creator>
      <dc:date>2014-11-03T19:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to count and filter types of error data that are in the form of strings, not fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192921#M55473</link>
      <description>&lt;P&gt;Could you please provide me to some examples which I could take a look at and I'll see if I can manipulate them for my needs, as well there is no "Patterns" tab in my Splunk, is there any other way to make Splunk generate these event types?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:07:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192921#M55473</guid>
      <dc:creator>shingdayho</dc:creator>
      <dc:date>2014-11-03T19:07:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to count and filter types of error data that are in the form of strings, not fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192922#M55474</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=nagios AND "backuppc" AND "WARNING;HARD" AND "CURRENT SERVICE"  | rex "WARNING [^\(]*\([^\(]*\((?&amp;lt;ErrorMessage&amp;gt;[^=\:\),]*)" | stats count by ErrorMessage
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:21:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192922#M55474</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-11-03T19:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to count and filter types of error data that are in the form of strings, not fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192923#M55475</link>
      <description>&lt;P&gt;That works! Thank you for your quick replies and for helping me fix it!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Nov 2014 19:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-count-and-filter-types-of-error-data-that-are-in-the-form/m-p/192923#M55475</guid>
      <dc:creator>shingdayho</dc:creator>
      <dc:date>2014-11-03T19:23:05Z</dc:date>
    </item>
  </channel>
</rss>

