<?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: remove duplicate or similar event in a trasaction command from the search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289192#M163913</link>
    <description>&lt;P&gt;Hello @kamlesh_vaghela  and everybody,&lt;/P&gt;

&lt;P&gt;The solution you proposed to me does not work.&lt;/P&gt;

&lt;P&gt;I want to merge the same events which are between eventcode="7036", i want to merge all duplicates so that only one eventcode = "4663" remains.&lt;/P&gt;

&lt;P&gt;But i want to do a difference between eventcode="4663" there are message where the eventcode is 4663 but the message is different and i want to merge duplicate and only display a message of each.&lt;/P&gt;

&lt;P&gt;for example 1:&lt;/P&gt;

&lt;P&gt;eventcode"7336"&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A ---&amp;gt; here i want to merge eventcode"4663"so that there is only one left because these events are the same.&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A&lt;BR /&gt;
eventcode"7336"&lt;/P&gt;

&lt;P&gt;example 2:&lt;/P&gt;

&lt;P&gt;eventcode"7336"&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A ---&amp;gt; here i want to merge eventcode"4663"-&amp;gt;message A so that there is only one left because these events are the same.&lt;BR /&gt;
eventcode"4663" -&amp;gt; message B ---&amp;gt; here i want to remove one eventcode"4663"-&amp;gt;message B so that there is only one left because these events are the same&lt;BR /&gt;
eventcode"4663" -&amp;gt; message B&lt;BR /&gt;
eventcode"7336"&lt;/P&gt;

&lt;P&gt;thank you&lt;/P&gt;

&lt;P&gt;Amir&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2018 09:54:48 GMT</pubDate>
    <dc:creator>amir_thales</dc:creator>
    <dc:date>2018-01-08T09:54:48Z</dc:date>
    <item>
      <title>remove duplicate or similar event in a trasaction command from the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289190#M163911</link>
      <description>&lt;P&gt;Hello Everybody,&lt;/P&gt;

&lt;P&gt;I want to remove similar event which are in a transaction command. &lt;/P&gt;

&lt;P&gt;In my case, I want to merge the eventcode 4663 similar so that only 1 eventcode 4663&lt;/P&gt;

&lt;P&gt;Be careful, there are event code 4663 that are not similar so there will be 2 event code 4663 in this case.&lt;/P&gt;

&lt;P&gt;Here is my request which display the result below:&lt;/P&gt;

&lt;P&gt;host="XXXX" "eventcode=4663"  OR "eventcode=7036" | transaction startswith="*running state." endswith="*stopped state."&lt;/P&gt;

&lt;P&gt;i try dedup but without success.&lt;/P&gt;

&lt;P&gt;Thank you &lt;BR /&gt;
Amir&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/225667-splunk-dedup.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:30:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289190#M163911</guid>
      <dc:creator>amir_thales</dc:creator>
      <dc:date>2020-09-29T17:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate or similar event in a trasaction command from the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289191#M163912</link>
      <description>&lt;P&gt;Hi @amir_thales,&lt;/P&gt;

&lt;P&gt;I'm uncleared about your requirement.&lt;/P&gt;

&lt;P&gt;Meanwhile can you please try &lt;CODE&gt;mvdedup&lt;/CODE&gt;?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="XXXX" "eventcode=4663" OR "eventcode=7036" | transaction startswith="*running state." endswith="*stopped state." | eval eventcode=mvdedup(eventcode).
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/MultivalueEvalFunctions#mvdedup.28X.29"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/SearchReference/MultivalueEvalFunctions#mvdedup.28X.29&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2018 16:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289191#M163912</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-01-05T16:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate or similar event in a trasaction command from the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289192#M163913</link>
      <description>&lt;P&gt;Hello @kamlesh_vaghela  and everybody,&lt;/P&gt;

&lt;P&gt;The solution you proposed to me does not work.&lt;/P&gt;

