How to collect host specif error log and how to see those from webinterface ?
How to collect host specif error log and how to see those from webinterface ?
am 04.02.2010 06:41:43 von joydeep
Dear list,
I already have vlogger installed in my server which breaks the apache
access log as per vhost and awstas is working well. Hope you all admit
that the main requirement is obviously error log. vlogger does not break
the error log as it does with access log. I have two specif questions here.
[1] how can I break the error log as per vhost ?
Is it something like
[...]
ErrorLog /srv/www/htdocs/myvhost_dir/error.log
LogLevel error
[...]
[2] Is there any web based tool which can show the error logs in real
time ? any chance by awstats ?
Thanks
--
à¦à§à¦¦à§à¦ª বà¦à§à¦¸à§
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to collect host specif error log and how tosee those from web interface ?
am 08.02.2010 05:11:33 von joydeep
Any clue please ?
On 02/04/2010 11:11 AM, J. Bakshi wrote:
> Dear list,
>
> I already have vlogger installed in my server which breaks the apache
> access log as per vhost and awstas is working well. Hope you all admit
> that the main requirement is obviously error log. vlogger does not break
> the error log as it does with access log. I have two specif questions here.
>
> [1] how can I break the error log as per vhost ?
>
> Is it something like
>
>
>
> [...]
> ErrorLog /srv/www/htdocs/myvhost_dir/error.log
> LogLevel error
> [...]
>
>
>
> [2] Is there any web based tool which can show the error logs in real
> time ? any chance by awstats ?
>
> Thanks
>
--
à¦à§à¦¦à§à¦ª বà¦à§à¦¸à§
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to collect host specif error log and how to see those from web interface ?
am 08.02.2010 05:15:46 von Jeremy
>> [1] how can I break the error log as per vhost ?
>>=20
>> Is it something like
>>=20
>>
>>=20
>> [...]
>> ErrorLog /srv/www/htdocs/myvhost_dir/error.log
>> LogLevel error
>> [...]
>>=20
>>
Yes, it's exactly that. Just use the ErrorLog directive within your =
vhost. (P.S. Putting your error log inside your DocumentRoot is probably =
not a good idea as you generally don't want that to be visible to the =
world. At the very least, configure it not to be accessible using "Deny =
from all" or similar.
>>=20
>> [2] Is there any web based tool which can show the error logs in real
>> time ? any chance by awstats ?
I'm not aware of one off the top of my head, but if you have shell =
access, this will do it:
tail -f /path/to/error.log
--=20
Jeremy R.
Owner, NovaWave Solutions
http://www.novawave.net/
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to collect host specif error log and how tosee those from web interface ?
am 08.02.2010 05:22:09 von joydeep
On 02/08/2010 09:45 AM, Jeremy R. wrote:
>>> [1] how can I break the error log as per vhost ?
>>>
>>> Is it something like
>>>
>>>
>>>
>>> [...]
>>> ErrorLog /srv/www/htdocs/myvhost_dir/error.log
>>> LogLevel error
>>> [...]
>>>
>>>
>>>
> Yes, it's exactly that. Just use the ErrorLog directive within your vhost. (P.S. Putting your error log inside your DocumentRoot is probably not a good idea as you generally don't want that to be visible to the world. At the very least, configure it not to be accessible using "Deny from all" or similar.
>
>
>>> [2] Is there any web based tool which can show the error logs in real
>>> time ? any chance by awstats ?
>>>
> I'm not aware of one off the top of my head, but if you have shell access, this will do it:
>
> tail -f /path/to/error.log
>
>
Jeremy thanks for your response.
Actually I am interested to break the error log too with vlogger. But it
seems there is no option to do that. Regarding error log contents, I do
have shell access, but it would be nice to provide a web interface so
that the developer can see the errors at least.
--
à¦à§à¦¦à§à¦ª বà¦à§à¦¸à§
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to collect host specif error log and how to see those from web interface ?
am 08.02.2010 05:31:01 von Jeremy
> Actually I am interested to break the error log too with vlogger. But =
it
> seems there is no option to do that.
Works the same way as the access log. I don't know much about vlogger =
specifically, but it appears that it accepts log entries over stdin.
In your vhost config:
ErrorLog "| /path/to/vlogger -s error.log /path/to/logs"
Or something along those lines.
> Regarding error log contents, I do
> have shell access, but it would be nice to provide a web interface so
> that the developer can see the errors at least.
I don't know of one specifically, though it wouldn't be difficult to =
create such an interface (by watching log files or receiving entries =
directly as described above, and then pushing them to the user with AJAX =
or something).
Of course, having your developers do development locally (where they =
have access to the error log) and then pushing working versions to the =
production server is probably not a bad idea, and would minimize the =
amount of access they need to production logs.
--=20
Jeremy R.
Owner, NovaWave Solutions
http://www.novawave.net/
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: How to collect host specif error log and how tosee those from web interface ?
am 08.02.2010 05:41:21 von joydeep
On 02/08/2010 10:01 AM, Jeremy R. wrote:
>
>> Actually I am interested to break the error log too with vlogger. But it
>> seems there is no option to do that.
>>
> Works the same way as the access log. I don't know much about vlogger specifically, but it appears that it accepts log entries over stdin.
>
> In your vhost config:
>
> ErrorLog "| /path/to/vlogger -s error.log /path/to/logs"
>
> Or something along those lines.
>
Well, I also tried with the same but it didn't work. After flipping the
manual I have found
[.......]
Errorlog mode is used when running with an Apache errorlog. In this mode,
virtualhost parsing is disabled, and a single file is written in LOGDIR
using the TEMPLATE (%m%d%Y-error.log is default for -e). When running with
-r, the template becomes %m%d%Y-%T-xxx.log. SIZE is given in bytes.
[....]
--
à¦à§à¦¦à§à¦ª বà¦à§à¦¸à§
------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org