<?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: Removing duplicates in exported Report results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105549#M27364</link>
    <description>&lt;P&gt;&lt;STRONG&gt;This is splunk not excel&lt;/STRONG&gt;, you kind of need a value for each field of each event .....&lt;/P&gt;

&lt;P&gt;you could play with streamstats to create a new field for the column that will be empty if this is the same than the previous one.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jan 2013 16:35:02 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2013-01-31T16:35:02Z</dc:date>
    <item>
      <title>Removing duplicates in exported Report results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105546#M27361</link>
      <description>&lt;P&gt;I have a search like this which produces the result I want (it counts modules per account number and location - &lt;STRONG&gt;the log has moduleId, account number and location&lt;/STRONG&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="accountLog" ModuleID=* accountLocation=* | dedup ModuleID | stats count(ModuleID) AS Total by accountNumber, accountLocation
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;These are the results I get in the correct format.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AccountNumber | Account Location | Total

    1234                   US            123

    1234                   EU             545
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How do I get rid of the Account number appearing multiple times?&lt;BR /&gt;
Can we selectively stop it from duplicating row values for just this column (without using dedup - i cannot use dedup here for obvious reasons) ? &lt;/P&gt;

&lt;P&gt;Before an answer is proposed I already know about using &lt;STRONG&gt;list(values)&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;If I append list(values) by to my current filter, it works, but when i export it into a CSV file (or get splunk to run a query to generate it inline). &lt;/P&gt;

&lt;P&gt;I am trying to get non-duplicates for that column in the exported CSV. &lt;/P&gt;

&lt;P&gt;Any suggestions ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 00:23:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105546#M27361</guid>
      <dc:creator>asarolkar</dc:creator>
      <dc:date>2013-01-31T00:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates in exported Report results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105547#M27362</link>
      <description>&lt;P&gt;Just to be sure I understand your goal, is this the result you're looking for?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;AccountNumber | Account Location | Total
1234            US                 123
                EU                 545
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In other words, still two rows but empty in row 2 column 1?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 09:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105547#M27362</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-01-31T09:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates in exported Report results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105548#M27363</link>
      <description>&lt;P&gt;That is correct !&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 15:37:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105548#M27363</guid>
      <dc:creator>asarolkar</dc:creator>
      <dc:date>2013-01-31T15:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates in exported Report results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105549#M27364</link>
      <description>&lt;P&gt;&lt;STRONG&gt;This is splunk not excel&lt;/STRONG&gt;, you kind of need a value for each field of each event .....&lt;/P&gt;

&lt;P&gt;you could play with streamstats to create a new field for the column that will be empty if this is the same than the previous one.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105549#M27364</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-01-31T16:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates in exported Report results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105550#M27365</link>
      <description>&lt;P&gt;Well you could do what you want with some stats functions... something like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="accountLog" ModuleID=* accountLocation=* | dedup ModuleID
| stats count(ModuleID) AS Total by accountNumber, accountLocation
| sort Total desc
| eval location=accountLocation.": ".Total
| stats list(location) by accountNumber
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;should give you a report with two columns&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;accountNumber | location
1234            EU: 545
                US: 123
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jan 2013 16:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105550#M27365</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2013-01-31T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Removing duplicates in exported Report results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105551#M27366</link>
      <description>&lt;P&gt;Man that was a brilliant solution ! &lt;BR /&gt;
Splunk is not excel. I get that. &lt;/P&gt;

&lt;P&gt;But this solution saved us a lot of work.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2013 07:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Removing-duplicates-in-exported-Report-results/m-p/105551#M27366</guid>
      <dc:creator>asarolkar</dc:creator>
      <dc:date>2013-02-01T07:52:02Z</dc:date>
    </item>
  </channel>
</rss>