&lt;P&gt;I want to merge the same events which are between eventcode="7036", i want to merge all duplicates so that only one eventcode = "4663" remains.&lt;/P&gt;

&lt;P&gt;But i want to do a difference between eventcode="4663" there are message where the eventcode is 4663 but the message is different and i want to merge duplicate and only display a message of each.&lt;/P&gt;

&lt;P&gt;for example 1:&lt;/P&gt;

&lt;P&gt;eventcode"7336"&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A ---&amp;gt; here i want to merge eventcode"4663"so that there is only one left because these events are the same.&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A&lt;BR /&gt;
eventcode"7336"&lt;/P&gt;

&lt;P&gt;example 2:&lt;/P&gt;

&lt;P&gt;eventcode"7336"&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A&lt;BR /&gt;
eventcode"4663" -&amp;gt; message A ---&amp;gt; here i want to merge eventcode"4663"-&amp;gt;message A so that there is only one left because these events are the same.&lt;BR /&gt;
eventcode"4663" -&amp;gt; message B ---&amp;gt; here i want to remove one eventcode"4663"-&amp;gt;message B so that there is only one left because these events are the same&lt;BR /&gt;
eventcode"4663" -&amp;gt; message B&lt;BR /&gt;
eventcode"7336"&lt;/P&gt;

&lt;P&gt;thank you&lt;/P&gt;

&lt;P&gt;Amir&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 09:54:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289192#M163913</guid>
      <dc:creator>amir_thales</dc:creator>
      <dc:date>2018-01-08T09:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate or similar event in a trasaction command from the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289193#M163914</link>
      <description>&lt;P&gt;Hi @amir_thales,&lt;BR /&gt;
Can you please share sample events?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 13:05:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289193#M163914</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-01-08T13:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate or similar event in a trasaction command from the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289194#M163915</link>
      <description>&lt;P&gt;@kamlesh_vaghela,&lt;/P&gt;

&lt;P&gt;i put a sample in my first post.&lt;/P&gt;

&lt;P&gt;i have 3 eventcode"4663" and i want to merge them. &lt;/P&gt;

&lt;P&gt;Maybe, i must do something before to do the "transaction" but i don't know any function which merge similar events.&lt;/P&gt;

&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 13:13:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289194#M163915</guid>
      <dc:creator>amir_thales</dc:creator>
      <dc:date>2018-01-08T13:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate or similar event in a trasaction command from the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289195#M163916</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
Can you please try this ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Security"  "EventCode=4663" OR "EventCode=7036"
| rex field=_raw "EventCode=(?&amp;lt;EventRaw&amp;gt;.*)" max_match=0
| eval EventRaw=mvdedup(EventRaw) 
| table _time EventRaw
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jan 2018 13:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289195#M163916</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-01-08T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: remove duplicate or similar event in a trasaction command from the search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289196#M163917</link>
      <description>&lt;P&gt;@kamlesh_vaghela,&lt;/P&gt;

&lt;P&gt;This request display me a table which list all eventcode"4663".&lt;/P&gt;

&lt;P&gt;So i want just merge the eventcode"4663" which are between the eventcode"7036".&lt;/P&gt;

&lt;P&gt;I just read the different evencode'4663' and I noticed that the eventcodes "4663" were not identical because the application that executes is different.&lt;/P&gt;

&lt;P&gt;So much for me and thank you for your help.&lt;/P&gt;

&lt;P&gt;If you know a function or a way of answering the original question even if my problem is solved it would not be a refusal, so it will be useful for me in the future.&lt;/P&gt;

&lt;P&gt;Thank you&lt;BR /&gt;
Amir&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 14:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/remove-duplicate-or-similar-event-in-a-trasaction-command-from/m-p/289196#M163917</guid>
      <dc:creator>amir_thales</dc:creator>
      <dc:date>2018-01-08T14:06:16Z</dc:date>
    </item>
  </channel>
</rss>

