<?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 Windows event logs – Define the start time for event collection – do not want current_only OR all history in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-logs-Define-the-start-time-for-event-collection-do/m-p/56162#M10964</link>
    <description>&lt;P&gt;is there anyyway to define at what point in time windows event logs will start being collected by Splunk UF?&lt;/P&gt;

&lt;P&gt;We have [WinEventLog:Application]&lt;BR /&gt;
current_only = 1&lt;BR /&gt;
index= winapp&lt;/P&gt;

&lt;P&gt;The server had an issue and splunk UF was stopped for several hours. &lt;BR /&gt;
How can i get collect those events that were missed when splunk is re started?  'current_only' says "index from the point splunk is started"if i remove the "current_only" splunk will start indexing the entire multi year history of the event log. It has only been enabled for a few months and we do not want the old data. any ideas?&lt;/P&gt;

&lt;P&gt;If i export a .evt file containing only these events and index that, will the splunk see the data in the same format? will all my field extractions etc work? or will it be completely different format? i will still have to modify all saves searches and dashboards to ensure it will include the data which is a pain&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:55:16 GMT</pubDate>
    <dc:creator>r999</dc:creator>
    <dc:date>2020-09-28T12:55:16Z</dc:date>
    <item>
      <title>Windows event logs – Define the start time for event collection – do not want current_only OR all history</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-logs-Define-the-start-time-for-event-collection-do/m-p/56162#M10964</link>
      <description>&lt;P&gt;is there anyyway to define at what point in time windows event logs will start being collected by Splunk UF?&lt;/P&gt;

&lt;P&gt;We have [WinEventLog:Application]&lt;BR /&gt;
current_only = 1&lt;BR /&gt;
index= winapp&lt;/P&gt;

&lt;P&gt;The server had an issue and splunk UF was stopped for several hours. &lt;BR /&gt;
How can i get collect those events that were missed when splunk is re started?  'current_only' says "index from the point splunk is started"if i remove the "current_only" splunk will start indexing the entire multi year history of the event log. It has only been enabled for a few months and we do not want the old data. any ideas?&lt;/P&gt;

&lt;P&gt;If i export a .evt file containing only these events and index that, will the splunk see the data in the same format? will all my field extractions etc work? or will it be completely different format? i will still have to modify all saves searches and dashboards to ensure it will include the data which is a pain&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-event-logs-Define-the-start-time-for-event-collection-do/m-p/56162#M10964</guid>
      <dc:creator>r999</dc:creator>
      <dc:date>2020-09-28T12:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Windows event logs – Define the start time for event collection – do not want current_only OR all history</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-event-logs-Define-the-start-time-for-event-collection-do/m-p/56163#M10965</link>
      <description>&lt;P&gt;No, I don't believe there is such an option. But I don't think that is what you need. Splunk is designed to handle these kinds of interrupts gracefully. According to the docs, &lt;CODE&gt;current_only=1&lt;/CODE&gt; will only play a part the first time Splunk sees the eventlog. &lt;/P&gt;

&lt;P&gt;One would like to think that Splunk will keep track of which events has been read (based on RecordNumber) and not skip those that were created during an outage, unfortunately this does not seem to be the case. When I tested this, there was a gap (i.e. stopping splunkd, generating some events, changing &lt;CODE&gt;current_only&lt;/CODE&gt; to 1, and restarting). Those newly created events were not indexed, so it seems that &lt;CODE&gt;current_only=1&lt;/CODE&gt; affects all restarts of splunkd.&lt;/P&gt;

&lt;P&gt;However, if you set &lt;CODE&gt;current_only=0&lt;/CODE&gt; before you restart, Splunk should pick up the events that were created during the outage, but not more than that. When testing, (stopping splunkd, generating events, changing &lt;CODE&gt;current_only&lt;/CODE&gt; to 0, starting splunkd) Splunk only indexed the events generated during the outage, but it didn't go further back to re-index the whole log, so I still have a gap from the previous test mentioned above.&lt;/P&gt;

&lt;P&gt;These are just my empirical observations, and your mileage may vary (other versions etc) but to me it seems like setting &lt;CODE&gt;current_only=0&lt;/CODE&gt; before you restart will do what you want.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2012 14:51:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-event-logs-Define-the-start-time-for-event-collection-do/m-p/56163#M10965</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-12-07T14:51:12Z</dc:date>
    </item>
  </channel>
</rss>

