<?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 How to append tp99 and tp90 in the existing query? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-tp99-and-tp90-in-the-existing-query/m-p/585227#M203873</link>
    <description>&lt;P&gt;Hello Splunk community. I have a query that is running currently as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myIndex* api.metaData.pid="my_plugin_id" | rename api.p as apiName | chart count BY apiName "api.metaData.status" | multikv forceheader=1
| table apiName success error NULL
| eval line=printf("%-85s% 10s% 10s% 7s",apiName, success, error, NULL)
| stats list(line) as line
| eval headers=printf("%-85s% 10s% 10s% 7s","API Name","Success","Error", "NULL")
| eval line=mvappend(headers,line)
| fields - headers&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Which displays a table with&amp;nbsp;"API Name","Success","Error", "NULL" counts. This works as expected.&lt;BR /&gt;&lt;BR /&gt;Now i want to add a new column in the table which displays the latency value (tp95 and tp99) for each &lt;STRONG&gt;apiName &lt;/STRONG&gt;. The time taken by each api is in the field api.metadata.tt.&lt;BR /&gt;&lt;BR /&gt;How can i achieve this ? I am new to splunk and I am literally stuck at this point. Could someone please help me. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;: Just to let you guys know, my query has these additional logic to format things because of related question &lt;A href="https://community.splunk.com/t5/Splunk-Search/Combining-multiple-rows-of-chart-data-into-one-for-alerting/m-p/578356#M201557" target="_self"&gt;here&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Feb 2022 00:23:47 GMT</pubDate>
    <dc:creator>VikhyathMaiya</dc:creator>
    <dc:date>2022-02-17T00:23:47Z</dc:date>
    <item>
      <title>How to append tp99 and tp90 in the existing query?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-append-tp99-and-tp90-in-the-existing-query/m-p/585227#M203873</link>
      <description>&lt;P&gt;Hello Splunk community. I have a query that is running currently as shown below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=myIndex* api.metaData.pid="my_plugin_id" | rename api.p as apiName | chart count BY apiName "api.metaData.status" | multikv forceheader=1
| table apiName success error NULL
| eval line=printf("%-85s% 10s% 10s% 7s",apiName, success, error, NULL)
| stats list(line) as line
| eval headers=printf("%-85s% 10s% 10s% 7s","API Name","Success","Error", "NULL")
| eval line=mvappend(headers,line)
| fields - headers&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Which displays a table with&amp;nbsp;"API Name","Success","Error", "NULL" counts. This works as expected.&lt;BR /&gt;&lt;BR /&gt;Now i want to add a new column in the table which displays the latency value (tp95 and tp99) for each &lt;STRONG&gt;apiName &lt;/STRONG&gt;. The time taken by each api is in the field api.metadata.tt.&lt;BR /&gt;&lt;BR /&gt;How can i achieve this ? I am new to splunk and I am literally stuck at this point. Could someone please help me. Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Info&lt;/STRONG&gt;: Just to let you guys know, my query has these additional logic to format things because of related question &lt;A href="https://community.splunk.com/t5/Splunk-Search/Combining-multiple-rows-of-chart-data-into-one-for-alerting/m-p/578356#M201557" target="_self"&gt;here&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2022 00:23:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-append-tp99-and-tp90-in-the-existing-query/m-p/585227#M203873</guid>
      <dc:creator>VikhyathMaiya</dc:creator>
      <dc:date>2022-02-17T00:23:47Z</dc:date>
    </item>
  </channel>
</rss>

