<?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 can I achieve the query for retrieving data for a particular time for the last 6 days? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-achieve-the-query-for-retrieving-data-for-a-particular/m-p/628585#M107875</link>
    <description>&lt;P&gt;How can I achieve the query for retrieving data for a particular time for the last 6 days? Suppose I want to get the data for last 6 days from time 12.00 A.M to 4.00 P.M. Please help on the same&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2023 19:46:03 GMT</pubDate>
    <dc:creator>Subarna</dc:creator>
    <dc:date>2023-01-27T19:46:03Z</dc:date>
    <item>
      <title>How can I achieve the query for retrieving data for a particular time for the last 6 days?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-achieve-the-query-for-retrieving-data-for-a-particular/m-p/628585#M107875</link>
      <description>&lt;P&gt;How can I achieve the query for retrieving data for a particular time for the last 6 days? Suppose I want to get the data for last 6 days from time 12.00 A.M to 4.00 P.M. Please help on the same&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 19:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-achieve-the-query-for-retrieving-data-for-a-particular/m-p/628585#M107875</guid>
      <dc:creator>Subarna</dc:creator>
      <dc:date>2023-01-27T19:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Query</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-achieve-the-query-for-retrieving-data-for-a-particular/m-p/628586#M107876</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/251656"&gt;@Subarna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you have to run a search for the full period adding a filter on the hosu, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-6d@d latest=@d (date_hour&amp;gt;11 date_hour&amp;lt;17)
| ...&lt;/LI-CODE&gt;&lt;P&gt;if you haven't date _hour, you have to extract it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=your_index earliest=-6d@d latest=@d 
| eval date_hour=strftime(_time,"%H")
| where date_hour&amp;gt;11 AND date_hour&amp;lt;17
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2023 09:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-achieve-the-query-for-retrieving-data-for-a-particular/m-p/628586#M107876</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-01-27T09:12:41Z</dc:date>
    </item>
  </channel>
</rss>

