<?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: Joining two queries not giving the desired result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649530#M224577</link>
    <description>&lt;P&gt;The below query also works but its grouping the email,transactionid,logintime filed together in ascending order w.r.t the session ID causing mismatch between&amp;nbsp;email,transactionid,logintime.&lt;BR /&gt;&lt;BR /&gt;index = test "testrequest"&lt;BR /&gt;| rex "(?:.+email\=)(?&amp;lt;Email&amp;gt;[a-zA-Z0-9_\-\@\.]+)"&lt;BR /&gt;| rex "(?:.+trasactionId\=)(?&amp;lt;TransactionID&amp;gt;[a-zA-Z0-9-]+)"&lt;BR /&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LoginTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;BR /&gt;| rex "(?:.+Status\=)(?&amp;lt;Status&amp;gt;\w+)"&lt;BR /&gt;| rex "(?:.+TimeTaken\=)(?&amp;lt;TimeTaken1&amp;gt;\d+)"&lt;BR /&gt;| rex "(?:.+\+\+)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;BR /&gt;| table Email,TransactionID,LoginTime,Status,TimeTaken,SessionID&lt;BR /&gt;| append&lt;BR /&gt;[search index = test&amp;nbsp; "testresponse"&lt;BR /&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LogoutTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;BR /&gt;| rex "(?:.+SessionId\=)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;BR /&gt;| table SessionID,LogoutTime]&lt;BR /&gt;| stats values(*) as * by SessionID&lt;BR /&gt;| table Email,TransactionID,LoginTime,TimeTaken,SessionID,LogoutTime,Status&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 16:39:53 GMT</pubDate>
    <dc:creator>Deprasad</dc:creator>
    <dc:date>2023-07-06T16:39:53Z</dc:date>
    <item>
      <title>Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649458#M224554</link>
      <description>&lt;P&gt;I have 2 queries and joining it with "Join" using the common field "SessionID".&lt;BR /&gt;&lt;BR /&gt;With&amp;nbsp; the below query I'm just getting the results if there are results from both the search. If there is no result for either the parent search or the sub search the result is not getting printed.&lt;/P&gt;&lt;P&gt;For example if there is no LogoutTime available from the sub search, the results of parent search is not getting printed and. Is there any way to achieve the desired result.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;index = test "testrequest" &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+email\=)(?&amp;lt;Email&amp;gt;[a-zA-Z0-9_\-\@\.]+)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+trasactionId\=)(?&amp;lt;TransactionID&amp;gt;[a-zA-Z0-9-]+)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LoginTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+Status\=)(?&amp;lt;Status&amp;gt;\w+)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+TimeTaken\=)(?&amp;lt;TimeTaken&amp;gt;\d+)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+\+\+)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| table Email,TransactionID,LoginTime,Status,TimeTaken,SessionID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| &lt;STRONG&gt;join SessionID &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;[search index = test "testrespone"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LogoutTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| rex "(?:.+SessionId\=)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| table SessionID,LogoutTime]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;| table Email,TransactionID,LoginTime,Status,TimeTaken,SessionID,LogoutTime&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:09:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649458#M224554</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2023-07-06T11:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649459#M224555</link>
      <description>&lt;P&gt;Rather than using join (which is usually best avoided), try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = test "testrequest" OR "testrespone"
| rex "(?:.+email\=)(?&amp;lt;Email&amp;gt;[a-zA-Z0-9_\-\@\.]+)"
| rex "(?:.+trasactionId\=)(?&amp;lt;TransactionID&amp;gt;[a-zA-Z0-9-]+)"
| rex "(?:.+TransactionTime\=)(?&amp;lt;TransactionTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"
| rex "(?:.+Status\=)(?&amp;lt;Status&amp;gt;\w+)"
| rex "(?:.+TimeTaken\=)(?&amp;lt;TimeTaken&amp;gt;\d+)"
| rex "(?:.+\+\+)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"
| eval LoginTime=if(searchmatch("testrequest"),TransactionTime,null())
| eval LogoutTime=if(searchmatch("testresponse"),TransactionTime,null())
| stats values(Email) as Email values(TransactionID) as TransactionID values(LoginTime) as LoginTime values(Status) as Status values(TimeTaken) as TimeTaken values(LogoutTime) as LogoutTime by SessionID&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:21:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649459#M224555</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-06T11:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649471#M224560</link>
      <description>&lt;P&gt;I'm still not getting the LogoutTime.&amp;nbsp;&lt;BR /&gt;Also please note that the field from first query such as Email, TransactionID, LoginTime will have multiple values. PFA.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:03:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649471#M224560</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2023-07-06T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649477#M224561</link>
      <description>&lt;P&gt;Is multiple values (for the same session id) what you were expecting?&lt;/P&gt;&lt;P&gt;Do you want multiple events for the same session id?&lt;/P&gt;&lt;P&gt;Perhaps if you could share some of your events (anonymised of course) to give a clearer picture of what you are dealing with?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:07:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649477#M224561</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-06T13:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649478#M224562</link>
      <description>&lt;P&gt;Would "joining" by transaction id be a better way of correlating the events?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:08:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649478#M224562</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-06T13:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649487#M224564</link>
      <description>&lt;P&gt;The transaction ID is different for both the events, only common filed is "SessionID". there are few other fields which are common in name but has different values.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The logic is, Single SessionID will have 'n' no of Email,TransactionID,LoginTime but only have one LogoutTime in a different event.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 13:29:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649487#M224564</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2023-07-06T13:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649513#M224574</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = test "testrequest" OR "testrespone"
