<?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 to index data from a log file which got generated when my forwarder was down? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-index-data-from-a-log-file-which-got-generated-when-my/m-p/373291#M67664</link>
    <description>&lt;P&gt;Consider changing your input to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/web/app/webapp.log*]
index=main
sourcetype=web_application
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the logs are still in the folder this will capture them, but if the logs aren't on disk anymore I would imagine that the data is lost. The above configuration will help prevent this situation in the future. If you're concerned about duplicate events, consider that Splunk uses the data at the beginning of the file to determine if it's already read it, not the file name (by default).&lt;/P&gt;

&lt;P&gt;There should be no negative effects from this change unless the star will match files you don't want to index. If that's the case you might want to review the &lt;CODE&gt;whitelist&lt;/CODE&gt; and &lt;CODE&gt;blacklist&lt;/CODE&gt; options on your input to fine tune what you capture:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.1/Admin/Inputsconf#MONITOR:"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.1/Admin/Inputsconf#MONITOR:&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jun 2017 14:35:53 GMT</pubDate>
    <dc:creator>jtacy</dc:creator>
    <dc:date>2017-06-28T14:35:53Z</dc:date>
    <item>
      <title>how to index data from a log file which got generated when my forwarder was down?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-index-data-from-a-log-file-which-got-generated-when-my/m-p/373290#M67663</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;i have a dumb question,&lt;/P&gt;

&lt;P&gt;i have few servers which will have heavy traffic and with log files rotating for every few minutes. the problem i had, my forwarder was down for few mins in that down time log files got rotated and new file is generated and my forwarder is reading the current log file but when i search data for the time when my forwarder was down resulting in zero events. does it means i lost that data. if it is so then how should i read that data and for future purpose how should i address this problem.&lt;/P&gt;

&lt;P&gt;here are my example log file names&lt;BR /&gt;
webapp.log (currently written )&lt;BR /&gt;
webapp.log.1 (rolled)&lt;BR /&gt;
webapp.log.2 (rolled)&lt;BR /&gt;
webapp.log.3 (rolled)&lt;BR /&gt;
webapp.log.4 (rolled)&lt;/P&gt;

&lt;P&gt;here are my inputs.conf&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[monitor:///var/log/web/app/webapp.log]&lt;BR /&gt;
index=main&lt;BR /&gt;
sourcetype=web_application&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 13:57:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-index-data-from-a-log-file-which-got-generated-when-my/m-p/373290#M67663</guid>
      <dc:creator>saifuddin9122</dc:creator>
      <dc:date>2017-06-28T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to index data from a log file which got generated when my forwarder was down?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-index-data-from-a-log-file-which-got-generated-when-my/m-p/373291#M67664</link>
      <description>&lt;P&gt;Consider changing your input to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/web/app/webapp.log*]
index=main
sourcetype=web_application
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the logs are still in the folder this will capture them, but if the logs aren't on disk anymore I would imagine that the data is lost. The above configuration will help prevent this situation in the future. If you're concerned about duplicate events, consider that Splunk uses the data at the beginning of the file to determine if it's already read it, not the file name (by default).&lt;/P&gt;

&lt;P&gt;There should be no negative effects from this change unless the star will match files you don't want to index. If that's the case you might want to review the &lt;CODE&gt;whitelist&lt;/CODE&gt; and &lt;CODE&gt;blacklist&lt;/CODE&gt; options on your input to fine tune what you capture:&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.1/Admin/Inputsconf#MONITOR:"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.1/Admin/Inputsconf#MONITOR:&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 14:35:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-index-data-from-a-log-file-which-got-generated-when-my/m-p/373291#M67664</guid>
      <dc:creator>jtacy</dc:creator>
      <dc:date>2017-06-28T14:35:53Z</dc:date>
    </item>
  </channel>
</rss>

