<?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: eliminate duplicate values before TRANSACTION command in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584297#M203469</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241423"&gt;@priya1926&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case you have to use the transaction command using the option keeporphan=true and filtering for _txn_orphan|=1,&amp;nbsp;&amp;nbsp;something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="winevent" host IN (abc) EventCode=6006 OR EventCode="6005" Type=Information
| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| eval stoptime = if(EventCode=6006,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| transaction host startswith=6006 endswith=6005 maxevents=2 keeporphan=True
| where _txn_orphan!=1
| eval duration=tostring(duration,"duration")
| eval time_taken = replace(duration,"(\d+)\:(\d+)\:(\d+)","\1h \2min \3sec")
| rename time_taken AS Downtime
| dedup Downtime, BootUptime
| table host,stoptime, BootUptime, Downtime&lt;/LI-CODE&gt;&lt;P&gt;in this way you have in way, you have transaction with only two events (start and end) and you discard all the transactions with only one event.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 09 Feb 2022 14:12:34 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-02-09T14:12:34Z</dc:date>
    <item>
      <title>How to eliminate duplicate rows before transaction command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584254#M203450</link>
      <description>&lt;P&gt;How to eliminate duplicate rows before transaction command. Because of which I am getting wrong calculation.&lt;BR /&gt;&lt;BR /&gt;eg scenario: calculating downtime based on events&lt;BR /&gt;&lt;BR /&gt;Query is&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="winevent" host IN (abc) EventCode=6006 OR EventCode="6005" Type=Information
| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| eval stoptime = if(EventCode=6006,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| transaction host startswith=6006 endswith=6005 maxevents=2
| eval duration=tostring(duration,"duration")
| eval time_taken = replace(duration,"(\d+)\:(\d+)\:(\d+)","\1h \2min \3sec")
| rename time_taken AS Downtime
| dedup Downtime, BootUptime
| table host,stoptime, BootUptime, Downtime&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Result is ::&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;host                stoptime                                              bootuptime                                                                Downtime
abc           2022-30-01 10:39:25                        2022-30-01 10:40:29                                         00h 01min 04sec
abc           2022-09-01 09:27:53                        2022-09-01 09:28:34                                         00h 00min 41sec
abc           2021-28-11 10:52:52                        2022-09-01 09:28:34                                     41d 22h 35min 42sec&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;in the result since i have duplicate in bootuptime the dowtime calculation is incorrect. How to get rid of this?&lt;BR /&gt;&lt;BR /&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584254#M203450</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-10T16:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584266#M203455</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241423"&gt;@priya1926&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;let me understand, if in one day you have more boot events you want to calculate only the first, is it correct?&lt;/P&gt;&lt;P&gt;could you have more boots in the same day?&lt;/P&gt;&lt;P&gt;if not, you could use stats command and have a faster search:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="winevent" host IN (abc) EventCode IN (6006,6005) Type=Information
| eval 
   BootUptime = if(EventCode="6005",_time,null()),
   stoptime = if(EventCode=6006,_time,null())
| bin _time span=1d
| stats earliest(BootUptime) AS BootUptime latest(stoptime) AS stoptime BY _time host
| eval Downtime=tostring(stoptime-BootUptime,"duration")
| table host stoptime BootUptime Downtime&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584266#M203455</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-09T12:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584267#M203456</link>
      <description>&lt;P&gt;Nope. I need to calculate all the events... eg: six months or 3 months.. or a server that rebooted thrice a day.. even that..&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584267#M203456</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-09T12:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584268#M203457</link>
      <description>&lt;P&gt;Well, what is your data? You seem not to have "duplicate rows" but quite the contrary - you have missing data. If a host stopped at 2022-09-01 09:27:53 , it must have booted up somewhere sooner than 2022-09-01 09:28:34, doesn't it?&lt;/P&gt;&lt;P&gt;Anyway, it seems that sorting the data and doing a streamstats can be more effective than using transaction.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 12:38:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584268#M203457</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-09T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584297#M203469</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241423"&gt;@priya1926&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;in this case you have to use the transaction command using the option keeporphan=true and filtering for _txn_orphan|=1,&amp;nbsp;&amp;nbsp;something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="winevent" host IN (abc) EventCode=6006 OR EventCode="6005" Type=Information
| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| eval stoptime = if(EventCode=6006,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| transaction host startswith=6006 endswith=6005 maxevents=2 keeporphan=True
| where _txn_orphan!=1
| eval duration=tostring(duration,"duration")
| eval time_taken = replace(duration,"(\d+)\:(\d+)\:(\d+)","\1h \2min \3sec")
| rename time_taken AS Downtime
| dedup Downtime, BootUptime
| table host,stoptime, BootUptime, Downtime&lt;/LI-CODE&gt;&lt;P&gt;in this way you have in way, you have transaction with only two events (start and end) and you discard all the transactions with only one event.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 14:12:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584297#M203469</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-09T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584314#M203472</link>
      <description>&lt;P&gt;This doesnot seem to give me any results. and&amp;nbsp;keeporphans=True .. No result though i have events..&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584314#M203472</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-09T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584326#M203474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241423"&gt;@priya1926&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;try to delete&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where _txn_orphan!=1&lt;/LI-CODE&gt;&lt;P&gt;and see what's happens: it should be both transaction with start and end and transaction with only start.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 15:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584326#M203474</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-09T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584331#M203477</link>
      <description>&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="154.385px"&gt;abc&lt;/TD&gt;&lt;TD width="277px"&gt;2021-22-11 14:14:22&lt;/TD&gt;&lt;TD width="166px"&gt;2021-22-11 14:14:37&lt;/TD&gt;&lt;TD width="166px"&gt;00h 00min 15sec&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="154.385px"&gt;abc&lt;/TD&gt;&lt;TD width="277px"&gt;2021-22-11 14:14:22&lt;/TD&gt;&lt;TD width="166px"&gt;2022-07-01 13:45:30&lt;/TD&gt;&lt;TD width="166px"&gt;45+23h 31min 08sec&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its the same after removing | where _txn_orphan!=1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:01:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584331#M203477</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-09T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584333#M203478</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;since there is duplication.. its giving us downtime in dayss.. need to dedup. but i am not finding a way&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:04:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584333#M203478</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-09T16:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584334#M203479</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241423"&gt;@priya1926&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;could you try&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="winevent" host IN (abc) EventCode=6006 OR EventCode="6005" Type=Information
| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| eval stoptime = if(EventCode=6006,strftime(_time, "%Y-%d-%m %H:%M:%S"),null())
| transaction host startswith=6006 endswith=6005 maxevents=2 keeporphan=True
| rename duration AS Downtime
| dedup Downtime, BootUptime
| table host stoptime  BootUptime  Downtime _txn_orphan&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and share results?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:08:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584334#M203479</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-09T16:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584336#M203480</link>
      <description>&lt;P&gt;What do you mean by "duplication?&lt;/P&gt;&lt;P&gt;Your table:&lt;/P&gt;&lt;P&gt;host stoptime bootuptime Downtime&lt;BR /&gt;abc 2022-30-01 10:39:25 2022-30-01 10:40:29 00h 01min 04sec&lt;BR /&gt;abc 2022-09-01 09:27:53 2022-09-01 09:28:34 00h 00min 41sec&lt;BR /&gt;abc 2021-28-11 10:52:52 2022-09-01 09:28:34 41d 22h 35min 42sec&lt;/P&gt;&lt;P&gt;If the host stopped at 2022-09-01 09:28:34 after being booted up at 2021-28-11 10:52:52 2022-09-01, how could have it booted up at 2022-09-01 09:27:53 2022-09-01?&lt;/P&gt;&lt;P&gt;What are your events showing? Because either you indeed have "duplicate" data but that's a problem with quality of your data if it's supposed to show an incident of transition between states or you have loss of data.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:16:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584336#M203480</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-09T16:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584341#M203483</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-22-11 20:05:44&lt;/TD&gt;&lt;TD&gt;2021-22-11 20:06:00&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-22-11 14:14:22&lt;/TD&gt;&lt;TD&gt;2021-22-11 14:14:37&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-22-11 14:14:22&lt;/TD&gt;&lt;TD&gt;2022-07-01 13:45:30&lt;/TD&gt;&lt;TD&gt;3972668&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-22-11 13:48:33&lt;/TD&gt;&lt;TD&gt;2021-22-11 13:48:49&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-22-11 11:12:04&lt;/TD&gt;&lt;TD&gt;2021-22-11 11:12:20&lt;/TD&gt;&lt;TD&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-22-11 10:00:03&lt;/TD&gt;&lt;TD&gt;2021-22-11 10:00:24&lt;/TD&gt;&lt;TD&gt;21&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-19-11 21:48:50&lt;/TD&gt;&lt;TD&gt;2021-19-11 21:49:05&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-19-11 21:33:05&lt;/TD&gt;&lt;TD&gt;2021-19-11 21:33:18&lt;/TD&gt;&lt;TD&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;2021-19-11 20:57:51&lt;/TD&gt;&lt;TD&gt;2021-19-11 20:58:06&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:22:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584341#M203483</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-09T16:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584342#M203484</link>
      <description>&lt;P&gt;since we have duplication here in bold. that's the problem&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;2021-22-11 14:14:22&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;2021-22-11 14:14:37&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;15&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="464px"&gt;&lt;STRONG&gt;2021-22-11 14:14:22&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="74.8125px"&gt;2022-07-01 13:45:30&lt;/TD&gt;&lt;TD width="166px"&gt;3972668&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 16:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584342#M203484</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-09T16:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584361#M203491</link>
      <description>&lt;P&gt;Yes. I understand that your table has "duplicated" values. But the question is what does it mean in terms of the "underlying reality". Splunk events and things you do with them represent some external world. Manipulating the data is one thing but the other is whether they correspond to anything. You can do anything with the data but will you get meaningful results?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 18:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584361#M203491</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-02-09T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584486#M203536</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;any findings?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:11:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584486#M203536</guid>
      <dc:creator>priya1926</dc:creator>
      <dc:date>2022-02-10T09:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: eliminate duplicate values before TRANSACTION command</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584488#M203538</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241423"&gt;@priya1926&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;there's one thing that I don't understand:&lt;/P&gt;&lt;P&gt;when there's no end, why do you have a date (probably the present day)?&lt;/P&gt;&lt;P&gt;In the search the present day isn't generated in any way!&lt;/P&gt;&lt;P&gt;Please try this and share results:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="winevent" host IN (abc) EventCode=6006 OR EventCode="6005" Type=Information
| eval BootUptime = if(EventCode=6005,strftime(_time, "%Y-%d-%m %H:%M:%S"),"X")
| eval stoptime = if(EventCode=6006,strftime(_time, "%Y-%d-%m %H:%M:%S"),"X")
| transaction host startswith=6006 endswith=6005 maxevents=2 keeporphan=True
| rename duration AS Downtime
| dedup Downtime, BootUptime
| table host stoptime  BootUptime  Downtime _txn_orphan&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 09:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-eliminate-duplicate-rows-before-transaction-command/m-p/584488#M203538</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-02-10T09:23:18Z</dc:date>
    </item>
  </channel>
</rss>

