<?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 How to avoid displaying duplicate logs in search results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257670#M77154</link>
    <description>&lt;P&gt;I am trying to search /var/log/messages log with keywords like shutdown or Error and storing it in message.log&lt;/P&gt;

&lt;P&gt;and doing index on message.log&lt;/P&gt;

&lt;P&gt;I have a log around at 5 mins ago like 11:30 AM EST says system is shutdown and I displayed this error log in a table format.&lt;/P&gt;

&lt;P&gt;Around at 11:40 AM EST, when I ran search command in a table format, I see SYSTEM is Shutdown, but we already knew that system is down at 11:30 AM EST and now I don't want to see this message again.&lt;/P&gt;

&lt;P&gt;How can we achieve this?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2016 17:01:38 GMT</pubDate>
    <dc:creator>rajgowd1</dc:creator>
    <dc:date>2016-10-17T17:01:38Z</dc:date>
    <item>
      <title>How to avoid displaying duplicate logs in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257670#M77154</link>
      <description>&lt;P&gt;I am trying to search /var/log/messages log with keywords like shutdown or Error and storing it in message.log&lt;/P&gt;

&lt;P&gt;and doing index on message.log&lt;/P&gt;

&lt;P&gt;I have a log around at 5 mins ago like 11:30 AM EST says system is shutdown and I displayed this error log in a table format.&lt;/P&gt;

&lt;P&gt;Around at 11:40 AM EST, when I ran search command in a table format, I see SYSTEM is Shutdown, but we already knew that system is down at 11:30 AM EST and now I don't want to see this message again.&lt;/P&gt;

&lt;P&gt;How can we achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257670#M77154</guid>
      <dc:creator>rajgowd1</dc:creator>
      <dc:date>2016-10-17T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid displaying duplicate logs in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257671#M77155</link>
      <description>&lt;P&gt;rajgowd1,&lt;/P&gt;

&lt;P&gt;I'd like more information or perhaps a screenshot to help you to remove the duplicate logs. It sounds like you just need to change your search time window.&lt;/P&gt;

&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:11:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257671#M77155</guid>
      <dc:creator>adamsaul</dc:creator>
      <dc:date>2016-10-17T17:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid displaying duplicate logs in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257672#M77156</link>
      <description>&lt;P&gt;You can use timemodifiers to limit your logs to a specific timeframe. So for example, if you run you search every 5 mins, you can limit your search to prev 5 mins data using &lt;CODE&gt;earliest=-5M@m&lt;/CODE&gt; in your base search.&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/SearchTimeModifiers"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.0/SearchReference/SearchTimeModifiers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:36:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257672#M77156</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-17T17:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid displaying duplicate logs in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257673#M77157</link>
      <description>&lt;P&gt;It sounds like you should be extracting these fields at search time and using dedup, but it is difficult to be sure without seeing your search.  Can you post your search?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2016 17:57:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257673#M77157</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2016-10-17T17:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid displaying duplicate logs in search results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257674#M77158</link>
      <description>&lt;P&gt;I agree with the others that the best way is to limit your timerange.&lt;BR /&gt;
Every way you could extract a field with error and dedup using this field and host.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | dedup host error | table ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye,&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 18 Oct 2016 08:07:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-avoid-displaying-duplicate-logs-in-search-results/m-p/257674#M77158</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-18T08:07:09Z</dc:date>
    </item>
  </channel>
</rss>

