<?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 get last 1 week or current logs for inputs.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575030#M101632</link>
    <description>&lt;P&gt;Yep.&lt;/P&gt;&lt;PRE&gt;current_only = &amp;lt;boolean&amp;gt;
* Whether or not to acquire only events that arrive while the instance is
  running.
* If you set this setting to 1, the input only acquires events that arrive
  while the instance runs and the input is enabled. The input does not read
  data which was stored in the Windows Event Log while the instance was not
  running. This means that there will be gaps in the data if you restart the
  instance or experiences downtime.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 12:36:10 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-11-16T12:36:10Z</dc:date>
    <item>
      <title>How to get last 1 week or current logs for inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575016#M101625</link>
      <description>&lt;P&gt;Greetings,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have set the following configuration stanza on my inputs.conf but I am getting failures for using ignoreOlderThan key because it is a Windows related monitor path and apparently is not accepted.&lt;/P&gt;&lt;P&gt;[WinEventLog://Microsoft-Windows-DNSServer/Audit]&lt;BR /&gt;sourcetype = MSAD:NT6:DNS&lt;BR /&gt;disabled = 0&lt;BR /&gt;whitelist1 = EventCode="537"&lt;BR /&gt;ignoreOlderThan = 7d&lt;BR /&gt;index = test&lt;/P&gt;&lt;P&gt;I only want the latest&amp;nbsp;amount x days of logs to be indexed instead of going for the oldest logs in the hosts. Is this possible? Indexing of current logs after server class reload is also an option but haven't found out how.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 11:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575016#M101625</guid>
      <dc:creator>NightShark</dc:creator>
      <dc:date>2021-11-16T11:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last 1 week or current logs for inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575019#M101626</link>
      <description>&lt;P&gt;Unfortunately, as you said - IgnoreOlderThan is an option only for monitor:// type inputs (file inputs).&lt;/P&gt;&lt;P&gt;Windows event logs are ingested by modular input (external tool) and are limited only to options provided by this tool. So you can either ingest events from the whole log or set current_only and make the forwarder wait for new events after restart. There is no option for a given "backlog" to read. If you believe it would be useful you can propose idea for such functionality at &lt;A href="https://ideas.splunk.com/" target="_blank"&gt;https://ideas.splunk.com/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 11:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575019#M101626</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-16T11:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last 1 week or current logs for inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575021#M101627</link>
      <description>&lt;P&gt;Thank you for the response,&lt;/P&gt;&lt;P&gt;So from my understanding setting&amp;nbsp;&lt;SPAN&gt;current_only only indexes logs after restarting the universal forwarder and nothing before, correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 11:41:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575021#M101627</guid>
      <dc:creator>NightShark</dc:creator>
      <dc:date>2021-11-16T11:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last 1 week or current logs for inputs.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575030#M101632</link>
      <description>&lt;P&gt;Yep.&lt;/P&gt;&lt;PRE&gt;current_only = &amp;lt;boolean&amp;gt;
* Whether or not to acquire only events that arrive while the instance is
  running.
* If you set this setting to 1, the input only acquires events that arrive
  while the instance runs and the input is enabled. The input does not read
  data which was stored in the Windows Event Log while the instance was not
  running. This means that there will be gaps in the data if you restart the
  instance or experiences downtime.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 12:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-last-1-week-or-current-logs-for-inputs-conf/m-p/575030#M101632</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-16T12:36:10Z</dc:date>
    </item>
  </channel>
</rss>