| rex "(?:.+email\=)(?&amp;lt;Email&amp;gt;[a-zA-Z0-9_\-\@\.]+)"
| rex "(?:.+trasactionId\=)(?&amp;lt;TransactionID&amp;gt;[a-zA-Z0-9-]+)"
| rex "(?:.+TransactionTime\=)(?&amp;lt;TransactionTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"
| rex "(?:.+Status\=)(?&amp;lt;Status&amp;gt;\w+)"
| rex "(?:.+TimeTaken\=)(?&amp;lt;TimeTaken&amp;gt;\d+)"
| rex "(?:.+\+\+)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"
| eval LoginTime=if(searchmatch("testrequest"),TransactionTime,null())
| eval LogoutTime=if(searchmatch("testresponse"),TransactionTime,null())
| eventstats values(LogoutTime) as LogoutTime by SessionID
| table Email,TransactionID,LoginTime,Status,TimeTaken,SessionID,LogoutTime&lt;/LI-CODE&gt;&lt;P&gt;If this is still not working, it would imply that the extract of the transaction time is not working for the testresponse events or that the searchmatch for testresponse is not finding the right events. Either way, in order to be more help, please can you share some anonymised sample events (both testrequest and testresponse) so we can see what might be the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 15:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649513#M224574</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-06T15:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649528#M224576</link>
      <description>&lt;P&gt;The Query works but some formatting is needed.&amp;nbsp;&lt;BR /&gt;For the test request I've multiple rows(Ex: multiple loginTime) and Test response will be only one(Ex: single logoutTime).&lt;BR /&gt;&lt;BR /&gt;So the output is coming like first few rows for request and the followed by response as last row.&lt;/P&gt;&lt;P&gt;I need the output like something similar below:&lt;BR /&gt;&lt;BR /&gt;Email | transactionID | logintime | status&amp;nbsp; | timetaken | sessionID | LogoutTime&amp;nbsp;&lt;BR /&gt;&amp;nbsp;xxx&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xxxxxxxxxxx&amp;nbsp; &lt;SPAN class=""&gt;&lt;SPAN&gt;02:10:00&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; xxxxx&amp;nbsp; &amp;nbsp; &amp;nbsp;xxxxxxxx&amp;nbsp; &amp;nbsp; xxxxxxxxx&amp;nbsp; &amp;nbsp; &lt;SPAN&gt;02:45:15 &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yyy&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; yyyyyyyyyyy&amp;nbsp; &lt;SPAN class=""&gt;&lt;SPAN&gt;02:15:15&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;yyyyy&amp;nbsp; &amp;nbsp; &amp;nbsp;yyyyyyyy&amp;nbsp; &amp;nbsp; &amp;nbsp;xxxxxxxxx&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;02:45:15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;zzz&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; zzzzzzzzzzz&amp;nbsp; &lt;SPAN class=""&gt;&lt;SPAN&gt;02:25:15&lt;/SPAN&gt;&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; zzzzz&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;zzzzzzzz&amp;nbsp; &amp;nbsp; xxxxxxxxx&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;SPAN&gt;02:45:15&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Test request event:&amp;nbsp;&lt;BR /&gt;&lt;SPAN class=""&gt;Test request:email=xxxx:trasactionId=xxx-xxx-xxx-xxx-xxx:RequestType=dummy:TimeTaken=16209&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN class=""&gt;TransactionTime=&lt;SPAN&gt;02:10:00&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN class=""&gt;SessionId=&lt;/SPAN&gt;&lt;SPAN&gt;xxxxxxx&lt;/SPAN&gt;&lt;SPAN class=""&gt;:Status=SUCCESS&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Test response event:&lt;BR /&gt;&lt;SPAN class=""&gt;Test response:email=yyyyyy:trasactionId=yyyyy-yyyyy-yyyy-yyyy-yyyyy:TimeTaken=381:TransactionTime=&lt;SPAN&gt;02:45:15&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;: SessionId=&lt;SPAN&gt;xxxxxxx&lt;/SPAN&gt;:Status=SUCCESS&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 16:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649528#M224576</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2023-07-06T16:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649530#M224577</link>
      <description>&lt;P&gt;The below query also works but its grouping the email,transactionid,logintime filed together in ascending order w.r.t the session ID causing mismatch between&amp;nbsp;email,transactionid,logintime.&lt;BR /&gt;&lt;BR /&gt;index = test "testrequest"&lt;BR /&gt;| rex "(?:.+email\=)(?&amp;lt;Email&amp;gt;[a-zA-Z0-9_\-\@\.]+)"&lt;BR /&gt;| rex "(?:.+trasactionId\=)(?&amp;lt;TransactionID&amp;gt;[a-zA-Z0-9-]+)"&lt;BR /&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LoginTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;BR /&gt;| rex "(?:.+Status\=)(?&amp;lt;Status&amp;gt;\w+)"&lt;BR /&gt;| rex "(?:.+TimeTaken\=)(?&amp;lt;TimeTaken1&amp;gt;\d+)"&lt;BR /&gt;| rex "(?:.+\+\+)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;BR /&gt;| table Email,TransactionID,LoginTime,Status,TimeTaken,SessionID&lt;BR /&gt;| append&lt;BR /&gt;[search index = test&amp;nbsp; "testresponse"&lt;BR /&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LogoutTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;BR /&gt;| rex "(?:.+SessionId\=)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;BR /&gt;| table SessionID,LogoutTime]&lt;BR /&gt;| stats values(*) as * by SessionID&lt;BR /&gt;| table Email,TransactionID,LoginTime,TimeTaken,SessionID,LogoutTime,Status&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 16:39:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649530#M224577</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2023-07-06T16:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649531#M224578</link>
      <description>&lt;P&gt;So, it sounds like you have everything you need apart from removing the testresponse line, so just add the following&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = test "testrequest" OR "testrespone"
