<?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: WinEventLog inputs:  Why does current_only=1 skip server reboot events? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210562#M41485</link>
    <description>&lt;P&gt;Yes, I believe that is as intended. From the spec:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;current_only = [0|1]
* If set to 1, the input will only acquire events that arrive while Splunk is
  running and the input is enabled.  Data which was stored in the Windows Event
  Log while splunk was not running will not be read.
  This means that there will be gaps in data if splunk is restarted, or
  experiences downtime.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 03 Aug 2016 14:27:39 GMT</pubDate>
    <dc:creator>twinspop</dc:creator>
    <dc:date>2016-08-03T14:27:39Z</dc:date>
    <item>
      <title>WinEventLog inputs:  Why does current_only=1 skip server reboot events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210561#M41484</link>
      <description>&lt;P&gt;Here is my &lt;CODE&gt;inputs.conf&lt;/CODE&gt; stanza from Splunk_TA_windows&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Security]
disabled = 0
start_from = oldest
current_only = 1
evt_resolve_ad_obj = 1
checkpointInterval = 5
blacklist = 4656,4658,4663,5156
index = wineventlog
renderXml=false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When we rolled out Splunk we set &lt;CODE&gt;current_only=1&lt;/CODE&gt;, because we didn't want all of the old events ingested from all of our servers.  This morning I was looking for some server reboot information and went looking for event code 4608 ("Windows is starting up"), but it was nowhere in Splunk for any server ever.  I logged on to a particular server which I knew had been rebooted today and found 4608 was logged on the server.&lt;/P&gt;

&lt;P&gt;So, it appears that &lt;CODE&gt;current_only=1&lt;/CODE&gt; applies to every time Splunk starts, not just the first time like I thought.  That means that during a server reboot we do not collect any of the server events that occur before the Spunk service comes back online.  I found another post where someone else experienced a similar thing.&lt;/P&gt;

&lt;P&gt;I changed the setting from &lt;CODE&gt;1&lt;/CODE&gt; to &lt;CODE&gt;0&lt;/CODE&gt; on a lightly used server to test this theory and rebooted it.  This time 4608 was collected and I think (famous last words) that Splunk only ingested events in the gap.&lt;/P&gt;

&lt;P&gt;Is that the actual way in which the parameter is intended to work?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210561#M41484</guid>
      <dc:creator>lycollicott</dc:creator>
      <dc:date>2020-09-29T10:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog inputs:  Why does current_only=1 skip server reboot events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210562#M41485</link>
      <description>&lt;P&gt;Yes, I believe that is as intended. From the spec:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;current_only = [0|1]
* If set to 1, the input will only acquire events that arrive while Splunk is
  running and the input is enabled.  Data which was stored in the Windows Event
  Log while splunk was not running will not be read.
  This means that there will be gaps in data if splunk is restarted, or
  experiences downtime.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210562#M41485</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-08-03T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog inputs:  Why does current_only=1 skip server reboot events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210563#M41486</link>
      <description>&lt;P&gt;LOL, how did I miss that in everything I read this morning?  I think I better go to lunch before I hurt myself!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:46:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210563#M41486</guid>
      <dc:creator>lycollicott</dc:creator>
      <dc:date>2016-08-03T14:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: WinEventLog inputs:  Why does current_only=1 skip server reboot events?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210564#M41487</link>
      <description>&lt;P&gt;hah, we've all been there!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 14:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/WinEventLog-inputs-Why-does-current-only-1-skip-server-reboot/m-p/210564#M41487</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-08-03T14:50:42Z</dc:date>
    </item>
  </channel>
</rss>

