Getting Data In

While setting up a Windows Eventlog collection input, why do I get an HTTP 500 - Access is denied error?

maverick
Splunk Employee
Splunk Employee

I want to gather and index the security eventtlogs on a remote Windows server.

While trying to add a new Windows Eventlog collection input within Splunk, I am getting the following error:

Failed to fetch data:[HTTP 500] Splunkd internal error;[{'text':"In handler 'win-wmi-enum-eventlogs': Error accessing MWI-0x7ff8fffb - Access is denied.. Make sure WMI is configured correctly.",'code':None, 'type': 'ERROR'}]

FYI, the user account that Splunk is running as also exists on the remote Windows machine and has full rights to administer both servers.

1 Solution

cervelli
Splunk Employee
Splunk Employee

The error is, alas, precise - we have attempted, and been explicitly denied, access to the logs.

This can happen for the following reasons :

  • you're not in a domain (see below)
  • Splunkd service is running with Local System permissions
  • Splunkd is running as a domain account, but cannot do at least one of these:
    • log on as a service on the remote box
    • bypass the firewall on the remote box, specifically IPSEC challenges
    • use Remote Launch and Remote Activation DCOM rights
    • Profile System Performance and Access this Computer from the Network GPO rights
  • The RPC service is running, but DCOM and/or WMI services are not

Whew. That's a lot of reasons, and there can be even more edge cases. For testing, try a domain admin account for the splunkd service login to verify connectivity is possible, then go from there to improve security. See:

http://docs.splunk.com/Documentation/Splunk/5.0/Data/MonitorWMIdata or http://msdn.microsoft.com/en-us/library/aa394603%28VS.85%29.aspx

RE: Domains. If you are NOT in a domain, it is possible to have identically named accounts with exactly the same login name and password who are both Local Administrators on both machines work with WMI. The polling Splunkd needs to have this account as it's service login.

Note this will NOT work if either machine is actually in a domain; both must be stand alone.

View solution in original post

jonm1010
New Member

Ok next question, does splunk need to be installed on each machine I want read the logs from?

0 Karma

cervelli
Splunk Employee
Splunk Employee

The error is, alas, precise - we have attempted, and been explicitly denied, access to the logs.

This can happen for the following reasons :

  • you're not in a domain (see below)
  • Splunkd service is running with Local System permissions
  • Splunkd is running as a domain account, but cannot do at least one of these:
    • log on as a service on the remote box
    • bypass the firewall on the remote box, specifically IPSEC challenges
    • use Remote Launch and Remote Activation DCOM rights
    • Profile System Performance and Access this Computer from the Network GPO rights
  • The RPC service is running, but DCOM and/or WMI services are not

Whew. That's a lot of reasons, and there can be even more edge cases. For testing, try a domain admin account for the splunkd service login to verify connectivity is possible, then go from there to improve security. See:

http://docs.splunk.com/Documentation/Splunk/5.0/Data/MonitorWMIdata or http://msdn.microsoft.com/en-us/library/aa394603%28VS.85%29.aspx

RE: Domains. If you are NOT in a domain, it is possible to have identically named accounts with exactly the same login name and password who are both Local Administrators on both machines work with WMI. The polling Splunkd needs to have this account as it's service login.

Note this will NOT work if either machine is actually in a domain; both must be stand alone.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...