| rex "(?:.+email\=)(?&amp;lt;Email&amp;gt;[a-zA-Z0-9_\-\@\.]+)"
| rex "(?:.+trasactionId\=)(?&amp;lt;TransactionID&amp;gt;[a-zA-Z0-9-]+)"
| rex "(?:.+TransactionTime\=)(?&amp;lt;TransactionTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"
| rex "(?:.+Status\=)(?&amp;lt;Status&amp;gt;\w+)"
| rex "(?:.+TimeTaken\=)(?&amp;lt;TimeTaken&amp;gt;\d+)"
| rex "(?:.+\+\+)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"
| eval LoginTime=if(searchmatch("testrequest"),TransactionTime,null())
| eval LogoutTime=if(searchmatch("testresponse"),TransactionTime,null())
| eventstats values(LogoutTime) as LogoutTime by SessionID
| table Email,TransactionID,LoginTime,Status,TimeTaken,SessionID,LogoutTime
| where searchmatch("testrequest")&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 06 Jul 2023 17:05:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649531#M224578</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-07-06T17:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: Joining two queries not giving the desired result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649618#M224612</link>
      <description>&lt;P&gt;Still the same format issue, where getting few rows of test request and then testresponse which has the logouttime as the last row.&lt;BR /&gt;&lt;BR /&gt;Interestingly I'm getting the desired result for below query with just adding the Join type as Left. It seems splunk takes Join type as Inner by default which gives results if there is a match between search and subsearch.&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;&lt;EM&gt;index = test "testrequest" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+email\=)(?&amp;lt;Email&amp;gt;[a-zA-Z0-9_\-\@\.]+)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+trasactionId\=)(?&amp;lt;TransactionID&amp;gt;[a-zA-Z0-9-]+)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LoginTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+Status\=)(?&amp;lt;Status&amp;gt;\w+)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+TimeTaken\=)(?&amp;lt;TimeTaken1&amp;gt;\d+)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| eval TimeTaken=TimeTaken1/1000&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+\+\+)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+FailureReason\=)(?&amp;lt;FailureReason&amp;gt;[\w\s]+)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| table Email,TransactionID,LoginTime,Status,TimeTaken,SessionID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| &lt;STRONG&gt;join type=left&lt;/STRONG&gt; SessionID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[search index = test "testresponse" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+TransactionTime\=)(?&amp;lt;LogoutTime&amp;gt;[a-zA-Z0-9\s:]+EDT)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| rex "(?:.+SessionId\=)(?&amp;lt;SessionID&amp;gt;[a-zA-Z0-9-_:@.]+)(?:\:Status)"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| table SessionID,LogoutTime ]&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;| table Email,TransactionID,LoginTime,TimeTaken,SessionID,LogoutTime,Status,FailureReason&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the wonderful conversation and help that led to this excellent learning.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 10:34:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Joining-two-queries-not-giving-the-desired-result/m-p/649618#M224612</guid>
      <dc:creator>Deprasad</dc:creator>
      <dc:date>2023-07-07T10:34:16Z</dc:date>
    </item>
  </channel>
</rss>

