<?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: Unique Errors for Last Week over All Time in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Unique-Errors-for-Last-Week-over-All-Time/m-p/42792#M7986</link>
    <description>&lt;P&gt;Have you tried taking a look at using either the "uniq" function with your search?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.7/SearchReference/Uniq" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.7/SearchReference/Uniq&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You could do something such as: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;log_level="ERROR" | uniq | cluster field=error showcount=true countfield=count | table, _time, count, error | sort _time| outputcsv errorhistory.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Feb 2011 19:38:43 GMT</pubDate>
    <dc:creator>Rob</dc:creator>
    <dc:date>2011-02-11T19:38:43Z</dc:date>
    <item>
      <title>Unique Errors for Last Week over All Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unique-Errors-for-Last-Week-over-All-Time/m-p/42791#M7985</link>
      <description>&lt;P&gt;I currently have a search set up to identify an individual error clustered to show the total count, detail and last seen timestamp output into a CSV table over all time. This search is scheduled to run/update weekly.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;log_level="ERROR" | cluster field=error showcount=true countfield=count | table, _time, count, error | sort _time| outputcsv errorhistory.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My goal is to use this as a refrence point whereby I can run an identical search across a period of a week / day to cross reference if the individual error has ever been seen before from the all time csv i.e. a true new error.&lt;/P&gt;

&lt;P&gt;I have attempted various lookup's however am now stuck for a way on how to work it.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2011 18:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unique-Errors-for-Last-Week-over-All-Time/m-p/42791#M7985</guid>
      <dc:creator>Joshua</dc:creator>
      <dc:date>2011-02-11T18:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Errors for Last Week over All Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unique-Errors-for-Last-Week-over-All-Time/m-p/42792#M7986</link>
      <description>&lt;P&gt;Have you tried taking a look at using either the "uniq" function with your search?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.splunk.com/base/Documentation/4.1.7/SearchReference/Uniq" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/4.1.7/SearchReference/Uniq&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You could do something such as: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;log_level="ERROR" | uniq | cluster field=error showcount=true countfield=count | table, _time, count, error | sort _time| outputcsv errorhistory.csv
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Feb 2011 19:38:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unique-Errors-for-Last-Week-over-All-Time/m-p/42792#M7986</guid>
      <dc:creator>Rob</dc:creator>
      <dc:date>2011-02-11T19:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Unique Errors for Last Week over All Time</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Unique-Errors-for-Last-Week-over-All-Time/m-p/42793#M7987</link>
      <description>&lt;P&gt;I have tried used this command however it will only return unique results from the search window selected such as that week. Which i can get by adding | search(count=1) |&lt;/P&gt;

&lt;P&gt;Rather I need the unique results (i.e. count equal to 1) for the week and have not appeared in the errorhistory.csv&lt;/P&gt;

&lt;P&gt;Any thoughts?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Feb 2011 00:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Unique-Errors-for-Last-Week-over-All-Time/m-p/42793#M7987</guid>
      <dc:creator>Joshua</dc:creator>
      <dc:date>2011-02-12T00:31:29Z</dc:date>
    </item>
  </channel>
</rss>

