1
response
response
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 #
########################################
<Input wmi>
Module im_wmi
Host 10.x.x.x
Username wmiusername
Password SomePassword
Domain domain.com
ReadFromLast True
</Input>
<Output file>
Module om_file
File "/opt/nxlog/var/windows/" + $AccountName + ".log"
</Output>
<Route wmi_to_file>
Path wmi => file
</Route>
Comments (1)
So it's working. Don't know how and why but I've got logs. Maybe because the system was restarted?