<?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: timechart only business hours in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241758#M71918</link>
    <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;If date_hour is available in your data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search  date_hour&amp;gt;=9 AND date_hour&amp;lt;17 | your timechart command
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If date_hour is not present,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | eval date_hour=strftime(_time,"%H") | where  date_hour&amp;gt;=9 AND date_hour&amp;lt;17 | your timechart command
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Mar 2016 18:30:14 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-03-14T18:30:14Z</dc:date>
    <item>
      <title>timechart only business hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241757#M71917</link>
      <description>&lt;P&gt;I would like to timechart only events that happened between 9 AM and 5 PM...any help would be appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 18:21:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241757#M71917</guid>
      <dc:creator>peter_gianusso</dc:creator>
      <dc:date>2016-03-14T18:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: timechart only business hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241758#M71918</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;

&lt;P&gt;If date_hour is available in your data&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search  date_hour&amp;gt;=9 AND date_hour&amp;lt;17 | your timechart command
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If date_hour is not present,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | eval date_hour=strftime(_time,"%H") | where  date_hour&amp;gt;=9 AND date_hour&amp;lt;17 | your timechart command
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Mar 2016 18:30:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241758#M71918</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-03-14T18:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: timechart only business hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241759#M71919</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;You need a where clause using date_hour, and then you'll probably want to increase the bins, or use the bucket command to help show time periods when there isnt data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=_internal | where date_hour&amp;gt;=9 AND date_hour&amp;lt;=17 | timechart count bins=1000
&lt;/CODE&gt;&lt;/PRE&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/1120iE8D9EA1573141014/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 18:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241759#M71919</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-03-14T18:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: timechart only business hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241760#M71920</link>
      <description>&lt;P&gt;if i hadnt taken the screenshot... ;-P, you beat me to it by 25s!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 18:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241760#M71920</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-03-14T18:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: timechart only business hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241761#M71921</link>
      <description>&lt;P&gt;thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 18:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241761#M71921</guid>
      <dc:creator>peter_gianusso</dc:creator>
      <dc:date>2016-03-14T18:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: timechart only business hours</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241762#M71922</link>
      <description>&lt;P&gt;thank you!!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2016 18:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-only-business-hours/m-p/241762#M71922</guid>
      <dc:creator>peter_gianusso</dc:creator>
      <dc:date>2016-03-14T18:50:24Z</dc:date>
    </item>
  </channel>
</rss>

