<?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: Splunk Timechart in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Timechart-How-get-data-for-last-7-days-for-a-particular/m-p/599580#M49194</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240908"&gt;@onthakur&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have the "date_hour" field you can use the following search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index time_hour=1 earliest=-7d latest=now
| timechart span=1d count&lt;/LI-CODE&gt;&lt;P&gt;If yu haven't the above field you have to extract it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-7d latest=now
| eval time_hour=strftime(_time,"%H")
| where time_hour=1
| timechart span=1d count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 12:21:05 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-05-27T12:21:05Z</dc:date>
    <item>
      <title>Splunk Timechart- How get data for last 7 days for a particular time range?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Timechart-How-get-data-for-last-7-days-for-a-particular/m-p/599578#M49192</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am looking for the timechart option where I can get data for last 7 days for a particular time range.&lt;/P&gt;
&lt;P&gt;Ex :- if I select time range as 01:00:00 to 02:00:00 AM then should show data for last 7 days for the same time range.&lt;/P&gt;
&lt;TABLE width="251"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="187"&gt;Date/Time range&lt;/TD&gt;
&lt;TD width="64"&gt;Count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-05-27 01:00:00 02:00:00&lt;/TD&gt;
&lt;TD&gt;A&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-05-26 01:00:00 02:00:00&lt;/TD&gt;
&lt;TD&gt;B&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-05-25 01:00:00 02:00:00&lt;/TD&gt;
&lt;TD&gt;C&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-05-24 01:00:00 02:00:00&lt;/TD&gt;
&lt;TD&gt;D&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-05-23 01:00:00 02:00:00&lt;/TD&gt;
&lt;TD&gt;E&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-05-22 01:00:00 02:00:00&lt;/TD&gt;
&lt;TD&gt;F&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;2022-05-21 01:00:00 02:00:00&lt;/TD&gt;
&lt;TD&gt;G&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 15:05:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Timechart-How-get-data-for-last-7-days-for-a-particular/m-p/599578#M49192</guid>
      <dc:creator>onthakur</dc:creator>
      <dc:date>2022-05-27T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Timechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Timechart-How-get-data-for-last-7-days-for-a-particular/m-p/599580#M49194</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/240908"&gt;@onthakur&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you have the "date_hour" field you can use the following search:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index time_hour=1 earliest=-7d latest=now
| timechart span=1d count&lt;/LI-CODE&gt;&lt;P&gt;If yu haven't the above field you have to extract it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-7d latest=now
| eval time_hour=strftime(_time,"%H")
| where time_hour=1
| timechart span=1d count&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 12:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Timechart-How-get-data-for-last-7-days-for-a-particular/m-p/599580#M49194</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-05-27T12:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Timechart</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Timechart-How-get-data-for-last-7-days-for-a-particular/m-p/599583#M49196</link>
      <description>&lt;P&gt;Don't use the time_hour fields! At least unless you understand how it works.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.6/Knowledge/Usedefaultfields" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.6/Knowledge/Usedefaultfields&lt;/A&gt;&lt;/P&gt;&lt;P&gt;About the date_* fields:&lt;/P&gt;&lt;P&gt;"These are fields that provide additional searchable granularity to event timestamps.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; Only events that have timestamp information in them as generated by their respective systems will have date_* fields. If an event has a date_* field, it represents the value of time/date directly from the event itself. If you have specified any timezone conversions or changed the value of the time/date at indexing or input time (for example, by setting the timestamp to be the time at index or input time), these fields will not represent that."&lt;/P&gt;&lt;P&gt;So if have some form of timezone inconsistency between the raw timestamp data in the event and the timezone you're working with, you will have wrong results when working on those date_* results.&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 13:36:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Splunk-Timechart-How-get-data-for-last-7-days-for-a-particular/m-p/599583#M49196</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-27T13:36:58Z</dc:date>
    </item>
  </channel>
</rss>

