<?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: Plot timechart on elapsed time from json array object in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627319#M107697</link>
    <description>&lt;P&gt;Seems i got it :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=test.index appName=test.app | spath downstreamStats | search downstreamStats{}.pathname!=null |eval x=mvzip('downstreamStats{}.pathname','downstreamStats{}.elapsed',"#") | mvexpand x | rex field=x "(?&amp;lt;ds_path&amp;gt;\w+)#(?&amp;lt;ds_elapsed&amp;gt;\d+)"&amp;nbsp; | timechart span=1m p99(ds_elapsed) by ds_path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This works&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2023 10:36:34 GMT</pubDate>
    <dc:creator>hungrykakarot</dc:creator>
    <dc:date>2023-01-17T10:36:34Z</dc:date>
    <item>
      <title>How to plot timechart on elapsed time from json array object?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627310#M107693</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have an application(test.app) which invokes multiple downstream application apis(profile, payments etc) and we log elapsed time of every downstream call as an element of Json Array. Is it possible to plot timechart on the p99(elapsed) time of each downstream application call separately.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sample log :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="java"&gt;{
......
appName : test.app
downstreamStats : [
  {
    ...
    pathname : profile,
    elapsed: 250,
    ...
  },
  {
    ...
    pathname : payments,
    elapsed: 850,
    ...
  }
]
......
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to plot timechart of the above logs with p99 of elapsed time BY&amp;nbsp;pathname&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 17:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627310#M107693</guid>
      <dc:creator>hungrykakarot</dc:creator>
      <dc:date>2023-01-18T17:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Plot timechart on elapsed time from json array object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627317#M107695</link>
      <description>&lt;P&gt;Extract the collection as a complete object, extract the items from the collection, mvexpand to create events for each item, extract the pathname and elapsed fields, plot your chart.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 09:12:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627317#M107695</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-17T09:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Plot timechart on elapsed time from json array object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627318#M107696</link>
      <description>&lt;P&gt;I tried below but it didnt work :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;index=test.index appName=test.app | spath downstreamStats | search downstreamStats{}.pathname!=null | eval x=mvzip('downstreamStats{}.pathname','downstreamStats{}.elapsed',"#") | mvexpand x | rex field=x "(?&amp;lt;ds_path&amp;gt;)#(?&amp;lt;ds_elapsed&amp;gt;)" | timechart span=1m p99(ds_elapsed) by&amp;nbsp;ds_path&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 09:17:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627318#M107696</guid>
      <dc:creator>hungrykakarot</dc:creator>
      <dc:date>2023-01-17T09:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Plot timechart on elapsed time from json array object</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627319#M107697</link>
      <description>&lt;P&gt;Seems i got it :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index=test.index appName=test.app | spath downstreamStats | search downstreamStats{}.pathname!=null |eval x=mvzip('downstreamStats{}.pathname','downstreamStats{}.elapsed',"#") | mvexpand x | rex field=x "(?&amp;lt;ds_path&amp;gt;\w+)#(?&amp;lt;ds_elapsed&amp;gt;\d+)"&amp;nbsp; | timechart span=1m p99(ds_elapsed) by ds_path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This works&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 10:36:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-plot-timechart-on-elapsed-time-from-json-array-object/m-p/627319#M107697</guid>
      <dc:creator>hungrykakarot</dc:creator>
      <dc:date>2023-01-17T10:36:34Z</dc:date>
    </item>
  </channel>
</rss>

