-
Notifications
You must be signed in to change notification settings - Fork 9
added support for logfile-per-domain environments #18
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for your contribution.
What exactly do you mean by that? I would imagine they'd use something like this: LogFormat "%v %h %u [%{%F %T}t.%{usec_frac}t %{%z}t] \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhostsIt does not include the host in the URL, but has a separate field. I don't know off the top of my head whether apachetop supports such a host field, since I have only maintained it and fixed a few bugs. I don't have the code in my head. After goaccess came out, I believe the usefulness of apachetop came to an end. Wouldn't adding support for this make more sense? Although, if hosting providers don't add that field, it won't help. Don't get me wrong, I am more than happy to merge your PR, but I'd still like to understand your use-case a bit better. |
|
No problem, I'm happy to explain. I realize I didn't find the right words initially, so I'll retry. Example for With the LogFormat There's several advantages of this approach.
|
|
Thanks for the clarification. Makes sense then. If they leave out the host field, this is basically the only viable solution. I still have to review the code. Just by looking at it, I am missing some context, e.g. you never defined |
100% true. |
|
I will also have to check the workflow. It seems to me this is now active without being able to turn this off. This could be a problem then, because not all log file names contain the hostname. I am currently busy with a few other things, but I should be able to look into this within the next few days. Gruesse nach Oesterreich! |
|
Sorry, I still haven't got around to it yet, but at one point when I browsed through the changes I noticed that it might be necessary not to resuse |
|
Hi, when I checked the existing code before adding the feature, I had found that somebody had already started the new view. But it was never triggered anywhere to be included in the build. I didn't find that define to be ever activated anywhere. |
Hosting environments often tend to use an individual log file for each domain.
As the domain name isn't included in the URL, the name of the log file is the only clue on which domain a request was served for.
In conjunction with the following command, a large number of log files can be handled by apachetop and the names of the log files can be shown to the user.
ls -t /var/log/apache2/logs/*.log | head -n 2000 | sed -e 's/^/-f /' | xargs -o apachetop