<?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 to use the dedup command for this search? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319143#M95406</link>
    <description>&lt;P&gt;Ready &lt;/P&gt;

&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
    <pubDate>Tue, 10 Apr 2018 22:21:10 GMT</pubDate>
    <dc:creator>evinasco</dc:creator>
    <dc:date>2018-04-10T22:21:10Z</dc:date>
    <item>
      <title>How to use the dedup command for this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319140#M95403</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have the next source list indexed in Splunk&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4719i479E1F9DEC69BF39/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I need to let in only the last source by each factory owner&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**source**                                                                                                    -     **_time**

/var/log/gestion/logs/equipments/alcatel_ports.1519230396.log   -      2018-03-22 17:41:44
/var/log/gestion/logs/equipments/cisco_ports.1519230441.log          -      2018-03-22 17:41:44
/var/log/gestion/logs/equipments/huawei_ports.1519230476.log     -     2018-03-22 17:41:44
/var/log/gestion/logs/equipments/juniper_ports.1519230550.log    -     2018-03-22 17:41:44
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have tried to use &lt;EM&gt;dedup&lt;/EM&gt; command but for this data doesn't work ok. Does someone know how can I do that?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 14:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319140#M95403</guid>
      <dc:creator>evinasco</dc:creator>
      <dc:date>2018-04-10T14:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the dedup command for this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319141#M95404</link>
      <description>&lt;P&gt;hello there, &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;dedup&lt;/CODE&gt; does not work as it looks at the exact value for the field, and your values for each factory owner are different in the source&lt;BR /&gt;
try and extract the factory owner from the source field and then stats on the  latest&lt;BR /&gt;
something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... your search ... | rex field=source "\/equipments\/(?&amp;lt;factory_owner&amp;gt;\w+)"
| stats latest(factory_owner) as last_source_from_factory_owner by source 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;see also here:&lt;BR /&gt;
&lt;A href="https://regex101.com/r/uWt0Mf/2"&gt;https://regex101.com/r/uWt0Mf/2&lt;/A&gt;&lt;BR /&gt;
hope it helps&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 16:52:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319141#M95404</guid>
      <dc:creator>adonio</dc:creator>
      <dc:date>2018-04-10T16:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the dedup command for this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319142#M95405</link>
      <description>&lt;P&gt;what do you mean by "let in"?  &lt;CODE&gt;Dedup&lt;/CODE&gt; has nothing whatsoever to do with ingestion of data.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:10:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319142#M95405</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-04-10T17:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the dedup command for this search?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319143#M95406</link>
      <description>&lt;P&gt;Ready &lt;/P&gt;

&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 22:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-the-dedup-command-for-this-search/m-p/319143#M95406</guid>
      <dc:creator>evinasco</dc:creator>
      <dc:date>2018-04-10T22:21:10Z</dc:date>
    </item>
  </channel>
</rss>

