<?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 Can I get a table of distinct errors? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337941#M100230</link>
    <description>&lt;P&gt;Given the data, I don't see the reason for the escaped pipe &lt;CODE&gt;\|&lt;/CODE&gt; in your rex.  try deleting that and seeing if the rex works again.&lt;/P&gt;</description>
    <pubDate>Tue, 12 Dec 2017 18:28:13 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-12-12T18:28:13Z</dc:date>
    <item>
      <title>How Can I get a table of distinct errors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337939#M100228</link>
      <description>&lt;P&gt;I am looking to create a table for distinct errors we have. Unfortunately I had this working at one point and am unable to recreate it and didn't save it. I have the following string, "Error - (Some text explaining the error)".  I was doing the following to pull the variable for the error string: &lt;CODE&gt;rex field=_raw "Error - \|(?&amp;lt;ErrorString&amp;gt;\d+)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I am looking to create a table with the server, distinct error string, count of total occurrences of the error on the specified server. Currently when I try to add my ErrorString field, I get the number of events from my search but each field is blank.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 17:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337939#M100228</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2017-12-12T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I get a table of distinct errors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337940#M100229</link>
      <description>&lt;P&gt;maybe this:&lt;/P&gt;

&lt;P&gt;your search |  rex field=_raw "Error - |(?\d+)"&lt;BR /&gt;
| stats count as error_count dc(ErrorString) as ErrString by server&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:16:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337940#M100229</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2020-09-29T17:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I get a table of distinct errors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337941#M100230</link>
      <description>&lt;P&gt;Given the data, I don't see the reason for the escaped pipe &lt;CODE&gt;\|&lt;/CODE&gt; in your rex.  try deleting that and seeing if the rex works again.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 18:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337941#M100230</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-12-12T18:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I get a table of distinct errors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337942#M100231</link>
      <description>&lt;P&gt;From your description it sounds like you might be after a search like:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;...|rex field=_raw "Error - \|(?&amp;lt;ErrorString&amp;gt;\d+)" | stats count by host ErrorString&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 18:28:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337942#M100231</guid>
      <dc:creator>rphillips_splk</dc:creator>
      <dc:date>2017-12-12T18:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I get a table of distinct errors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337943#M100232</link>
      <description>&lt;P&gt;My error string is multiple words, is there a way to specify the rex to go a certain length and not stop at the first word?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 19:29:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337943#M100232</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2017-12-12T19:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I get a table of distinct errors?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337944#M100233</link>
      <description>&lt;P&gt;If you wanted up to 30 characters, you could go &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=_raw "Error - \|(?&amp;lt;ErrorString&amp;gt;.{1,30})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Dec 2017 19:43:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-Can-I-get-a-table-of-distinct-errors/m-p/337944#M100233</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-12-12T19:43:51Z</dc:date>
    </item>
  </channel>
</rss>

