<?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: Read data between  in log file based on date in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343278#M162475</link>
    <description>&lt;P&gt;Splunk reads whole file everyday and it can lead to increase in DB size.&lt;BR /&gt;
I want Splunk to only data between current and next day date from log file.&lt;/P&gt;

&lt;P&gt;No like first Splunk whole file and do indexing and then it give me one day data.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Mar 2018 04:11:45 GMT</pubDate>
    <dc:creator>axs21</dc:creator>
    <dc:date>2018-03-13T04:11:45Z</dc:date>
    <item>
      <title>Read data between  in log file based on date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343273#M162470</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a log file and want to read everyday data only.&lt;BR /&gt;
File Format is like&lt;/P&gt;

&lt;P&gt;sometextsometext&lt;BR /&gt;
&lt;STRONG&gt;Friday, March  9, 2018 03:08:15 PM SGT&lt;/STRONG&gt;&lt;BR /&gt;
Somedata&lt;BR /&gt;
Somedata&lt;BR /&gt;
&lt;STRONG&gt;Friday, March  10, 2018 03:08:15 PM SGT&lt;/STRONG&gt;&lt;BR /&gt;
SomeDataSomeData&lt;BR /&gt;
&lt;STRONG&gt;Saturday, March  11, 2018 03:08:15 PM SGT&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I want to read data from previous day to current day. Is is possible ? Please suggest.&lt;BR /&gt;
E.g. in above file,&lt;BR /&gt;
 I want to read data between March 9 to March 10&lt;BR /&gt;
Next Day, I want to read from March 10 to March 11&lt;BR /&gt;
and so on&lt;/P&gt;

&lt;P&gt;Is it possible to achieve? Please suggest.&lt;BR /&gt;
Thanks,&lt;BR /&gt;
AXS&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 07:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343273#M162470</guid>
      <dc:creator>axs21</dc:creator>
      <dc:date>2018-03-09T07:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Read data between  in log file based on date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343274#M162471</link>
      <description>&lt;P&gt;Is the data from this file indexed into Splunk? What dictates an event break - each new line? Or is this data in a lookup file? &lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 14:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343274#M162471</guid>
      <dc:creator>elliotproebstel</dc:creator>
      <dc:date>2018-03-09T14:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read data between  in log file based on date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343275#M162472</link>
      <description>&lt;P&gt;How often the file is updated, real-time or once a day??&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 16:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343275#M162472</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-09T16:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Read data between  in log file based on date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343276#M162473</link>
      <description>&lt;P&gt;Relative time windows is the solution. But it does not make much sense, how can you read logs from today if the day is not finish?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search earliest=-@1d latest=+@1d 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You should instead &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search earliest=-1d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Mar 2018 07:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343276#M162473</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2018-03-11T07:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Read data between  in log file based on date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343277#M162474</link>
      <description>&lt;P&gt;The file is updated on realtime.&lt;BR /&gt;
Another thing is splunk reads whole file but I want Splunk to read data only from current date and to next date from log file.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 04:09:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343277#M162474</guid>
      <dc:creator>axs21</dc:creator>
      <dc:date>2018-03-13T04:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read data between  in log file based on date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343278#M162475</link>
      <description>&lt;P&gt;Splunk reads whole file everyday and it can lead to increase in DB size.&lt;BR /&gt;
I want Splunk to only data between current and next day date from log file.&lt;/P&gt;

&lt;P&gt;No like first Splunk whole file and do indexing and then it give me one day data.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 04:11:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343278#M162475</guid>
      <dc:creator>axs21</dc:creator>
      <dc:date>2018-03-13T04:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read data between  in log file based on date</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343279#M162476</link>
      <description>&lt;P&gt;Each new line dictates an event break&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 03:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Read-data-between-in-log-file-based-on-date/m-p/343279#M162476</guid>
      <dc:creator>axs21</dc:creator>
      <dc:date>2018-03-15T03:19:53Z</dc:date>
    </item>
  </channel>
</rss>

