<?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 edit my search to use transaction command to exclude values? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349793#M103540</link>
    <description>&lt;P&gt;Hello, I run this:&lt;/P&gt;

&lt;P&gt;index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")&lt;BR /&gt;
 NOT [search  index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")&lt;BR /&gt;
 | transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP") | where eventcount = 2 | return 1000 $SESSIONID]&lt;/P&gt;

&lt;P&gt;Returns 8,240 events. Some values of second search (which must be excluded) are not excluded.&lt;BR /&gt;
Please have other suggestions?&lt;BR /&gt;
Thank you all.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:50:32 GMT</pubDate>
    <dc:creator>ggiovan</dc:creator>
    <dc:date>2020-09-29T13:50:32Z</dc:date>
    <item>
      <title>How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349785#M103532</link>
      <description>&lt;P&gt;Hi, I have the following search that returns 10,552 events over a given period of time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then I have second search using the "transaction" command that returns 664 events, in each of which there are two related events I want to exclude from the first search through SESSIONID:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03") 
| transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP")
| where eventcount = 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can you help me to find a solution for this problem with only one search to return 9224 ( =10,552 - (664*2) ) events?&lt;BR /&gt;
 I have already used "search NOT [transaction ..]", "keepevicted = true" with "evicted = 1", append [ search..| transaction SESSIONID]...but don't work&lt;BR /&gt;
I can not use a "inputlookup"&lt;BR /&gt;
Thanks so much&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 15:38:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349785#M103532</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-04-25T15:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349786#M103533</link>
      <description>&lt;P&gt;try this&lt;/P&gt;

&lt;P&gt;index=1st  NOT [search index=2nd |return 15000 $sessionID]&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 16:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349786#M103533</guid>
      <dc:creator>SplunkersRock</dc:creator>
      <dc:date>2017-04-25T16:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349787#M103534</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03") NOT [search  index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03") 
 | transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP")
 | where eventcount = 2 | table SESSIONID] 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03") 
 | transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP") keeporphan=t 
 | where eventcount=1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Apr 2017 16:08:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349787#M103534</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-25T16:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349788#M103535</link>
      <description>&lt;P&gt;index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03") NOT [search  index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03") &lt;BR /&gt;
 | transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP")&lt;BR /&gt;
  | where eventcount = 2 | return 1000 $SESSIONID] &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:49:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349788#M103535</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2020-09-29T13:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349789#M103536</link>
      <description>&lt;P&gt;Hello, I run this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")
NOT [search  index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")
| transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP") | where eventcount = 2 | return 1000 $SESSIONID]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns 8,240 events. Some values of second search (which must be excluded) are not excluded.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349789#M103536</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-04-26T09:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349790#M103537</link>
      <description>&lt;P&gt;Hello, I run this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")
NOT [search  index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")
| transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP") | where eventcount = 2 | table SESSIONID]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns 8,242 events. Some values of second search (which must be excluded) are not excluded.&lt;BR /&gt;
The second suggestion return 0 events.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349790#M103537</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-04-26T09:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349791#M103538</link>
      <description>&lt;P&gt;Thank you all.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349791#M103538</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-04-26T09:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349792#M103539</link>
      <description>&lt;P&gt;Have you other suggestions? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349792#M103539</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-04-26T09:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349793#M103540</link>
      <description>&lt;P&gt;Hello, I run this:&lt;/P&gt;

&lt;P&gt;index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")&lt;BR /&gt;
 NOT [search  index=oracle (INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")&lt;BR /&gt;
 | transaction SESSIONID maxspan=2m startswith=(ACT_NAME="LOGON") endswith=(ACT_NAME="LOGOFF BY CLEANUP") | where eventcount = 2 | return 1000 $SESSIONID]&lt;/P&gt;

&lt;P&gt;Returns 8,240 events. Some values of second search (which must be excluded) are not excluded.&lt;BR /&gt;
Please have other suggestions?&lt;BR /&gt;
Thank you all.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:50:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349793#M103540</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2020-09-29T13:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349794#M103541</link>
      <description>&lt;P&gt;Have you other suggestions? Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 09:44:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349794#M103541</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-04-26T09:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349795#M103542</link>
      <description>&lt;P&gt;Hi, I have run the second suggestion with a change, now it's almost ok!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=oracle
(INSTANCE_NAME="01" OR INSTANCE_NAME="02" OR INSTANCE_NAME="03")
| transaction SESSIONID maxspan=2m startswith=ACT_NAME="LOGON")  endswith=ACT_NAME="LOGOFF BY CLEANUP" keeporphans=t
| where _txn_orphan=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But now I can not use the "eventcount = 2" when I use the "keeporphans = t", the value "eventcount" is lost. Can you help me?&lt;BR /&gt;
Thank you very much&lt;/P&gt;</description>
      <pubDate>Fri, 28 Apr 2017 11:56:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349795#M103542</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-04-28T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349796#M103543</link>
      <description>&lt;P&gt;The "eventcount is lost" means that if I write "...| where _txn_orphan=1 AND eventcount=2" it doesn't work, return 0 events. If I show the eventcount with "...| table eventcount "  with "keeporphans=t" the output is null in every record. &lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:52:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349796#M103543</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2020-09-29T13:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349797#M103544</link>
      <description>&lt;P&gt;When the _txn_orphan is 1, means the transaction is not complete and you'll not get eventcount=2. Any specific reason you want to include that?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349797#M103544</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to use transaction command to exclude values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349798#M103545</link>
      <description>&lt;P&gt;Hi, I need to exclude all the events that start with "LOGON" and end with "LOGOFF BY CLEANUP" and that they are exactly 2 in 2 minutes.&lt;BR /&gt;
That's why I need "eventcount = 2".&lt;BR /&gt;
Thank you very much&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 14:57:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-use-transaction-command-to-exclude/m-p/349798#M103545</guid>
      <dc:creator>ggiovan</dc:creator>
      <dc:date>2017-05-03T14:57:20Z</dc:date>
    </item>
  </channel>
</rss>

