<?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: How to join multiple log streams together in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32879#M6919</link>
    <description>&lt;P&gt;when i do&lt;BR /&gt;
search sessionid=aaa   i get 30 events, when i do&lt;BR /&gt;
search sessionid=bbb  i get 20 events, when i do&lt;BR /&gt;
search sessionid=ccc   i get 10 events.  all good so far. &lt;/P&gt;

&lt;P&gt;when i do the above i get 1 event when i am expecting 60 events.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2011 23:43:59 GMT</pubDate>
    <dc:creator>robgreen</dc:creator>
    <dc:date>2011-12-11T23:43:59Z</dc:date>
    <item>
      <title>How to join multiple log streams together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32877#M6917</link>
      <description>&lt;P&gt;We have our logs always generate a sessionid but each host has a separate sessionid with a link to the original as parentsessionid.  I am trying to get a splunk query for when a session id is entered it will return back all the logs for all the hosts following the child parent relationship.&lt;/P&gt;

&lt;P&gt;something like this&lt;/P&gt;

&lt;P&gt;hostA: sessionid=aaa parentsessionid=null name=value name2=value2&lt;BR /&gt;
hostB: sessionid=bbb parentsessionid=aaa name=valuexx name2=value2&lt;BR /&gt;
hostC: sessionid=ccc parentsessionid=bbb name=valueyy name3=value3&lt;/P&gt;

&lt;P&gt;if someone enters aaa i would like all three sessions to be returned in the query in order (as the session is running on all 3 at roughly the same time and in general one event on one host causes another event on a different host)&lt;/P&gt;

&lt;P&gt;rob&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2011 23:27:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32877#M6917</guid>
      <dc:creator>robgreen</dc:creator>
      <dc:date>2011-12-11T23:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple log streams together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32878#M6918</link>
      <description>&lt;P&gt;Transaction command may be help for your case. This command can group events into transactions. Please try following command and confirm if this work or not.&lt;/P&gt;

&lt;P&gt;sourcetype=&lt;YOUR sourcetype=""&gt; | transaction sessionid parentsessionid maxspan=1m&lt;/YOUR&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2011 23:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32878#M6918</guid>
      <dc:creator>Takajian</dc:creator>
      <dc:date>2011-12-11T23:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple log streams together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32879#M6919</link>
      <description>&lt;P&gt;when i do&lt;BR /&gt;
search sessionid=aaa   i get 30 events, when i do&lt;BR /&gt;
search sessionid=bbb  i get 20 events, when i do&lt;BR /&gt;
search sessionid=ccc   i get 10 events.  all good so far. &lt;/P&gt;

&lt;P&gt;when i do the above i get 1 event when i am expecting 60 events.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2011 23:43:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32879#M6919</guid>
      <dc:creator>robgreen</dc:creator>
      <dc:date>2011-12-11T23:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple log streams together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32880#M6920</link>
      <description>&lt;P&gt;If you expect 60 events in your case, transaction command will not help although I thought it may help. Transaction command group events into transaction. What do you mean "how to join multiple log streams together"? I thought you want to group multiple events into a transaction.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2011 23:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32880#M6920</guid>
      <dc:creator>Takajian</dc:creator>
      <dc:date>2011-12-11T23:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple log streams together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32881#M6921</link>
      <description>&lt;P&gt;even though the user only specified to search for "aaa" i want to include all events that are descended from it.  ie ccc has no reference to aaa directly but bbb references both aaa and ccc.  i am fine if it can only be its direct ancestor.. originally i thought i could do something like&lt;BR /&gt;
search sessionid=aaa | join sessionid [search parentsessionid=&lt;SESSIONID&gt;]&lt;BR /&gt;
but i dont see a way to reference a field from a previous search in the pipeline..&lt;/SESSIONID&gt;&lt;/P&gt;

&lt;P&gt;rob&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2011 00:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32881#M6921</guid>
      <dc:creator>robgreen</dc:creator>
      <dc:date>2011-12-12T00:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to join multiple log streams together</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32882#M6922</link>
      <description>&lt;P&gt;Following command will work? I still think transaction command will help.&lt;/P&gt;

&lt;P&gt;sourcetype=&lt;YOUR sourcetype=""&gt; | transaction sessionid parentsessionid maxspan=1m startswith=hostA endswith=hostC&lt;/YOUR&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2011 00:09:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-join-multiple-log-streams-together/m-p/32882#M6922</guid>
      <dc:creator>Takajian</dc:creator>
      <dc:date>2011-12-12T00:09:52Z</dc:date>
    </item>
  </channel>
</rss>

