<?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: how to retrieve one week data only between 6pm to 9pm in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131519#M7754</link>
    <description>&lt;P&gt;In addition to both these answers it's important to note that the &lt;CODE&gt;date_*&lt;/CODE&gt; fields do NOT always exist in events. It only exists for events where the timestamp processor has parsed the timestamp. This is not the case for Windows event logs sent from a forwarder, for instance. If you want to make sure you always have the field &lt;CODE&gt;date_hour&lt;/CODE&gt;, you could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval date_hour=strftime(_time,"%H") | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 06 Jul 2014 07:08:47 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2014-07-06T07:08:47Z</dc:date>
    <item>
      <title>how to retrieve one week data only between 6pm to 9pm</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131516#M7751</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;
how to retrieve one week data only between 6pm to 9pm.in 1 day span&lt;/P&gt;

&lt;P&gt;monday--- 6pm-9pm&lt;BR /&gt;
tuesday----6pm--9pm&lt;/P&gt;

&lt;P&gt;like that?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2014 13:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131516#M7751</guid>
      <dc:creator>mvaradarajam</dc:creator>
      <dc:date>2014-07-04T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve one week data only between 6pm to 9pm</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131517#M7752</link>
      <description>&lt;P&gt;Normally the retreival can be done like this;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=bleh sourcetype=blah earliest=-7d date_hour&amp;gt;17 OR date_hour&amp;lt;21&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then you must figure out if/how you want to report on that data, i.e. making some statistics, graphs etc etc.&lt;/P&gt;

&lt;P&gt;/K &lt;/P&gt;</description>
      <pubDate>Fri, 04 Jul 2014 13:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131517#M7752</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2014-07-04T13:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve one week data only between 6pm to 9pm</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131518#M7753</link>
      <description>&lt;P&gt;If you want to summarize data by day for events between 6pm and 9pm, this should get you started:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YOUR_BASIC_QUERY_HERE (date_hour&amp;gt;=18 AND date_hour&amp;lt;21) earliest=@w1 latest=@w6 | timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Given your example, I assume you want results for Monday through Friday. If you wanted the full week, use earliest=@w0 latest=@w6+d.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jul 2014 18:56:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131518#M7753</guid>
      <dc:creator>digdug</dc:creator>
      <dc:date>2014-07-05T18:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to retrieve one week data only between 6pm to 9pm</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131519#M7754</link>
      <description>&lt;P&gt;In addition to both these answers it's important to note that the &lt;CODE&gt;date_*&lt;/CODE&gt; fields do NOT always exist in events. It only exists for events where the timestamp processor has parsed the timestamp. This is not the case for Windows event logs sent from a forwarder, for instance. If you want to make sure you always have the field &lt;CODE&gt;date_hour&lt;/CODE&gt;, you could do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval date_hour=strftime(_time,"%H") | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Jul 2014 07:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-retrieve-one-week-data-only-between-6pm-to-9pm/m-p/131519#M7754</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-07-06T07:08:47Z</dc:date>
    </item>
  </channel>
</rss>

