-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filtering out windows services #4522
Comments
I think we should lower the log level to debug for |
Setting log level to debug did not affect. It caused to receive extra logs like; Also, there are hundreds of windows services we have to monitor. Setting service_names on each server is not effective. There should be an exclude list imo. |
Don't set this on your end, I will need to lower the level of this log message so it will not appear in the normal output (and hidden unless
I think we should also do this if it is helpful for performance, otherwise the logging ought to be sufficient and avoids the requirement to add new options. Could you enable the
|
Here is the output of internal plugin;
|
1s-3s to gather the services is pretty slow, it would make sense to try to reduce this and it does seem that we could reduce the number of calls we make with an include/exclude list. |
I have reduced the log level of the error message for 1.8. We can still add the exclude option but we will need to be mindful not to list services unless required. |
this solved my issue. |
Relevant telegraf.conf:
[[inputs.win_services]]
System info:
v1.6.2
windows server 2008 r2
Steps to reproduce:
there are some windows services that telegraf does not have read access.
I want to filter out these services. I used tagdrop option with no success.
Currently it thows error log every interval and it causes log file getting bigger.
Expected behavior:
should filter out services don't want to monitor
Actual behavior:
error log;
2018-08-06T09:17:00Z E! Error in plugin [inputs.win_services]: Could not open service 'DcomLaunch': Access is denied.
2018-08-06T09:17:00Z E! Error in plugin [inputs.win_services]: Could not open service 'MSDTC': Access is denied.
Additional info:
[Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered: