<?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 Append data to a transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Append-data-to-a-transaction/m-p/151406#M42428</link>
    <description>&lt;P&gt;I have a transaction search that works great.  The table that it produces is useful but i want to append/augment it with additional data that I am inserting into Splunk about these "jobId"s via the API.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; jobId=* source="/logs/*" | transaction jobId startswith=QUEUED endswith=COMPLETED | table _time jobId duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can search for the additional data via this search.  Returns information about the jobID such as video_width, video_height, etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="augmentData-VideoId" jobId=3703a4e7cc51ac54 | table video_width video_height
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am having trouble on how to get the additional data into the first search without affecting the transaction duration time since these additional data events are added via a cron job way after that transaction is completed.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 15:20:28 GMT</pubDate>
    <dc:creator>garland_tout</dc:creator>
    <dc:date>2020-09-28T15:20:28Z</dc:date>
    <item>
      <title>Append data to a transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-data-to-a-transaction/m-p/151406#M42428</link>
      <description>&lt;P&gt;I have a transaction search that works great.  The table that it produces is useful but i want to append/augment it with additional data that I am inserting into Splunk about these "jobId"s via the API.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; jobId=* source="/logs/*" | transaction jobId startswith=QUEUED endswith=COMPLETED | table _time jobId duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can search for the additional data via this search.  Returns information about the jobID such as video_width, video_height, etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="augmentData-VideoId" jobId=3703a4e7cc51ac54 | table video_width video_height
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am having trouble on how to get the additional data into the first search without affecting the transaction duration time since these additional data events are added via a cron job way after that transaction is completed.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-data-to-a-transaction/m-p/151406#M42428</guid>
      <dc:creator>garland_tout</dc:creator>
      <dc:date>2020-09-28T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Append data to a transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-data-to-a-transaction/m-p/151407#M42429</link>
      <description>&lt;P&gt;Try following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;jobId=* source="/logs/*" | transaction jobId startswith=QUEUED endswith=COMPLETED | table _time jobId duration | join jobId [search source="augmentData-VideoId" | stats count by jobId, video_width, video_height | field - count]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;jobId=* source="/logs/*" | transaction jobId startswith=QUEUED endswith=COMPLETED | table _time jobId duration | join jobId [search source="augmentData-VideoId" | fields jobId, video_width, video_height | dedup jobId, video_width, video_height]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;final output- _time,jobId,duration,video_width,video_height&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-data-to-a-transaction/m-p/151407#M42429</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T15:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Append data to a transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-data-to-a-transaction/m-p/151408#M42430</link>
      <description>&lt;P&gt;The first one works well.  Did exactly want i wanted.  Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2013 21:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-data-to-a-transaction/m-p/151408#M42430</guid>
      <dc:creator>garland_tout</dc:creator>
      <dc:date>2013-11-21T21:39:15Z</dc:date>
    </item>
  </channel>
</rss>

