<?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 can we identify events based on timestamp ? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464258#M30509</link>
    <description>&lt;P&gt;This would have been good to know originally.&lt;BR /&gt;
All you can do is set the time picker for 30 days and use &lt;CODE&gt;where&lt;/CODE&gt; to include events in the desired time range.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval hour = strptime ( strftime (_time, "%H"), "%H")
| where (hour &amp;gt;= 8 AND hour &amp;lt; 10) OR (hour &amp;gt;= 13 AND hour &amp;lt; 15) OR (hour &amp;gt;= 17 AND hour &amp;lt; 19)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 01 Apr 2020 12:46:18 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-04-01T12:46:18Z</dc:date>
    <item>
      <title>How can we identify events based on timestamp ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464255#M30506</link>
      <description>&lt;P&gt;I am indexing a file 3 times a day in splunk. Timings are around 8:30 am , 1:30 pm and 5:15 pm these are not fixed timings as job generating the file is dependent on predecessor jobs and every day timings may vary a little bit. &lt;BR /&gt;
Each time same job runs and produce data that i want to use to create a report but i want create a seperate report for all three runs.&lt;/P&gt;

&lt;P&gt;For example i want to make dashboard for 8:30 am run so events of 1:30 and 5:15 pm should not appear in the searchs for this dashboard. So i have to identify my events based on a timestamp range. &lt;/P&gt;

&lt;P&gt;Can someone help me out how can i identify events based on timestamps they indexed ?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 13:47:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464255#M30506</guid>
      <dc:creator>ravicheepa87</dc:creator>
      <dc:date>2020-03-30T13:47:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can we identify events based on timestamp ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464256#M30507</link>
      <description>&lt;P&gt;Use relative time ranges.  &lt;CODE&gt;earliest = @d+8h latest = @d+10h&lt;/CODE&gt; for the first report, &lt;CODE&gt;earliest = @d+13h latest = @d+14h&lt;/CODE&gt; for the second and &lt;CODE&gt;earliest = @d+17h latest = @d@19h&lt;/CODE&gt; for the last.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2020 14:49:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464256#M30507</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-30T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: How can we identify events based on timestamp ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464257#M30508</link>
      <description>&lt;P&gt;Hi @richgalloway thanks for the suggestion but this will give me only today's time range. But i want events between 8am to 10 am over a range of 30 days. When i try earliest =-30d@d+8h  Latest = @d+10h it gives me all event from 30th day 8am in past to 10 am today but i want events from between 8-10 am for each day in past 30 days.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Apr 2020 06:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464257#M30508</guid>
      <dc:creator>ravicheepa87</dc:creator>
      <dc:date>2020-04-01T06:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can we identify events based on timestamp ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464258#M30509</link>
      <description>&lt;P&gt;This would have been good to know originally.&lt;BR /&gt;
All you can do is set the time picker for 30 days and use &lt;CODE&gt;where&lt;/CODE&gt; to include events in the desired time range.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval hour = strptime ( strftime (_time, "%H"), "%H")
| where (hour &amp;gt;= 8 AND hour &amp;lt; 10) OR (hour &amp;gt;= 13 AND hour &amp;lt; 15) OR (hour &amp;gt;= 17 AND hour &amp;lt; 19)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Apr 2020 12:46:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464258#M30509</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-01T12:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can we identify events based on timestamp ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464259#M30510</link>
      <description>&lt;P&gt;Hi Rich,&lt;/P&gt;

&lt;P&gt;Thanks it's working now but it's wroking with below code:&lt;BR /&gt;
 eval hour=strftime(_time,"%H") | where (hour &amp;gt;= 7 AND hour &amp;lt; 10) . I am getting hour as spaces if i use strptime function as mentioned by you.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2020 05:31:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-we-identify-events-based-on-timestamp/m-p/464259#M30510</guid>
      <dc:creator>ravicheepa87</dc:creator>
      <dc:date>2020-04-02T05:31:43Z</dc:date>
    </item>
  </channel>
</rss>

