<?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 and Filldown from different hosts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513968#M144253</link>
    <description>&lt;P&gt;I have the following query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="main" 
| rex field=_raw "node '(?&amp;lt;Falling_Node&amp;gt;[^']*)"  
| eval Rising_Node=case(&amp;lt;.....&amp;gt;)
| sort +_time
| filldown Rising_Node Falling_Node
| where (host==Rising_Node OR host==Falling_Node)
| sort -_time
| transaction startswith="&amp;lt;start event&amp;gt;" endswith="&amp;lt;end event&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I look at all events and then use rex and eval to evaluate the necessary rising and falling nodes of each transaction. Then I sort +_time so that I can filldown those fields to all the events, then use | where to filter out any events that aren't coming from either the rising or falling nodes, and then finally sort-_time so that I can form the transaction.&lt;/P&gt;&lt;P&gt;This works perfectly for all transactions where the start and end events are coming from hosts that are the Rising_Node or the Falling_Node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, some of my events that I want to turn into transactions aren't like this. They have the same necessary start and end events, but those start and end events&amp;nbsp;&lt;STRONG&gt;are NOT on the Rising_Node or the Falling_Node.&amp;nbsp;&lt;/STRONG&gt;Therefore, my query does not work because it the " | where (host==Rising_Node OR host==Falling_Node)" always filters out those start and end events so the transaction cannot occur.&lt;/P&gt;&lt;P&gt;Does anyone have a workaround for these peculiar events where the start and end events are not on the rising or falling nodes?&lt;/P&gt;&lt;P&gt;Here is what the scambled data looks like for some of the transactions that have start events that are not on the rising or falling nodes:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020/08/11 11:40:18.473, NOT_RISING/FALLING_NODE , Requested Falling node 'Falling_Node' by user '....'" (Start Event)
2020/08/11 11:40:44.512, Falling_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:45.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:49.512, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:49.889, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:50.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:51.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:55.889, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:59.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:59.889, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:41:13.915, NOT_RISING/FALLING_NODE, Completed Transaction (End Event)&lt;/LI-CODE&gt;&lt;P&gt;This is a sample of events in which my query doesn't work correctly because the Start and End Events are NOT the Rising or Falling Node. However, I want to filter out all the NOT_RISING/FALLING_NODE events within the transaction.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 20:11:39 GMT</pubDate>
    <dc:creator>tbrown</dc:creator>
    <dc:date>2020-08-13T20:11:39Z</dc:date>
    <item>
      <title>Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513968#M144253</link>
      <description>&lt;P&gt;I have the following query&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="main" 
