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
Avoid "GET /server-status?auto HTTP/1.1" in apache log files #5385
Comments
Hi @Vartkat Apache and web_log aren't connected, web_log reads all new lines.
what do you mean by stop? If there is no new log lines web_log reports zero values, so it is not stop, but empty charts. If you want to exclude netdata/collectors/python.d.plugin/web_log/web_log.conf Lines 72 to 74 in 041725f
filter:
exclude: 'GET /server-status?' And, ofc, you can decrease apache module update interval if you don't need per second monitoring. |
Yes. You need mod_setenvif. The idea is to set internal env variable and then exclude all requests with that var. Example. |
Thanks ilyam8 you point me in the right direction. I succeeded in avoiding server status to be logged by apache by making my /etc/apache2/conf-available/other-vhosts-access-log.conf
the log file stopped logging server-status every second, but the result is I got a functional apache chart but the web_log chart is flat. Weird part is I have no /etc/netdata/python.d/web_log.conf file, so I don't know if I have to build one from scratch or if there's something wrong with metadata. I updated it, no charge, no web_log.conf file. |
run
|
$ sudo find / -name python.d.plugin gives me
sudo su -s /bin/bash netdata /usr/libexec/netdata/plugins.d/python.d.plugin web_log debug
fifth line confirms there's no web_log file. |
use
|
I did use edit-config (which for me is in /etc/netdata). Perhaps that's because I installed as root (I don't remember) |
Nice! I am closing the issue, if you still have some questions feel free to ask |
Nice solution, in my case I went for a slight variation:
|
This issue has been mentioned on the Netdata Community Forums. There might be relevant details there: https://community.netdata.cloud/t/apache-last-collected-secs-errors-constantly/910/25 |
Question summary
Avoid Apache log overload
OS / Environment
Ubuntu 16.04.5 LTS
Component Name
Apache and Web_Log
Expected results
I'm running Netdata along with Virtualmin.
Virtualmin is managing some virtual hosts, each hosts has its own log in /var/log/virtuamin/SomeHostNamelog.
The apache netadata module is filling up the /var/log/apache2/other_vhosts_access.log file with
lines (one per second).
I read a previous question and the answer was suggesting disabling the apache module in /etc/netdata/python.d.conf file which I did. As soon as I do that the log file filling stops but also does the web_log charts.
So the question is, how to avoid these lines in logs while still having apache or web_log monitoring. Is there any way to tell Apache to ignore requests coming from netdata. Or the other way around, a way to tell netdata no to fill the log files ?
The problem is I encountered a intrusion attempt and was looking for details in the logs.
As the logs were filled with these lines, the time of the attempts was no more there (too far in time, log files were rotated and even deleted).
Thanks for your help
The text was updated successfully, but these errors were encountered: