<?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 how to display information for a specific time range everyday in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373692#M24413</link>
    <description>&lt;P&gt;Good day&lt;/P&gt;

&lt;P&gt;I have a query i have generated. I want the query to show me events from 11pm to 6am ONLY. So if i select from month to date it only shows information of the time  range i have specified.&lt;/P&gt;

&lt;P&gt;SubscriberId=$msisdn$ | stats sum(TBytes) as total, sum(RBytes) as received, sum(TxBytes) as transmitted | eval total_mb=total/1000/1000 | eval received_mb=received/1000/1000 | eval transmitted_mb=transmitted/1000/1000&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:05:28 GMT</pubDate>
    <dc:creator>nyasharashad59</dc:creator>
    <dc:date>2020-09-29T16:05:28Z</dc:date>
    <item>
      <title>how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373692#M24413</link>
      <description>&lt;P&gt;Good day&lt;/P&gt;

&lt;P&gt;I have a query i have generated. I want the query to show me events from 11pm to 6am ONLY. So if i select from month to date it only shows information of the time  range i have specified.&lt;/P&gt;

&lt;P&gt;SubscriberId=$msisdn$ | stats sum(TBytes) as total, sum(RBytes) as received, sum(TxBytes) as transmitted | eval total_mb=total/1000/1000 | eval received_mb=received/1000/1000 | eval transmitted_mb=transmitted/1000/1000&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:05:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373692#M24413</guid>
      <dc:creator>nyasharashad59</dc:creator>
      <dc:date>2020-09-29T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373693#M24414</link>
      <description>&lt;P&gt;@nyasharashad59, you can use &lt;CODE&gt;date_hour&lt;/CODE&gt; field to filter events based on specific hours your require:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;YourBaseSearch&amp;gt; SubscriberId=$msisdn$ date_hour=23 OR (date_hour&amp;gt;=0 AND date_hour&amp;lt;7)
| &amp;lt;YourRemainingSearch&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Oct 2017 09:54:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373693#M24414</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-04T09:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373694#M24415</link>
      <description>&lt;P&gt;Hi nyasharashad59,&lt;/P&gt;

&lt;P&gt;Can you please try below search??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SubscriberId=$msisdn$ | timechart sum(TBytes) as TBytes, sum(RBytes) as RBytes, sum(TxBytes) as TxBytes span=1s 
| convert ctime(_time) as Time timeformat="%H%M%S" 
| where (Time&amp;gt;230000 AND Time&amp;lt;235959) OR (Time&amp;lt;060000) 
| stats sum(TBytes) as total, sum(RBytes) as received, sum(TxBytes) as transmitted 
| eval total_mb=total/1000/1000 
| eval received_mb=received/1000/1000 
| eval transmitted_mb=transmitted/1000/1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can change Time Range in where condition.&lt;/P&gt;

&lt;P&gt;I hope I will work.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 11:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373694#M24415</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-04T11:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373695#M24416</link>
      <description>&lt;P&gt;@kamlesh_vaghela - good start.  Two suggestions... (1) Since time cannot be greater than 24, you don't need the second half of the first time condition.  (2) the remaining time conditions will exclude items that happen at exactly 230000 and 06000000, so change those to &lt;CODE&gt;&amp;gt;=&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;=&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;You could also just use the "%H" portion and test for &amp;gt;="23" and &amp;lt;="06"&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:31:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373695#M24416</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-04T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373696#M24417</link>
      <description>&lt;P&gt;@niketnilay - isn't the &lt;CODE&gt;&amp;gt;=0&lt;/CODE&gt; redundant?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:32:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373696#M24417</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-04T12:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373697#M24418</link>
      <description>&lt;P&gt;Yeah, That's true. &lt;BR /&gt;
It will be very much clear and simple to compare hours.&lt;/P&gt;

&lt;P&gt;Thanks @DalJeanis.&lt;/P&gt;

&lt;P&gt;Hi nyasharashad59,&lt;/P&gt;

&lt;P&gt;Can you please try below revised search??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SubscriberId=$msisdn$ | timechart sum(TBytes) as TBytes, sum(RBytes) as RBytes, sum(TxBytes) as TxBytes span=1s 
| convert ctime(_time) as Time timeformat="%H" | where Time&amp;gt;=23 OR Time&amp;lt;6 
| stats sum(TBytes) as total, sum(RBytes) as received, sum(TxBytes) as transmitted 
| eval total_mb=total/1000/1000 
| eval received_mb=received/1000/1000 
| eval transmitted_mb=transmitted/1000/1000
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 12:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373697#M24418</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-04T12:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373698#M24419</link>
      <description>&lt;P&gt;Yes it is. Habit or reflex typed it without thinking &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 13:48:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373698#M24419</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-04T13:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373699#M24420</link>
      <description>&lt;P&gt;@kamlesh_vaghela &lt;CODE&gt;&amp;lt;=6&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:24:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373699#M24420</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-04T14:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373700#M24421</link>
      <description>&lt;P&gt;Hi DalJeanis, &lt;BR /&gt;
Here we are comparing Hours only so Don't you think &lt;CODE&gt;&amp;lt;=6&lt;/CODE&gt; will fetch event after 6 am also?? means events of  (%H:%M) 6:10 ...6:50...6:59 ..  We need events up to 6AM only. &lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:30:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373700#M24421</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-04T14:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to display information for a specific time range everyday</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373701#M24422</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/203121"&gt;@DalJeanis&lt;/a&gt;, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;, we should always consider filtering records upfront. So using &lt;CODE&gt;date_hour&lt;/CODE&gt;  in base search will have better performance as compared to filtering later in the search.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:01:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/how-to-display-information-for-a-specific-time-range-everyday/m-p/373701#M24422</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T16:01:26Z</dc:date>
    </item>
  </channel>
</rss>

