mirekys / collectd-apachelog Goto Github PK
View Code? Open in Web Editor NEWCollectd plugin for obtaining request metrics from Apache's access log
License: MIT License
Collectd plugin for obtaining request metrics from Apache's access log
License: MIT License
I tried to support more than one vhost log but it only seems to accept the last one:
Import apachelog
<Module apachelog>
Name "site1_requests"
Interval 1
AccessLog "/var/log/apache2/site1-access.log"
AccessLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
</Module>
<Module apachelog>
Name "site2_requests"
Interval 1
AccessLog "/var/log/apache2/site2-access.log"
AccessLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
</Module>
README.md says it's in µs, but
collectd-apachelog/apachelog.py
Line 206 in e615d31
This needs an update to python3 to work with modern collectd.
So, I'm using apachelog to parse logs from both apache http and apache tomcat (works ok, very similar log format). At 00:00 tonight it stopped reading the tomcat log beacuse it was rotated, but the httpd log wasn't rotated so I don't know if it will fail there too.
Is there a way to make it survive logrotates?
I'm getting below error and notice in collectd log file. Kindly suggest.
[error] Unhandled python exception in read callback: LineDoesntMatchException: LineDoesntMatchException(log_line="LOGS xxx xxx xxx xxx")
[notice] read-function of plugin `python.apachelog' failed. Will suspend it for 640.000 seconds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.