| rex field=_raw "node '(?&amp;lt;Falling_Node&amp;gt;[^']*)"  
| eval Rising_Node=case(&amp;lt;.....&amp;gt;)
| sort +_time
| filldown Rising_Node Falling_Node
| where (host==Rising_Node OR host==Falling_Node)
| sort -_time
| transaction startswith="&amp;lt;start event&amp;gt;" endswith="&amp;lt;end event&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where I look at all events and then use rex and eval to evaluate the necessary rising and falling nodes of each transaction. Then I sort +_time so that I can filldown those fields to all the events, then use | where to filter out any events that aren't coming from either the rising or falling nodes, and then finally sort-_time so that I can form the transaction.&lt;/P&gt;&lt;P&gt;This works perfectly for all transactions where the start and end events are coming from hosts that are the Rising_Node or the Falling_Node.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, some of my events that I want to turn into transactions aren't like this. They have the same necessary start and end events, but those start and end events&amp;nbsp;&lt;STRONG&gt;are NOT on the Rising_Node or the Falling_Node.&amp;nbsp;&lt;/STRONG&gt;Therefore, my query does not work because it the " | where (host==Rising_Node OR host==Falling_Node)" always filters out those start and end events so the transaction cannot occur.&lt;/P&gt;&lt;P&gt;Does anyone have a workaround for these peculiar events where the start and end events are not on the rising or falling nodes?&lt;/P&gt;&lt;P&gt;Here is what the scambled data looks like for some of the transactions that have start events that are not on the rising or falling nodes:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020/08/11 11:40:18.473, NOT_RISING/FALLING_NODE , Requested Falling node 'Falling_Node' by user '....'" (Start Event)
2020/08/11 11:40:44.512, Falling_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:45.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:49.512, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:49.889, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:50.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:51.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:55.889, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:59.512, Rising_Node, , &amp;lt;....information....&amp;gt;
2020/08/11 11:40:59.889, NOT_RISING/FALLING_NODE, , &amp;lt;....information....&amp;gt;
2020/08/11 11:41:13.915, NOT_RISING/FALLING_NODE, Completed Transaction (End Event)&lt;/LI-CODE&gt;&lt;P&gt;This is a sample of events in which my query doesn't work correctly because the Start and End Events are NOT the Rising or Falling Node. However, I want to filter out all the NOT_RISING/FALLING_NODE events within the transaction.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:11:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513968#M144253</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-08-13T20:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513975#M144257</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;can you share scrambled data so the community could help you?&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 19:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513975#M144257</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-13T19:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513977#M144258</link>
      <description>&lt;P&gt;I've edited my original post to include a sample of events.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513977#M144258</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-08-13T20:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513979#M144259</link>
      <description>&lt;P&gt;If I understood you want also 1st and last line of your example to be in transaction with all those lines from Rising or Falling nodes?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513979#M144259</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-13T20:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513980#M144260</link>
      <description>&lt;P&gt;Yes, I need those events in the transaction as they are the constant start and end events I base the transaction on. The issue is that they aren't always necessarily coming from the Rising Or Falling Node hosts.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513980#M144260</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-08-13T20:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513985#M144262</link>
      <description>&lt;P&gt;How about this:&lt;/P&gt;&lt;P&gt;Before filtering events out add new columns which is populated with some know values if event is from Falling, Rising nodes or it contains those start/end transaction info? After that you actually can avoid the use of transaction command as you can replace it with stats .... by &amp;lt;your additional column&amp;gt;.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513985#M144262</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-13T20:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513987#M144264</link>
      <description>&lt;P&gt;Do you have an example of how I could do it? I'm having a little trouble trying to actually get this to work in the query.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 20:53:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513987#M144264</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-08-13T20:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513993#M144267</link>
      <description>&lt;P&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="java"&gt;...
| rex +"(?&amp;lt;trc_end&amp;gt;Completed Transaction)"
| eval belongs_to_trc = if( host==Falling_Node) OR host==Rising_Node OR isnotnull(Falling_Node) OR isnotnull(trc_end), 1, 0)
...
| where belongs_to_trc == 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;r. Ismo&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 21:38:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/513993#M144267</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-13T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514189#M144318</link>
      <description>&lt;P&gt;Just wondering, how would that filter out any events after the End Event? Because I still have events coming in after the end event that are from the rising and falling nodes, but I don't want to include those because they come after the end event.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 19:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514189#M144318</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-08-14T19:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514203#M144320</link>
      <description>&lt;P&gt;Transaction is the only (easy and reasonable) way to achieve this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 21:18:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514203#M144320</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-14T21:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514204#M144321</link>
      <description>&lt;P&gt;So is there no solution? Using transaction would bring me back to the original problem I posted.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 21:25:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514204#M144321</guid>
      <dc:creator>tbrown</dc:creator>
      <dc:date>2020-08-14T21:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction and Filldown from different hosts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514209#M144322</link>
      <description>&lt;P&gt;I think that it now doable as you could use earlier added field belongs to transactions as unique field and then start and end as earlier? If I have understood right this should work.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 22:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-and-Filldown-from-different-hosts/m-p/514209#M144322</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-08-14T22:03:21Z</dc:date>
    </item>
  </channel>
</rss>

