Nxlog: im_wmi

View thread

yajitux
I'm trying to configure Windows Management Instrumentation (im_wmi) for a host on a different subnet. I'm getting an error:

chown: cannot access ‘wmiusername:nxlog’: No such file or directory. where am I going wrong? My config is as below:

```
########################################
User nxlog
Group nxlog

LogFile /opt/nxlog/var/log/nxlog/nxlog.log
LogLevel DEBUG


########################################
# Inputs #
########################################


Module im_wmi
Host 10.x.x.x
Username wmiusername
Password SomePassword
Domain domain.com
ReadFromLast True



Module om_file
File "/opt/nxlog/var/windows/" + $AccountName + ".log"



Path wmi => file

```