<?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 Splunk Heavy forwarder is able to connect to windows server via WMI but failed to collect WMI:WinEventLog:Security in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Heavy-forwarder-is-able-to-connect-to-windows-server-via/m-p/420033#M73989</link>
    <description>&lt;P&gt;Windows event from WMI:WinEventLog:System and WMI:WinEventLog:Application is fine. The only problem is failed to collect WMI:WinEventLog:Security,&lt;/P&gt;

&lt;P&gt;As it can collect Application and System Windows event, connection is not a problem. &lt;/P&gt;

&lt;P&gt;How can I debug further on this?&lt;/P&gt;</description>
    <pubDate>Mon, 28 May 2018 09:26:39 GMT</pubDate>
    <dc:creator>daniel_splunk</dc:creator>
    <dc:date>2018-05-28T09:26:39Z</dc:date>
    <item>
      <title>Splunk Heavy forwarder is able to connect to windows server via WMI but failed to collect WMI:WinEventLog:Security</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Heavy-forwarder-is-able-to-connect-to-windows-server-via/m-p/420033#M73989</link>
      <description>&lt;P&gt;Windows event from WMI:WinEventLog:System and WMI:WinEventLog:Application is fine. The only problem is failed to collect WMI:WinEventLog:Security,&lt;/P&gt;

&lt;P&gt;As it can collect Application and System Windows event, connection is not a problem. &lt;/P&gt;

&lt;P&gt;How can I debug further on this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 09:26:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Heavy-forwarder-is-able-to-connect-to-windows-server-via/m-p/420033#M73989</guid>
      <dc:creator>daniel_splunk</dc:creator>
      <dc:date>2018-05-28T09:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Heavy forwarder is able to connect to windows server via WMI but failed to collect WMI:WinEventLog:Security</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Heavy-forwarder-is-able-to-connect-to-windows-server-via/m-p/420034#M73990</link>
      <description>&lt;P&gt;I enabled the following DEBUG for WMI.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/log.cfg
[splunkd]
category.ExecProcessor=DEBUG

$SPLUNK_HOME/etc/log-cmdlog.cfg
category.WMI=DEBUG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then, I got the following from splunkd.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-03-2018 17:03:31.713 +0800 DEBUG ExecProcessor - message from ""E:\Program Files\Splunk\bin\splunk-wmi.exe"" WMI - getEventLogWql: DESC: chk=4294967295, low=110155, hi=4294967295 (10.13.18.59: Security)

01-03-2018 17:03:31.713 +0800 DEBUG ExecProcessor - message from ""E:\Program Files\Splunk\bin\splunk-wmi.exe"" WMI - Event log wql "SELECT Category, CategoryString, ComputerName, EventCode, EventIdentifier, EventType, Logfile, Message, RecordNumber, SourceName, TimeGenerated, TimeWritten, Type, User FROM Win32_NTLogEvent WHERE Logfile = "Security" AND RecordNumber &amp;gt; 110155" (10.13.18.59: Security)

01-03-2018 17:03:31.713 +0800 DEBUG ExecProcessor - message from ""E:\Program Files\Splunk\bin\splunk-wmi.exe"" WMI - Executing query wql="SELECT Category, CategoryString, ComputerName, EventCode, EventIdentifier, EventType, Logfile, Message, RecordNumber, SourceName, TimeGenerated, TimeWritten, Type, User FROM Win32_NTLogEvent WHERE Logfile = "Security" AND RecordNumber &amp;gt; 110155" (10.13.18.59: Security)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the above debug log, the message for Security event shows the rec-id hits the limit of unsigned int type:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;01-03-2018 17:03:31.713 +0800 DEBUG ExecProcessor - message from ""E:\Program Files\Splunk\bin\splunk-wmi.exe"" WMI - getEventLogWql: DESC: chk=4294967295, low=110155, hi=4294967295 (10.13.18.59: Security)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The limit of unsigned int is 4294967295 (0xffffffff).&lt;/P&gt;

&lt;P&gt;Here's a link for the limitation of Microsoft WQL api:&lt;BR /&gt;
&lt;A href="https://social.technet.microsoft.com/Forums/windowsserver/en-US/78e6d555-0f5d-4def-92d5-14d3ad6ee558/eventlog-problems-with-query"&gt;https://social.technet.microsoft.com/Forums/windowsserver/en-US/78e6d555-0f5d-4def-92d5-14d3ad6ee558/eventlog-problems-with-query&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As stated in the link, the rec ids are limited to 32 bit unsigned int. WMI does not work if the rec id goes beyond that point.&lt;/P&gt;

&lt;P&gt;You can try to configure event logs to smaller sizes so that the logs rotate before rec id hitting the limit.&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 09:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Heavy-forwarder-is-able-to-connect-to-windows-server-via/m-p/420034#M73990</guid>
      <dc:creator>daniel_splunk</dc:creator>
      <dc:date>2018-05-28T09:29:16Z</dc:date>
    </item>
  </channel>
</rss>

