<?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: Transaction command not working with  events spanning more than 2 days in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207095#M60362</link>
    <description>&lt;P&gt;Thanks Michael , @MuS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2016 04:00:16 GMT</pubDate>
    <dc:creator>Raghav2384</dc:creator>
    <dc:date>2016-06-13T04:00:16Z</dc:date>
    <item>
      <title>Transaction command not working with  events spanning more than 2 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207090#M60357</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have data coming from database showing the status of Orchestrator  tasks. Every tasks starts with "In Progress" and ends with "Completed". It can be in "Stuck" state for any period of time (more than 4 days in some cases). So a transaction is a task ID starting with "In Progress" and ending with "Completed" while may remain in "Stuck" State for any period of time. &lt;/P&gt;

&lt;P&gt;index="orchestrator_tasks" | transaction ID startswith="In Progress" endswith="Completed" | where Status != "Complete"&lt;/P&gt;

&lt;P&gt;Pretty straight forward and works fine but the problem starts when there are transactions that span over few days. I can see Splunk bundles them in Transactions "In Progress" -&amp;gt; "Stuck" And Then "Stuck" -&amp;gt; "Completed" if startswith and endswith conditions are removed. In presence of these conditions it keeps showing the first part i. e "In Progress" -&amp;gt; "Stuck" therefore showing such tasks as Stuck whereas they've been Completed.&lt;/P&gt;

&lt;P&gt;My thought is that the problem is with maximum time span Splunk looks for completed event.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jun 2016 22:49:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207090#M60357</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2016-06-12T22:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command not working with  events spanning more than 2 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207091#M60358</link>
      <description>&lt;P&gt;maxspan is to -1 unless specified. In your case, i do not think maxspan is the issue&lt;/P&gt;

&lt;P&gt;maxspan&lt;BR /&gt;
Syntax: maxspan=[s | m | h | d]&lt;BR /&gt;
Description: Specifies the maximum length of time in seconds, minutes, hours, or days that the events can span. The events in the transaction must span less than integer specified for maxspan. If the value is negative, maxspan is disabled and there is no limit.&lt;BR /&gt;
Default: -1 (no limit)&lt;/P&gt;

&lt;P&gt;Try adding maxevents=-1 and run the same search and see if it picks the multiple day spanning events. Since you are tracing one transaction spanning over multiple days, i doubt if the event limits is the cause. Is it possible to post a sample event set that's spanned over days?  What if you hard code few IDs in the main search and see if transaction is able to catch it? Hope this leads you the right way.&lt;/P&gt;

&lt;P&gt;Example: index="orchestrator_tasks" ID="abcdef" OR ID="ghijkl" OR ID="mnopqr"|transaction ID startswith="In Progress" endswith="Completed" maxevents=-1|where Status != "Complete"&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 03:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207091#M60358</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-06-13T03:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command not working with  events spanning more than 2 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207092#M60359</link>
      <description>&lt;P&gt;Cool. I already resolved it with maxevents=-1 and was about to update my question but your reply came through. Anyway, its correct answer!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 03:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207092#M60359</guid>
      <dc:creator>nabeel652</dc:creator>
      <dc:date>2016-06-13T03:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command not working with  events spanning more than 2 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207093#M60360</link>
      <description>&lt;P&gt;Excellent...glad it worked out...please accept this as answer so that it could help folks catch it easily &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Raghav&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 03:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207093#M60360</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-06-13T03:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command not working with  events spanning more than 2 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207094#M60361</link>
      <description>&lt;P&gt;@Raghav2384, please post it as answer so it can be accepted &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; I converted your comment now.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 03:57:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207094#M60361</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-06-13T03:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command not working with  events spanning more than 2 days</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207095#M60362</link>
      <description>&lt;P&gt;Thanks Michael , @MuS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 04:00:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-not-working-with-events-spanning-more-than-2/m-p/207095#M60362</guid>
      <dc:creator>Raghav2384</dc:creator>
      <dc:date>2016-06-13T04:00:16Z</dc:date>
    </item>
  </channel>
</rss>

