|
Hi,
I am trying to send all my apache logs to syslog-ng(on remote machine) which in turn writes to a file.
so I configure syslog-ng this way
source s_apache { unix-stream("/var/log/apache_log.socket" max-connections(512) keep-alive(yes)); }; filter f_...
Started by uzumaki naruto on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want all log on syslog-ng, you must configure also access logs with CustomLog those, it worked !
Or you can just put these settings in < virtualhost > if you want to log only.
log on apache.
|
|
YQL SHOW TABLES has CSV and HTML. What about a table for Apache access logs?
Started by C.W.Holeman II on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
There is now a regex table a regex for ... .
Thanks for the suggestion.
Apache logs actually have a customizable format so I'm assuming that you mean the common log format reader that you could then apply to apache logs.
|
|
How can I rotate the Apache Access and Error logs on a Window 2000 box?
I include my batch file below as an answer.
Is there a way of doing this directly via the Apache config file? I'm currently using the following customlog command to generate daily...
Started by alimack on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
To the apache log file directory
cd /D "D:\Program Files\Apache Software Foundation\Apache2.2\logs_LOGS = "c:\path\to\site\logs" const PHP_LOG = "c:\path\to\phplog" const APACHE_LOGS = "C....
|
Ask your Facebook Friends
|
I was noticing my disk space disappearing faster than expected, and finally narrowed it down to a rewrite.log file that was 4GB in size!
Is there a way to rotate the various apache logs (rewrite, error, access, etc.) on a win32 PC so that only the most...
Started by Jason S on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
See....
It runs as a server process so it won't spawn multiple instances for each virtual server .
DisappearingYou could use mod_log_rotate .
The destination log file is specified by RewriteLog .
Apache indeed can log rewrites.
|
|
I have a setup where heartbeat is grabbing a website every couple seconds. I would like to filter out these entries from the Access Logs.
Are there any apache directive or modules that will make so I can keep these entries from ever being written to the...
Started by Kyle Brandt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
I see is:
"Piped log processes are spawned by the parent Apache httpd process, and inherit the userid anything from 127.0.0.1 SetEnvIf Remote_Addr "127\.0\.0\.1" nolog CustomLog logs/access_log common envLooks like I might....
|
|
So looking over the logs the average response time is around 20-30ms but the load on the machine is 20+ and using an external test things seem to take over a second to load. I can't imagine this is all network latency so I'm curious at what point the ...
Started by Ryan Detzel on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at serverfault):
So yes, once Apache actuallyI'm not certain if this Apache installation is running on a Windows server but if so you could use the problem may lie.....
To apache.wirebrain.de/lxr/source/modules/loggers/mod_log_config.c#623?v=2.2.14).
|
|
We're running Apache 2.2.9 (Win32) with a few virtual hosts configured on the one server. Each has it's own ErrorLog and CustomLog settings which are in the format of "logs/[domain name]-error.log" and "logs/[domain name]-access.log". Unfortunately these...
Started by Pauk on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
This seems like an Apache specific solution, maybeWhat you're looking for is the rotatelogs program that comes with apache http://httpd.apache.org/docs/2.0/programs/rotatelogs.....
Revelant links about log rotation tools for windows.
|
|
We rotate and compress our Apache logs each day but it's become apparent that this isn't frequently enough. An uncompressed log is about 6G, which is getting close to filling our log partition (yep, we'll make it bigger in the future!) as well as taking...
Started by markdrayton on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
As in, with non-trivial....
Then you configure Apache like so:
Customlog "|/usr/local/bin/gzip_log.sh /var/log/apache/access.log.
You could.
You to specify a command that the logs are piped into instead of the usual log file.
|
|
I've just noticed our website's contact form is broken. I don't know how long it has been so and I might have missed important emails. Would it be possible to recover POST data from Apache's logs ?
EDIT : False alarm... My Google Apps account was messed...
Answer Snippets (Read the full thread at serverfault):
Otherwise the log files.
As far as I know, only GET querystrings are included in the log files.
|
|
How do I configure Apache 2.0's log format so that it timestamps each request log with millisecond (or microsecond) accuracy? The docs say that timestamps are specified in strftime format and strftime doesn't seem to handle anyting smaller than seconds...
Started by Ben Williams on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
On Unix.
Apache uses apr_strftime .
I don't think it's possible (without rewriting APR, atleast).
|