<?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 startswith 1, endswith multiple in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182687#M186919</link>
    <description>&lt;P&gt;Hi all, simple question I hope.&lt;BR /&gt;
I have a system that has one starting event with multiple outputs and I want to find out how long it takes for the system to produce each output.  When I use a transaction, it only seems to give me the combination of the input and just &lt;STRONG&gt;one&lt;/STRONG&gt; of the outputs, where I actually need all of the outputs.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;transaction  activity_id startswith=input_event_name, endswith=output_event_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas how I can include all the the outputs?  Or is there a much better way to do this?&lt;/P&gt;

&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Thu, 29 May 2014 17:00:13 GMT</pubDate>
    <dc:creator>leea11</dc:creator>
    <dc:date>2014-05-29T17:00:13Z</dc:date>
    <item>
      <title>transaction startswith 1, endswith multiple</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182687#M186919</link>
      <description>&lt;P&gt;Hi all, simple question I hope.&lt;BR /&gt;
I have a system that has one starting event with multiple outputs and I want to find out how long it takes for the system to produce each output.  When I use a transaction, it only seems to give me the combination of the input and just &lt;STRONG&gt;one&lt;/STRONG&gt; of the outputs, where I actually need all of the outputs.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;transaction  activity_id startswith=input_event_name, endswith=output_event_name
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas how I can include all the the outputs?  Or is there a much better way to do this?&lt;/P&gt;

&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 17:00:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182687#M186919</guid>
      <dc:creator>leea11</dc:creator>
      <dc:date>2014-05-29T17:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: transaction startswith 1, endswith multiple</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182688#M186920</link>
      <description>&lt;P&gt;I don't know how to handle that situation in a transaction, but perhaps this will help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;input_event_name | join activity_id max=0 overwrite=false [ search output_event_name ] | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 May 2014 17:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182688#M186920</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-05-29T17:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: transaction startswith 1, endswith multiple</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182689#M186921</link>
      <description>&lt;P&gt;Can you provide some sample logs?&lt;/P&gt;</description>
      <pubDate>Thu, 29 May 2014 19:29:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182689#M186921</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-29T19:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: transaction startswith 1, endswith multiple</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182690#M186922</link>
      <description>&lt;P&gt;How about using &lt;STRONG&gt;stats&lt;/STRONG&gt; instead of &lt;STRONG&gt;transaction&lt;/STRONG&gt;?  Perhaps something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... your search ... 
| eval StartTime=if(searchmatch("input_event_name"),_time,null()) 
| eval EndTime=if(searchmatch("output_event_name"),_time,null()) 
| stats values(StartTime) as StartTime values(EndTime) as EndTime by activity_id
| mvexpand EndTime
| eval TransactionTime=EndTime - StartTime 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you the activity_id, start time, end time, and duration for every instance of output_event_name.  If you need to see other information, just modify the &lt;STRONG&gt;stats&lt;/STRONG&gt; statement to include it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182690#M186922</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2020-09-28T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: transaction startswith 1, endswith multiple</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182691#M186923</link>
      <description>&lt;P&gt;A thousand thank yous wpreston, that worked a treat!&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 09:16:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182691#M186923</guid>
      <dc:creator>leea11</dc:creator>
      <dc:date>2014-05-30T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: transaction startswith 1, endswith multiple</title>
      <link>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182692#M186924</link>
      <description>&lt;P&gt;You're very welcome, happy to help!&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 12:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/transaction-startswith-1-endswith-multiple/m-p/182692#M186924</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2014-05-30T12:59:00Z</dc:date>
    </item>
  </channel>
</rss>

