<?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 Append search result in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555578#M157722</link>
    <description>&lt;P&gt;Hello Fo&lt;SPAN&gt;lks, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my current use case i receive events with 3 fields as json .&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{ 'tid'&lt;SPAN&gt;'123',&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;' 'type': 'R',&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'app_name': 'app-1'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here app_name (app-1 to app-6) are micro services in which tid is generated by app-1 and passed on to other apps. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each app generate 2 events - with type as R and D. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So for a transaction there will be 12 events with unique tid.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want generate a dashboard just out of time range the customer selects so that they get a tabular panel with below columns with the time the event was received.&lt;/P&gt;&lt;P&gt;tid | app-1 R | app-1 D | time took| •••• for each app-*&lt;/P&gt;&lt;P&gt;If I understand, I need to have 2 searches. (1) get unique tid in app-1 and (2) using the unique tid , search app events and form the above table&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you pls help me to frame this query as I am stuck with append query.&lt;/P&gt;</description>
    <pubDate>Sun, 13 Jun 2021 04:03:26 GMT</pubDate>
    <dc:creator>rangarbus</dc:creator>
    <dc:date>2021-06-13T04:03:26Z</dc:date>
    <item>
      <title>Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555578#M157722</link>
      <description>&lt;P&gt;Hello Fo&lt;SPAN&gt;lks, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my current use case i receive events with 3 fields as json .&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{ 'tid'&lt;SPAN&gt;'123',&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;' 'type': 'R',&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'app_name': 'app-1'&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here app_name (app-1 to app-6) are micro services in which tid is generated by app-1 and passed on to other apps. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Each app generate 2 events - with type as R and D. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So for a transaction there will be 12 events with unique tid.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want generate a dashboard just out of time range the customer selects so that they get a tabular panel with below columns with the time the event was received.&lt;/P&gt;&lt;P&gt;tid | app-1 R | app-1 D | time took| •••• for each app-*&lt;/P&gt;&lt;P&gt;If I understand, I need to have 2 searches. (1) get unique tid in app-1 and (2) using the unique tid , search app events and form the above table&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you pls help me to frame this query as I am stuck with append query.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 04:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555578#M157722</guid>
      <dc:creator>rangarbus</dc:creator>
      <dc:date>2021-06-13T04:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555586#M157726</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226197"&gt;@rangarbus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please share some sample of multiple apps and the expected output from that sample events.&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 07:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555586#M157726</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-13T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555595#M157728</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example Events are as below.&lt;/P&gt;&lt;P&gt;There could be up to app-1 to app-6 (example here shows app-1 to app-3).&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;{ "log_processed": { "app_name": "app-1", message: {"type":"R","bk":"Cust-1|Order-2"}, "tId": "f7ac16537e4e89d16c0f5b8c83bd45f2" }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;{ "log_processed": { "app_name": "app-1", message: {"type":"D","bk":"Cust-1|Order-2"}, "tId": "f7ac16537e4e89d16c0f5b8c83bd45f2" }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;{ "log_processed": { "app_name": "app-2", message: {"type":"R","bk":"Cust-1|Order-2"}, "tId": "f7ac16537e4e89d16c0f5b8c83bd45f2" }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;{ "log_processed": { "app_name": "app-2", message: {"type":"D","bk":"Cust-1|Order-2"}, "tId": "f7ac16537e4e89d16c0f5b8c83bd45f2" }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;{ "log_processed": { "app_name": "app-3", message: {"type":"R","bk":"Cust-1|Order-2|1"}, "tId": "f7ac16537e4e89d16c0f5b8c83bd45f2" }&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;{ "log_processed": { "app_name": "app-3", message: {"type":"D","bk":"Cust-1|Order-2|1"}, "tId": "f7ac16537e4e89d16c0f5b8c83bd45f2" }&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Here tId is same for all events. So we need to group all events&amp;nbsp; by tId field and generate the dashboard below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rangarbus_0-1623600605836.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14613i41D166D61B417A8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="rangarbus_0-1623600605836.png" alt="rangarbus_0-1623600605836.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 15:50:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555595#M157728</guid>
      <dc:creator>rangarbus</dc:creator>
      <dc:date>2021-06-14T15:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555676#M157753</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226197"&gt;@rangarbus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
| rename log_processed.* as *, message.* as message_*
| fields tId app_name message_bk message_type
| stats max(eval(if(message_type="D",_time,null()))) as message_type_D min(eval(if(message_type="R",_time,null()))) as message_type_R by tId app_name
| eval diff= message_type_D - message_type_R, app_name="app_name=".app_name.". Time took (Sec)"
| chart values(diff) as diff over tId by app_name | addtotals&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval raw="{ \"log_processed\": { \"app_name\": \"app-1\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"app-1\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"app-2\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"app-2\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"app-3\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"app-3\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}", raw=split(raw,"@@") | mvexpand raw | rename raw as _raw | eval t= 1000 | accum t | eval _time=_time + t | fields - t
| extract
| rename log_processed.* as *, message.* as message_*
| fields tId app_name message_bk message_type
| stats max(eval(if(message_type="D",_time,null()))) as message_type_D min(eval(if(message_type="R",_time,null()))) as message_type_R by tId app_name
| eval diff= message_type_D - message_type_R, app_name="app_name=".app_name.". Time took (Sec)"
| chart values(diff) as diff over tId by app_name | addtotals&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2021-06-14 at 9.58.41 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14623i05C0734B867CB12A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2021-06-14 at 9.58.41 PM.png" alt="Screenshot 2021-06-14 at 9.58.41 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated. &lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 16:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555676#M157753</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-14T16:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555728#M157766</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;. It worked.&lt;/P&gt;&lt;P&gt;Only follow-up question i have is whether it is possible to sort the app_name in a specific sequence on the dashboard. ?&lt;/P&gt;&lt;P&gt;app_name required on sequence as "Xerox, Printer, Copier, Marker"&lt;/P&gt;&lt;P&gt;With the current dashboard output the app_name are sorted as "Copier, Marker, Printer , Xerox"&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:02:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555728#M157766</guid>
      <dc:creator>rangarbus</dc:creator>
      <dc:date>2021-06-15T07:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555737#M157768</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226197"&gt;@rangarbus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the same search will work..&amp;nbsp;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval raw="{ \"log_processed\": { \"app_name\": \"Xerox\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"Xerox\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"Printer\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"Printer\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"Copier\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"Copier\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}", raw=split(raw,"@@") | mvexpand raw | rename raw as _raw | eval t= 1000 | accum t | eval _time=_time + t | fields - t
| extract
| rename log_processed.* as *, message.* as message_*
| fields tId app_name message_bk message_type
| stats max(eval(if(message_type="D",_time,null()))) as message_type_D min(eval(if(message_type="R",_time,null()))) as message_type_R by tId app_name
| eval diff= message_type_D - message_type_R, app_name="app_name=".app_name.". Time took (Sec)"
| chart values(diff) as diff over tId by app_name | addtotals&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 07:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555737#M157768</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-15T07:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555824#M157814</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I got the problem, the app_name are prefixed with static string "cs-" which cause the resulted columns to be sorted in asc order rather just following the event sequence.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval raw="{ \"log_processed\": { \"app_name\": \"cs-xerox\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-xerox\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-printer\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-printer\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-copier\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-copier\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}", raw=split(raw,"@@") | mvexpand raw | rename raw as _raw | eval t= 1000 | accum t | eval _time=_time + t | fields - t
| extract
| rename log_processed.* as *, message.* as message_*
| fields tId app_name message_bk message_type
| stats max(eval(if(message_type="D",_time,null()))) as message_type_D min(eval(if(message_type="R",_time,null()))) as message_type_R by tId app_name
| eval diff= message_type_D - message_type_R, app_name="app_name=".app_name.". Time took (Sec)"
| chart values(diff) as diff over tId by app_name | addtotals&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rangarbus_0-1623774048509.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14638i6A79A3F0A2904C71/image-size/large?v=v2&amp;amp;px=999" role="button" title="rangarbus_0-1623774048509.png" alt="rangarbus_0-1623774048509.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Ideally, the columns should have been &lt;STRONG&gt;tId, app_name=cs-xerox, app_name=cs-printer, app_name=cs-copier&lt;/STRONG&gt; - just like the event sequence.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555824#M157814</guid>
      <dc:creator>rangarbus</dc:creator>
      <dc:date>2021-06-15T16:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555836#M157823</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226197"&gt;@rangarbus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By default the fields are ordered alpha-numerically and field values do not override that default ordering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But we can trick with some values.&amp;nbsp;Can you please try this?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval raw="{ \"log_processed\": { \"app_name\": \"cs-xerox\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-xerox\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-printer\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-printer\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-copier\", \"message\": {\"type\":\"R\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}@@{ \"log_processed\": { \"app_name\": \"cs-copier\", \"message\": {\"type\":\"D\",\"bk\":\"Cust-1|Order-2|1\"}, \"tId\": \"f7ac16537e4e89d16c0f5b8c83bd45f2\" }}", raw=split(raw,"@@") | mvexpand raw | rename raw as _raw | eval t= 1000 | accum t | eval _time=_time + t | fields - t
| extract
| rename log_processed.* as *, message.* as message_*
| fields tId app_name message_bk message_type | eval a=1 | accum a
| stats max(eval(if(message_type="D",_time,null()))) as message_type_D min(eval(if(message_type="R",_time,null()))) as message_type_R max(a) as a by tId app_name
| eval diff= message_type_D - message_type_R, app_name=(a/2)."_app_name=".app_name.". Time took (Sec)"
| chart values(diff) as diff over tId by app_name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 17:30:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555836#M157823</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-15T17:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555892#M157846</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;. It worked.. Really appreciate your quick help!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 02:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555892#M157846</guid>
      <dc:creator>rangarbus</dc:creator>
      <dc:date>2021-06-16T02:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Append search result</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555896#M157847</link>
      <description>&lt;P&gt;Glad to help you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226197"&gt;@rangarbus&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy Splunking&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 03:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Append-search-result/m-p/555896#M157847</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-06-16T03:30:25Z</dc:date>
    </item>
  </channel>
</rss>

