You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "J. Bakshi" <jo...@infoservices.in> on 2010/02/04 06:41:43 UTC

[users@httpd] How to collect host specif error log and how to see those from web interface ?

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

<my vhost>

[...]
ErrorLog /srv/www/htdocs/myvhost_dir/error.log
LogLevel error
[...]

</my vhost>

[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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] How to collect host specif error log and how to see those from web interface ?

Posted by "J. Bakshi" <jo...@infoservices.in>.
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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] How to collect host specif error log and how to see those from web interface ?

Posted by "Jeremy R." <je...@novawave.net>.
> 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.

-- 
Jeremy R.
Owner, NovaWave Solutions
http://www.novawave.net/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] How to collect host specif error log and how to see those from web interface ?

Posted by "J. Bakshi" <jo...@infoservices.in>.
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
>>>
>>> <my vhost>
>>>
>>> [...]
>>> ErrorLog /srv/www/htdocs/myvhost_dir/error.log
>>> LogLevel error
>>> [...]
>>>
>>> </my vhost>
>>>       
> 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 <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] How to collect host specif error log and how to see those from web interface ?

Posted by "Jeremy R." <je...@novawave.net>.
>> [1] how can I break the error log as per vhost ?
>> 
>> Is it something like
>> 
>> <my vhost>
>> 
>> [...]
>> ErrorLog /srv/www/htdocs/myvhost_dir/error.log
>> LogLevel error
>> [...]
>> 
>> </my vhost>

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 R.
Owner, NovaWave Solutions
http://www.novawave.net/


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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: [users@httpd] How to collect host specif error log and how to see those from web interface ?

Posted by "J. Bakshi" <jo...@infoservices.in>.
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
>
> <my vhost>
>
> [...]
> ErrorLog /srv/www/htdocs/myvhost_dir/error.log
> LogLevel error
> [...]
>
> </my vhost>
>
> [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 <URL:http://httpd.apache.org/userslist.html> 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