<?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 to index data from the directory based on the log created date in SPLUNK? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-data-from-the-directory-based-on-the-log-created/m-p/168749#M34169</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have a couple of logs to be monitored daily from a directory called LOG. The log name is error log.0, error log.1, and so on, where 0 means Sunday , 1 --&amp;gt;Monday etc. After 7 days, the logs will be automatically deleted from the directory.&lt;/P&gt;

&lt;P&gt;Can someone suggest the search command to execute this? I have tried &lt;CODE&gt;error log.*&lt;/CODE&gt; which will index all logs daily (unnecessary action)&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Deepthi &lt;/P&gt;</description>
    <pubDate>Mon, 22 Jun 2015 10:14:17 GMT</pubDate>
    <dc:creator>deepthi5</dc:creator>
    <dc:date>2015-06-22T10:14:17Z</dc:date>
    <item>
      <title>How to index data from the directory based on the log created date in SPLUNK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-data-from-the-directory-based-on-the-log-created/m-p/168749#M34169</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I have a couple of logs to be monitored daily from a directory called LOG. The log name is error log.0, error log.1, and so on, where 0 means Sunday , 1 --&amp;gt;Monday etc. After 7 days, the logs will be automatically deleted from the directory.&lt;/P&gt;

&lt;P&gt;Can someone suggest the search command to execute this? I have tried &lt;CODE&gt;error log.*&lt;/CODE&gt; which will index all logs daily (unnecessary action)&lt;/P&gt;

&lt;P&gt;Thanks &lt;BR /&gt;
Deepthi &lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 10:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-data-from-the-directory-based-on-the-log-created/m-p/168749#M34169</guid>
      <dc:creator>deepthi5</dc:creator>
      <dc:date>2015-06-22T10:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to index data from the directory based on the log created date in SPLUNK?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-data-from-the-directory-based-on-the-log-created/m-p/168750#M34170</link>
      <description>&lt;P&gt;If you use "log.*" Splunk will indeed index all seven logs the first day, but after that should recognize that some files haven't changed and not re-index them.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 11:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-data-from-the-directory-based-on-the-log-created/m-p/168750#M34170</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-22T11:28:19Z</dc:date>
    </item>
  </channel>
</rss>

