<?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: SPL Time range is giving issue in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695168#M236415</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;And when I use custom format as shown below its returning 0 events:&lt;/P&gt;&lt;P&gt;index=main sourcetype="access_combined_wcookie" earliest="1/15/2024:20:00:00" latest="2/22/2024:20:00:00"&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you read the document &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;posted, you know that this is the only accepted format. &amp;nbsp;To diagnose why you get zero return, you have to prove that you had events in that period. &amp;nbsp;In other words, what makes you think 0 is not the correct result? &amp;nbsp;Is it possible that your events were not ingested with the correct _time value? Forget half years ago. &amp;nbsp;Does searches like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype="access_combined_wcookie" earliest=-1d&lt;/LI-CODE&gt;&lt;P&gt;return the &lt;STRONG&gt;correct&lt;/STRONG&gt; results? &amp;nbsp;How about the first month of the year?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype="access_combined_wcookie" earliest=-0y@y latest=-0y@y+1mon&lt;/LI-CODE&gt;&lt;P&gt;All this is to say, without proper context (raw data, event frequency, etc.), your question is unanswerable.&lt;/P&gt;</description>
    <pubDate>Sun, 04 Aug 2024 04:22:34 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2024-08-04T04:22:34Z</dc:date>
    <item>
      <title>SPL Time range is giving issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695154#M236409</link>
      <description>&lt;P&gt;Hi Splunkers!&lt;/P&gt;&lt;P&gt;I wish to get data in a specific time range using earliest and latest command .&lt;/P&gt;&lt;P&gt;I have checked with time picker events are there within the specified range.&lt;/P&gt;&lt;P&gt;But when I am trying to run a spl query its not working :&lt;/P&gt;&lt;P&gt;I have tried with ISO format and custom format as shown below .&lt;/P&gt;&lt;P&gt;When I use ISO format its giving error&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;index=main sourcetype="access_combined_wcookie" earliest="2024-01-15T20:00:00" latest="2024-02-22T20:00:00"&lt;/P&gt;&lt;P&gt;And when I use custom format as shown below its returning 0 events:&lt;/P&gt;&lt;P&gt;index=main sourcetype="access_combined_wcookie" earliest="1/15/2024:20:00:00" latest="2/22/2024:20:00:00"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help I want to do this using earliest and latest command only&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 09:42:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695154#M236409</guid>
      <dc:creator>chimpui</dc:creator>
      <dc:date>2024-08-03T09:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: SPL Time range is giving issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695155#M236410</link>
      <description>&lt;P&gt;Your custom format (mm/dd/yyyy:HH:MM:SS) should work assuming you have events in the specified time range&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 10:14:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695155#M236410</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-08-03T10:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: SPL Time range is giving issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695156#M236411</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Specifytimemodifiersinyoursearch" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Specifytimemodifiersinyoursearch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But you can also (and it saves you issues with time zones) specify it as epoch timestamp.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 10:15:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695156#M236411</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-08-03T10:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPL Time range is giving issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695168#M236415</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;And when I use custom format as shown below its returning 0 events:&lt;/P&gt;&lt;P&gt;index=main sourcetype="access_combined_wcookie" earliest="1/15/2024:20:00:00" latest="2/22/2024:20:00:00"&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you read the document &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;posted, you know that this is the only accepted format. &amp;nbsp;To diagnose why you get zero return, you have to prove that you had events in that period. &amp;nbsp;In other words, what makes you think 0 is not the correct result? &amp;nbsp;Is it possible that your events were not ingested with the correct _time value? Forget half years ago. &amp;nbsp;Does searches like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype="access_combined_wcookie" earliest=-1d&lt;/LI-CODE&gt;&lt;P&gt;return the &lt;STRONG&gt;correct&lt;/STRONG&gt; results? &amp;nbsp;How about the first month of the year?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main sourcetype="access_combined_wcookie" earliest=-0y@y latest=-0y@y+1mon&lt;/LI-CODE&gt;&lt;P&gt;All this is to say, without proper context (raw data, event frequency, etc.), your question is unanswerable.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2024 04:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695168#M236415</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-08-04T04:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPL Time range is giving issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695575#M236510</link>
      <description>You probably have already read previous doc? Here is another one &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Search/Aboutsearchtimeranges" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Search/Aboutsearchtimeranges&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;To be sure that you have correct time span in use, you should use UTC (unix time) as &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt; already propose. Remember to convert your local time to UTC before you do that query.&lt;BR /&gt;&lt;BR /&gt;But please remember that Splunk store all event's in UTC time and shows those based on your current TZ definition (defined in User Preferences in your Splunk GUI).</description>
      <pubDate>Wed, 07 Aug 2024 14:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/SPL-Time-range-is-giving-issue/m-p/695575#M236510</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2024-08-07T14:58:50Z</dc:date>
    </item>
  </channel>
</rss>

