View Full Version : Log viewer request
mmsitech
04-11-2005, 12:01 PM
Is there anyway you can put a log viewer in the DA control panel?
I think a feature like that would go over well. Lots of us non coders may be able to fix problems if we could check the logs... but we can't find them... :-)
So if there was a link in admin panel... you could say.....
view the email log...
Is that possible?
interfasys
04-11-2005, 02:48 PM
I've requested this before and someone created a plugin that works with Linux only.
vandal
04-11-2005, 03:01 PM
this would be nice for sure.
however it is quite easy to check your logs.
here are a few tips:
ssh into your server, su - to root
wanna watch your mail log in real time?
tail -f /var/log/exim/mainlog
(ctrl -c to get out)
same thing for any other log file.
to look a users domain
tail -f /var/log/httpd/domains/domain.com.log
or search for an email address
cat /var/log/exim/mainlog | grep email@domain.com
want to watch your pop3 sessions/connections ?
tail -f /var/log/maillog
Chrysalis
04-12-2005, 06:33 AM
Am I missing something here? DA already has logs for email/apache/directadmin and few other things.
interfasys
04-12-2005, 06:45 AM
For the admin, yes, but not for resellers and users.
Those folks have a need to check various logs from their cp, specially those without SSH access.
Chrysalis
04-12-2005, 10:33 AM
Users have log viewers as well, at least they do on my directadmin.
rldev
04-12-2005, 12:52 PM
There is definitely apache logs from the user cp.
jmstacey
04-12-2005, 10:56 PM
There is also a 3rd party log viewer plugin, although I'm not sure if it implements the same thing for admin level or does have capability for individual reseller and user level logs beyond http.
I would think it would be a simple matter of just parsing the last few bits of the needed logs searching for entries belonging to the username in question.
interfasys
04-13-2005, 05:47 AM
The default DA user log viewer is Apache only and fills the entire page instead of using a nice textarea like in the admin version.
The 3rd party plugin doesn't work on FreeBSD.
Chrysalis
04-13-2005, 07:23 AM
Right I see what you mean now, yeah users currently canno see mail errors, and cgi suexec errors as well as problems caused accessing site via ip/~name
jmstacey
05-21-2005, 04:49 PM
Almost forgot about this thread.
Here's my logviewer implementation for the user level.
http://www.directadmin.com/forum/showthread.php?s=&threadid=8167
Powered by vBulletin™ Version 4.0.4 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.