<?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 How to make this transaction work and find values from one result set that might be related to the other? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-this-transaction-work-and-find-values-from-one/m-p/375928#M110432</link>
    <description>&lt;P&gt;I am trying to correlate two resultsets.&lt;BR /&gt;&lt;BR /&gt;
One is a straight search of apache logs.&lt;BR /&gt;
The other is a table that that took a long time to run (several days)&lt;/P&gt;

&lt;P&gt;I wanted to know if the web logs are likely related the results in the table, which I define by them happening around the same time.  So I tried using the transaction command with a dummy common value&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|searchA | eval dummy="true", from="searchA" 
| append [|loadjob sid=job2 | eval dummy="true", from="searchB"] 
| transaction dummy maxspan=3s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this does create a resultset of transactions, but it ignored the appended loadjob.  I think this was because that job's results were a table, not events.  So I tried turning it into events &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|loadjob sid=job2 
| eval dummy="true", from="searchB" 
| eval _raw=_time." ".col1." ".col2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then used that for the transaction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|searchA | eval dummy="true", from="searchA" 
| append [|loadjob sid=job2 | eval dummy="true", from="searchB" | eval _raw=_time." ".col1." ".col2] 
| transaction dummy maxspan=3s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this creates distinct transactions for each "from" value even though I only defined the transaction field on "dummy".  &lt;/P&gt;

&lt;P&gt;Does anyone have a suggestion on how I can correlate these two result sets on time?&lt;BR /&gt;
My ultimate goal will be to finish the query with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|search from="searchA" from="searchB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I can find values from one result set that might be related to the other&lt;/P&gt;</description>
    <pubDate>Mon, 07 May 2018 16:42:47 GMT</pubDate>
    <dc:creator>MonkeyK</dc:creator>
    <dc:date>2018-05-07T16:42:47Z</dc:date>
    <item>
      <title>How to make this transaction work and find values from one result set that might be related to the other?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-make-this-transaction-work-and-find-values-from-one/m-p/375928#M110432</link>
      <description>&lt;P&gt;I am trying to correlate two resultsets.&lt;BR /&gt;&lt;BR /&gt;
One is a straight search of apache logs.&lt;BR /&gt;
The other is a table that that took a long time to run (several days)&lt;/P&gt;

&lt;P&gt;I wanted to know if the web logs are likely related the results in the table, which I define by them happening around the same time.  So I tried using the transaction command with a dummy common value&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|searchA | eval dummy="true", from="searchA" 
| append [|loadjob sid=job2 | eval dummy="true", from="searchB"] 
| transaction dummy maxspan=3s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And this does create a resultset of transactions, but it ignored the appended loadjob.  I think this was because that job's results were a table, not events.  So I tried turning it into events &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|loadjob sid=job2 
| eval dummy="true", from="searchB" 
| eval _raw=_time." ".col1." ".col2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And then used that for the transaction&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|searchA | eval dummy="true", from="searchA" 
| append [|loadjob sid=job2 | eval dummy="true", from="searchB" | eval _raw=_time." ".col1." ".col2] 
| transaction dummy maxspan=3s
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this creates distinct transactions for each "from" value even though I only defined the transaction field on "dummy".  &lt;/P&gt;

&lt;P&gt;Does anyone have a suggestion on how I can correlate these two result sets on time?&lt;BR /&gt;
My ultimate goal will be to finish the query with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|search from="searchA" from="searchB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So I can find values from one result set that might be related to the other&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 16:42:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-make-this-transaction-work-and-find-values-from-one/m-p/375928#M110432</guid>
      <dc:creator>MonkeyK</dc:creator>
      <dc:date>2018-05-07T16:42:47Z</dc:date>
    </item>
  </channel>
</rss>

