<?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: Getting rid of unused time in timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255466#M76481</link>
    <description>&lt;P&gt;See if add &lt;CODE&gt;cont=f&lt;/CODE&gt; to the timechart command gives you the desired output.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 15:16:41 GMT</pubDate>
    <dc:creator>sundareshr</dc:creator>
    <dc:date>2016-08-31T15:16:41Z</dc:date>
    <item>
      <title>Getting rid of unused time in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255465#M76480</link>
      <description>&lt;P&gt;Given a search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="muni" | nbclosest | timechart span=30m dc(vehicle_id) as NumVehicles
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(where &lt;CODE&gt;nbclosest&lt;/CODE&gt; is a custom search command that filters results and isn't relevant to this question) it correctly charts the data, but the problem the data is only from a subset of hours in the day, e.g., 10am to 7pm. When plotting it, it looks like the attached image:&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/1783i6AE38C55A6F4F174/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I'd like to change the chart so that the times outside 10am-7pm aren't displayed at all. It would be as if the chart were squished horizontally by removing midnight-10am and 7pm-midnight.&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255465#M76480</guid>
      <dc:creator>plucas_splunk</dc:creator>
      <dc:date>2016-08-31T15:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of unused time in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255466#M76481</link>
      <description>&lt;P&gt;See if add &lt;CODE&gt;cont=f&lt;/CODE&gt; to the timechart command gives you the desired output.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:16:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255466#M76481</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-31T15:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of unused time in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255467#M76482</link>
      <description>&lt;P&gt;Give this a try. You may loose the x-axis markers&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="muni" | nbclosest | bucket span=30m _time | stats dc(vehicle_id) as NumVehicles by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:56:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255467#M76482</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-31T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Getting rid of unused time in timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255468#M76483</link>
      <description>&lt;P&gt;This produces the same result as adding &lt;CODE&gt;cont=f&lt;/CODE&gt; but, oddly, says "0 events" on the left.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 17:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Getting-rid-of-unused-time-in-timechart/m-p/255468#M76483</guid>
      <dc:creator>plucas_splunk</dc:creator>
      <dc:date>2016-08-31T17:38:27Z</dc:date>
    </item>
  </channel>
</rss>

