<?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 Transaction command not working in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Transaction-command-not-working/m-p/508279#M2524</link>
    <description>&lt;P&gt;Hi, I am trying to use transaction command where I need to get the data from 2 specific events with different sourcetypes. These 2 events are&amp;nbsp;&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;2020-07-09 12:50:09,918 id="id:1234" event=test_attempt app= connid=myapp status=inprogress responsetime=7 inmessagetype="Request"

2020-07-09 12:50:09,105 id:1234 INFO  [org.test.validator.MediaValidator] in MediaValidator VERIFIED user=test@gmail.com found and match&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 1st event could occur multiple times in the same transaction and that's why sometimes my transaction command is just grouping those 2 events and that's it.&lt;BR /&gt;The common attribute in both of these events are id on which I am using transaction like below but it doesn't seem to be working.&lt;/P&gt;&lt;P&gt;Sometimes I am only getting single event and sometimes the 1st event is grouped together&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone advice what could be done here to achieve this task. I can't use join because of the subsearch limitation and I have to use the transaction.&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=myindex (sourcetype="server_log" "[org.test.validator.MediaValidator] in MediaValidator) OR (source="/app/log/splunk-audit.log" event=test_attempt inmessagetype="Request" sourcetype=audit_log)
| rex field=_raw "id\=\"id\:(?&amp;lt;id&amp;gt;[^\"]+)"
| rex field=_raw "id\:(?&amp;lt;id&amp;gt;[^\s]+)"
| transaction id keepevicted=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 12:09:28 GMT</pubDate>
    <dc:creator>shashank_24</dc:creator>
    <dc:date>2020-07-09T12:09:28Z</dc:date>
    <item>
      <title>Transaction command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Transaction-command-not-working/m-p/508279#M2524</link>
      <description>&lt;P&gt;Hi, I am trying to use transaction command where I need to get the data from 2 specific events with different sourcetypes. These 2 events are&amp;nbsp;&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;2020-07-09 12:50:09,918 id="id:1234" event=test_attempt app= connid=myapp status=inprogress responsetime=7 inmessagetype="Request"

2020-07-09 12:50:09,105 id:1234 INFO  [org.test.validator.MediaValidator] in MediaValidator VERIFIED user=test@gmail.com found and match&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 1st event could occur multiple times in the same transaction and that's why sometimes my transaction command is just grouping those 2 events and that's it.&lt;BR /&gt;The common attribute in both of these events are id on which I am using transaction like below but it doesn't seem to be working.&lt;/P&gt;&lt;P&gt;Sometimes I am only getting single event and sometimes the 1st event is grouped together&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone advice what could be done here to achieve this task. I can't use join because of the subsearch limitation and I have to use the transaction.&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=myindex (sourcetype="server_log" "[org.test.validator.MediaValidator] in MediaValidator) OR (source="/app/log/splunk-audit.log" event=test_attempt inmessagetype="Request" sourcetype=audit_log)
| rex field=_raw "id\=\"id\:(?&amp;lt;id&amp;gt;[^\"]+)"
| rex field=_raw "id\:(?&amp;lt;id&amp;gt;[^\s]+)"
| transaction id keepevicted=true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 12:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Transaction-command-not-working/m-p/508279#M2524</guid>
      <dc:creator>shashank_24</dc:creator>
      <dc:date>2020-07-09T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Transaction-command-not-working/m-p/508288#M2525</link>
      <description>&lt;P&gt;Instead of &lt;FONT face="courier new,courier"&gt;transaction&lt;/FONT&gt;, try &lt;FONT face="courier new,courier"&gt;stats&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(*) as * by id&lt;/LI-CODE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 12:30:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Transaction-command-not-working/m-p/508288#M2525</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-07-09T12:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command not working</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Transaction-command-not-working/m-p/509014#M2607</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;Thanks for the response. I knew this solution with stats but I was trying to understand why transaction is not working. Anyways I was able to achieve with stats so i will accept the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 08:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Transaction-command-not-working/m-p/509014#M2607</guid>
      <dc:creator>shashank_24</dc:creator>
      <dc:date>2020-07-14T08:58:30Z</dc:date>
    </item>
  </channel>
</rss>

