<?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: Maniupulating _time to remove 0 values from line chart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Maniupulating-time-to-remove-0-values-from-line-chart/m-p/532405#M150404</link>
    <description>&lt;P&gt;Use the timechart command and adjust the span until the zeros disappear.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex
| search mysearch
| spath response_time 
| spath input=request_payload output=platform path=client_properties.platform
| streamstats avg(response_time) as platform_response_time by platform time_window=10m
| timechart span=10m first(platform_response_time) by platform&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 08 Dec 2020 22:25:56 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-12-08T22:25:56Z</dc:date>
    <item>
      <title>Maniupulating _time to remove 0 values from line chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Maniupulating-time-to-remove-0-values-from-line-chart/m-p/532348#M150381</link>
      <description>&lt;P&gt;I have a line chart in which I'm trying to monitor response time for a certain network call. I want to see the average response time, over time, by platform in a line chart.&lt;/P&gt;&lt;P&gt;Input data looks something like this:&lt;/P&gt;&lt;TABLE border="1" width="38.44905780900671%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%"&gt;network call #&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;response time (ms)&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;platform&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;200&lt;/TD&gt;&lt;TD&gt;web&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;250&lt;/TD&gt;&lt;TD&gt;android&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;300&lt;/TD&gt;&lt;TD&gt;web&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666668%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;140&lt;/TD&gt;&lt;TD width="16.666666666666668%"&gt;ios&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and my current query looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex
| search mysearch
| spath response_time 
| spath input=request_payload output=platform path=client_properties.platform
| streamstats avg(response_time) as platform_response_time by platform time_window=10m
| chart first(platform_response_time) over _time by platform&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is getting my pretty close, but theres something about it that isn't "right" :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2020-12-08 at 10.21.53 AM.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/12216i15386760AE825613/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2020-12-08 at 10.21.53 AM.png" alt="Screen Shot 2020-12-08 at 10.21.53 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What can I do to make the line's... better? I don't even know how to phrase this, but there shouldn't be 0 values. The lines shouldn't be jumping up and backdown to 0 at every tick. They should be more "straight". The problem, I think, is that I'm creating a point for each interval of time, and there isn't a request for every platform at every interval.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to group time intervals together in a longer period of time? i.e. there will only be a plot point for the average repsonse time each 5 minute interval? If there are truly 0 requests in 5m from a platform, that should be reflected, but it isn't likely and wouldn't happen so often.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 15:27:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Maniupulating-time-to-remove-0-values-from-line-chart/m-p/532348#M150381</guid>
      <dc:creator>ericwindmill</dc:creator>
      <dc:date>2020-12-08T15:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Maniupulating _time to remove 0 values from line chart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Maniupulating-time-to-remove-0-values-from-line-chart/m-p/532405#M150404</link>
      <description>&lt;P&gt;Use the timechart command and adjust the span until the zeros disappear.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=myindex
| search mysearch
| spath response_time 
| spath input=request_payload output=platform path=client_properties.platform
| streamstats avg(response_time) as platform_response_time by platform time_window=10m
| timechart span=10m first(platform_response_time) by platform&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 08 Dec 2020 22:25:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Maniupulating-time-to-remove-0-values-from-line-chart/m-p/532405#M150404</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-12-08T22:25:56Z</dc:date>
    </item>
  </channel>
</rss>

