Nxlog: im_wmi
Tags:
im_wmi
#1
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
```
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
```
#2
yajitux
#1
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
```
So it's working. Don't know how and why but I've got logs. Maybe because the system was restarted?