<?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 dedup based on other fields conditions? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643996#M79177</link>
    <description>&lt;P&gt;You mentioned in your description that you want to use dedup on user field.&lt;/P&gt;&lt;P&gt;If you check the data given, the first and second row have different field values for user: - abc, abc1.&lt;/P&gt;&lt;P&gt;In your actual dataset, are two values different or are they same?&lt;/P&gt;</description>
    <pubDate>Sat, 20 May 2023 03:04:15 GMT</pubDate>
    <dc:creator>Taruchit</dc:creator>
    <dc:date>2023-05-20T03:04:15Z</dc:date>
    <item>
      <title>How to dedup based on other fields conditions?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643990#M79174</link>
      <description>&lt;P&gt;I am new and learning splunk, I have a 2 events like below with same event type.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;name='name1', user='abc', type='type1', other-fields &amp;nbsp; &amp;nbsp; : latest event&lt;/P&gt;&lt;P&gt;name='name1', user='abc1', type='type1', other-fields &amp;nbsp;: past event&lt;/P&gt;&lt;P&gt;name='name2', user='def', type='type2', other-fields &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to dedup based on user field, but the dedup value changes but all other fields remain same. In this case I want to match fields name &amp;amp; type between first 2 events and pick up the latest one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My final filtered events should be:&lt;/P&gt;&lt;P&gt;name='xyz', user='abc', type='new', other-fields&lt;/P&gt;&lt;P&gt;name='name2', user='def', type='type2', other-fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 00:35:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643990#M79174</guid>
      <dc:creator>kashtech</dc:creator>
      <dc:date>2023-05-20T00:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to dedup based on other fields conditions?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643994#M79175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256954"&gt;@kashtech&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your dataset's field values and the expected output field values are not seeming to be in sync.&lt;/P&gt;&lt;P&gt;For example: -&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset that you shared: -&lt;/P&gt;&lt;P&gt;name='name1', user='abc', type='type1', other-fields &amp;nbsp; &amp;nbsp; : latest event&lt;/P&gt;&lt;P&gt;name='name1', user='abc1', type='type1', other-fields &amp;nbsp;: past event&lt;/P&gt;&lt;P&gt;name='name2', user='def', type='type2', other-fields &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here, the two distinct values for field "type" are: - type1 and type2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, in your expected result, the value of field "type" is new.&lt;/P&gt;&lt;P&gt;name='xyz', user='abc', type='new', other-fields&lt;/P&gt;&lt;P&gt;name='name2', user='def', type='type2', other-fields&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus, for clarity it would be helpful if you could share the dataset: -&lt;/P&gt;&lt;P&gt;1. in tabular format&lt;/P&gt;&lt;P&gt;2. in sync between input and expected output.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 02:59:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643994#M79175</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-05-20T02:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to dedup based on other fields conditions?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643995#M79176</link>
      <description>&lt;P&gt;Oh! sorry for the typo, my expected output:&lt;/P&gt;&lt;P&gt;name='xyz', user='abc', type='type1', other-fields&lt;/P&gt;&lt;P&gt;name='name2', user='def', type='type2', other-fields&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 03:01:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643995#M79176</guid>
      <dc:creator>kashtech</dc:creator>
      <dc:date>2023-05-20T03:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to dedup based on other fields conditions?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643996#M79177</link>
      <description>&lt;P&gt;You mentioned in your description that you want to use dedup on user field.&lt;/P&gt;&lt;P&gt;If you check the data given, the first and second row have different field values for user: - abc, abc1.&lt;/P&gt;&lt;P&gt;In your actual dataset, are two values different or are they same?&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 03:04:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/643996#M79177</guid>
      <dc:creator>Taruchit</dc:creator>
      <dc:date>2023-05-20T03:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to dedup based on other fields conditions?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/644001#M79178</link>
      <description>&lt;P&gt;This is not possible given the provided information - there is no provided logical relationship between your dummy data and the expected output.&lt;/P&gt;&lt;P&gt;Please provide more accurate representations of your events, the expected output and&amp;nbsp; the logical relationship between them.&lt;/P&gt;</description>
      <pubDate>Sat, 20 May 2023 05:57:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/644001#M79178</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-05-20T05:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to dedup based on other fields conditions?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/644025#M79180</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/256954"&gt;@kashtech&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with the last option in stats?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats 
   last(name) AS name 
   last(type) AS type 
   last(other-fields) AS other-fields 
   BY user&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sun, 21 May 2023 05:44:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-dedup-based-on-other-fields-conditions/m-p/644025#M79180</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-21T05:44:31Z</dc:date>
    </item>
  </channel>
</rss>

