<?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 Why does dedup not return any results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144651#M40265</link>
    <description>&lt;P&gt;Below is an example of a log file I'm trying to analyse (thousands of entries).  I wish to remove duplicate entries based on the &lt;CODE&gt;Acct-Session-Id&lt;/CODE&gt;.  So I'm using dedup  e.g.: source="file1"  dedup Acct-Session-Id&lt;/P&gt;

&lt;P&gt;What I get is;  "No results found."&lt;/P&gt;

&lt;P&gt;Is there something I'm missing? I have tried all suggestions on this forum.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Sun Jun  2 23:54:41 2014
    Packet-Type = Access-Request
    Acct-Session-Id = "6885EAB8-8056F22CA0AB-0000016600"
    Calling-Station-Id = "80-xx-xx-2xx-xx-AB"
    Called-Station-Id = "00-xx-xx-75-86-D0"
    Vendor-388-Attr-2 = 0xxxx475726f616d
    NAS-Port = 1
    NAS-Port-Type = Wireless-802.11
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Jun 2015 15:20:38 GMT</pubDate>
    <dc:creator>Scan001</dc:creator>
    <dc:date>2015-06-08T15:20:38Z</dc:date>
    <item>
      <title>Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144651#M40265</link>
      <description>&lt;P&gt;Below is an example of a log file I'm trying to analyse (thousands of entries).  I wish to remove duplicate entries based on the &lt;CODE&gt;Acct-Session-Id&lt;/CODE&gt;.  So I'm using dedup  e.g.: source="file1"  dedup Acct-Session-Id&lt;/P&gt;

&lt;P&gt;What I get is;  "No results found."&lt;/P&gt;

&lt;P&gt;Is there something I'm missing? I have tried all suggestions on this forum.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Sun Jun  2 23:54:41 2014
    Packet-Type = Access-Request
    Acct-Session-Id = "6885EAB8-8056F22CA0AB-0000016600"
    Calling-Station-Id = "80-xx-xx-2xx-xx-AB"
    Called-Station-Id = "00-xx-xx-75-86-D0"
    Vendor-388-Attr-2 = 0xxxx475726f616d
    NAS-Port = 1
    NAS-Port-Type = Wireless-802.11
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2015 15:20:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144651#M40265</guid>
      <dc:creator>Scan001</dc:creator>
      <dc:date>2015-06-08T15:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144652#M40266</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
we must put the pipe before using dedup because dedup is a command&lt;BR /&gt;
 &lt;CODE&gt;dedup&lt;/CODE&gt; Removes the events which contain an identical combination of values for selected fields.&lt;BR /&gt;
Also check if the field acc-session_id used by dedup appears in highlight the results.&lt;BR /&gt;
 because if acc-session_id is a field, it will not work.&lt;/P&gt;

&lt;P&gt;check and let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:11:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144652#M40266</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2020-09-28T20:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144653#M40267</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
Thanks for quick answer,  I have tried it with and without the pipe.   It does try and run when I use the pipe but returns zero results.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 15:27:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144653#M40267</guid>
      <dc:creator>Scan001</dc:creator>
      <dc:date>2015-06-08T15:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144654#M40268</link>
      <description>&lt;P&gt;when you remove dedup, you have the results?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 15:36:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144654#M40268</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2015-06-08T15:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144655#M40269</link>
      <description>&lt;P&gt;Hey.&lt;/P&gt;

&lt;P&gt;Okay I don't understand the second part of your answer.  This may be the source of my problem.  What do you mean &lt;BR /&gt;
" if the field acc-session_id used by dedup appears in highlight the results. because if acc-session_id is a field....."&lt;/P&gt;

&lt;P&gt;Apologise if this is a very basic question,  I'm a newbe and I'm just getting the hang of the language..&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 20:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144655#M40269</guid>
      <dc:creator>Scan001</dc:creator>
      <dc:date>2020-09-28T20:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144656#M40270</link>
      <description>&lt;P&gt;hi  Scan001 &lt;BR /&gt;
Try search code with uniq command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source="file1"  |table Acct-Session-Id| uniq
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jun 2015 16:23:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144656#M40270</guid>
      <dc:creator>chimell</dc:creator>
      <dc:date>2015-06-08T16:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144657#M40271</link>
      <description>&lt;P&gt;Thanks Chimell,&lt;/P&gt;

&lt;P&gt;Unfortunately that returns all records and drops none of the duplicates.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 16:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144657#M40271</guid>
      <dc:creator>Scan001</dc:creator>
      <dc:date>2015-06-08T16:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144658#M40272</link>
      <description>&lt;P&gt;I just ask to check if the Acct-Session-id field appears in the events and if multiple values&lt;BR /&gt;
try this query: &lt;CODE&gt;source="file1" |table Acct-Session-Id |dedup Acct-Session-Id&lt;/CODE&gt; an let me know if you have the results.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 16:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144658#M40272</guid>
      <dc:creator>gyslainlatsa</dc:creator>
      <dc:date>2015-06-08T16:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: Why does dedup not return any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144659#M40273</link>
      <description>&lt;P&gt;Yes, it is in every record.  I tried your suggestion, but the duplicates are not filtered out, the complete set is returned. &lt;/P&gt;

&lt;P&gt;Frustrating!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2015 22:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-dedup-not-return-any-results/m-p/144659#M40273</guid>
      <dc:creator>Scan001</dc:creator>
      <dc:date>2015-06-08T22:40:05Z</dc:date>
    </item>
  </channel>
</rss>

