<?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: append and transaction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60311#M14863</link>
    <description>&lt;P&gt;Hi Jeff. Did you get the answer for your question? I am having the same problem with append + transaction&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2015 13:52:53 GMT</pubDate>
    <dc:creator>cscaldeira</dc:creator>
    <dc:date>2015-04-15T13:52:53Z</dc:date>
    <item>
      <title>append and transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60310#M14862</link>
      <description>&lt;P&gt;I have a pretty complex search where I'm trying to get the DHCP and ACS authentication logs correlated by MAC address for all workstations where a particular user logged into the wireless network.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=main (host=dhcpserver) 
| extract mac
| search
  [ search host=csacs* index=main CSCOacs_Passed_Authentications
    [ search host=csacs* index=main CSCOacs_Passed_Authentications user=*username* 
      | fields trans_id ] 
    | transaction maxpause=5s trans_id 
    | lookup normalizemac input AS Calling_Station_ID OUTPUTNEW mac 
    | dedup mac 
    | fields mac ] 
| rex field=_raw "DHCPACK on (?&amp;lt;ip_assigned&amp;gt;[0-9\.]+) to [^\(]+\((?&amp;lt;hostname&amp;gt;[^\)]+)\)"
| fields _time host hostname ip_assigned mac
| append
  [ search host=csacs* index=main CSCOacs_Passed_Authentications
    [ search host=csacs* index=main CSCOacs_Passed_Authentications user=*username* 
      | fields trans_id ] 
    | transaction maxpause=5s trans_id 
    | lookup normalizemac input AS Calling_Station_ID OUTPUTNEW mac 
    | dedup mac 
    | fields _time host mac user ]
| transaction maxspan=20s mac
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Everything is working okay except for the final transaction to join the transaction between the two systems. I verified the relevant events have the same MAC address and format (lowercase aa:aa:aa:aa:aa:aa) and are well within the maxspan time. Does transaction not work across appended searches?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Dec 2012 21:04:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60310#M14862</guid>
      <dc:creator>jeff</dc:creator>
      <dc:date>2012-12-11T21:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: append and transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60311#M14863</link>
      <description>&lt;P&gt;Hi Jeff. Did you get the answer for your question? I am having the same problem with append + transaction&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 13:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60311#M14863</guid>
      <dc:creator>cscaldeira</dc:creator>
      <dc:date>2015-04-15T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: append and transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60312#M14864</link>
      <description>&lt;P&gt;I think this search can be simplified:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=main (host=dhcpserver) 
 | extract mac
 | search
   [ search host=csacs* index=main CSCOacs_Passed_Authentications user=*username* trans_id=*  
     | dedup input
     | lookup normalizemac input AS Calling_Station_ID OUTPUTNEW mac 
     | dedup mac 
     | fields mac ] 
 | rex field=_raw "DHCPACK on (?&amp;lt;ip_assigned&amp;gt;[0-9\.]+) to [^\(]+\((?&amp;lt;hostname&amp;gt;[^\)]+)\)"
 | fields _time host hostname ip_assigned mac
 | append
   [ search host=csacs* index=main CSCOacs_Passed_Authentications user=*username* trans_id=*
     | transaction maxpause=5s trans_id 
     | lookup normalizemac input AS Calling_Station_ID OUTPUTNEW mac 
     | dedup mac 
     | fields _time host mac user ]
 | transaction maxspan=20s mac
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I think this is the answer to your question: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchReference/Transaction"&gt;transaction&lt;/A&gt;  &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;"Given events as input, this command finds transactions based on events"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;You are not passing events to the final transaction command: you are passing summarized search results.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 14:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60312#M14864</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-04-15T14:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: append and transaction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60313#M14865</link>
      <description>&lt;P&gt;Is there really a difference between summarized search results and events? My impression is that append takes a result and just adds more events to it.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 12:53:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/append-and-transaction/m-p/60313#M14865</guid>
      <dc:creator>simonzfor</dc:creator>
      <dc:date>2019-10-25T12:53:36Z</dc:date>
    </item>
  </channel>
</rss>

