View Full Version : RAW Access Logs
xcensus
09-10-2003, 10:34 AM
Hi,
Where can my clients download their RAW Access logs from ?
S2S-Robert
09-10-2003, 01:46 PM
You can download access logs in your control panel
http://<IP>:2222/CMD_SHOW_LOG?domain=<DOMAIN>&type=log
I have a question regarding e-mails actually, in the ftp there is a link that says "mail" and you get your domain names. When you try to enter those directories it says "550 s2swebhosting.com: No such file or directory". I've tried it on a customer login, and it says the same.
I'd like to be able to see in the mail directory and since that feature is there :P
DirectAdmin Support
09-10-2003, 02:58 PM
Hello,
Ftp and the filemanager will chroot you to your home directory, so this makes any reference to / refer to /home/username. When you try to go into that domain you are actually linking to:
/home/username/var/spool/virtual/domain.com
where the true path to the mail is
/var/spool/virtual/domain.com
The mail is in the spool directory because that is where vm-pop3d needs it to be.
John
S2S-Robert
09-10-2003, 03:58 PM
Ok, but then why add the link? If the link is not accessible you should just remove it then right? No point in having a link that's not working...
DirectAdmin Support
09-10-2003, 05:11 PM
Well most people don't check their email through ftp :D
It was added add for pine, as the mail folder is created for pine's sent emails and things like that.
John
S2S-Robert
09-11-2003, 03:51 AM
Originally posted by DirectAdmin Support
Well most people don't check their email through ftp :D
It was added add for pine, as the mail folder is created for pine's sent emails and things like that.
John I don't check my e-mail via ftp, but it would have been a workaround in order to see the size of the mailboxes as requested in another topic ;)
xcensus
09-11-2003, 08:47 AM
is it not just possible to actually download the raw logs rather than just view them ?
DirectAdmin Support
09-11-2003, 02:50 PM
Hello,
What DirectAdmin generates *is* the raw logs, just reading them and passing them through. You can access from the control Panel from:
User Panel -> Stats/Logs -> "Apache Usage Log" or "Apache Error Log"
Those links go right to the logs that are currently being used.
John
xcensus
09-11-2003, 11:19 PM
Yep I know that shows them nicely, but how do you actually download them ?
DirectAdmin Support
09-12-2003, 12:23 AM
Hello,
Try:
File -> Save as...
in your webbrowser :)
John
thevillageinn
10-14-2003, 07:59 PM
more than just download the logs, I would like to be able to reference them in a script with a path, something like: /home/username/domain.com/logs
is this possible, or do I have to log into the control panel, download them and upload them again to the path of my choosing?
DirectAdmin Support
10-14-2003, 11:35 PM
Hello,
The apache logs are stored in:
/var/log/httpd/domains/domain.com.log
/var/log/httpd/domains/domain.com.error.log
You *might* have permission to view them (no gurantees), but that would be the easiest solution.
John
thevillageinn
10-15-2003, 09:18 PM
thanks for the info.
I'm doubting that path would be available, but I'll inquire with my host to see. maybe some sort of link could be made that the users would be able to access.
hostpc.com
10-21-2003, 10:22 AM
awstats, webtrends, etc - all need to access the files directly on the server, via URL or /path/to/logs/ ...
Any planned updates on this?
DirectAdmin Support
10-21-2003, 10:48 AM
Hello,
You can always just make the paths world readable (if you can justify your logs being readable by anyone).. but normally stats programs can be run as root, so permissions don't really matter.
John
ClayRabbit
02-29-2004, 07:15 AM
Log access with DirectAdmin becomes completely uncomfortable for popular sites, because it's really hard do download 30-100 Megs of access log.
And often when you got some error - you need to look into last entries of apache error log to figure out why. Every time you need that - you must reload WHOLE error log! That's horrible when log size more than few megs!
Log access in CPanel is much more comfortable.
1) It's provides access to GZIPPED access log instead of RAW UNCOMPRESSED log.
2) It's displaying only 300 last entries of error log - thats completely enough for some debuging work!
DA must think about that in my opinion. =)
I think users will be very pleased to see links named "Download gzipped access log", "Download gzipped error log", "Last 300 entries of access log" and "Last 300 entries of error log" at CMD_USER_STATS page :)
DirectAdmin Support
02-29-2004, 01:23 PM
Hello,
I've added a few more links for the next release. It's a homemade implementation of "tail" where you can specify how many lines you want to see at the end of the file. In the skins we have the last 10 lines, and last 100 lines. Much quicker :)
http://www.directadmin.com/features.php?id=321
John
ProWebUK
02-29-2004, 02:26 PM
Originally posted by ClayRabbit
Log access in CPanel is much more comfortable.
1) It's provides access to GZIPPED access log instead of RAW UNCOMPRESSED log.
2) It's displaying only 300 last entries of error log - thats completely enough for some debuging work!
Compression, rotate file size limit or duration can all be configured with logrotate - external of DA... cpanel is nothing special there..
Chris
ClayRabbit
02-29-2004, 03:00 PM
That's great, John.
Hope, you don't forget to add such links for subdomains too.
But what you think about compression when user wants to download whole log file?
ProWebUK, i'm affraid logrotate has no relation to that
issue...
DirectAdmin Support
03-01-2004, 01:04 PM
Ah yes.. subdomains, thanks for the reminder ;) (It would still work if you manually enter the lines).
Compression is a whole other ball game... I'll look into it. There are the backed up ones, but they're generally a day old, at least.
John
ProWebUK
03-01-2004, 04:35 PM
Originally posted by DirectAdmin Support
but they're generally a day old, at least.
Why not get some logrotate usage? have a directory:
/etc/logrotate.d/virtual/|site|
to configure log rotation for each site... something else that would be nice is live updates on the downloads... checking the logs for problems that occured moments ago can be difficult when the logs dont get updated for another 24 hours... it gets more confusing when the customer is using another timezone!
Chris
(Definitely think logrotate use is worthy... it would be dead easy to change all sites / individual configs with root access also)
DirectAdmin Support
03-02-2004, 10:35 AM
Hello,
Logs are already rotated, but it's currently based on size.
"Live" logs can be downloaded already... User Panel -> Account Stats / Logs -> Apache Error Log
been there forever.. Backed up logs and live logs are stored in different places, but are both accessible. We just added the ability to view the last 10 or 100 lines of the live logs (number can be changed by editing the skin).
John
ProWebUK
03-02-2004, 12:52 PM
Originally posted by DirectAdmin Support
Logs are already rotated, but it's currently based on size.
Is it done manaully though, or using logrotate? (logrotate has those features.... so its possible either way)
And I thought the logs backup from within the panel were backed up logs? .. ill assume thats something else.......... or i'm just missing something, one or the other eh :D I have always accessed logs through shell myself, which I guess allows me to use that as an excuse ;)
Chris
DirectAdmin Support
03-03-2004, 11:11 AM
Hello,
DA does the rotation check with the tally. The size is set in the Admin Panel -> Admin Settings.
Both backed up logs and realtime logs are available through DA. The backed up logs are just accessed via the Filemanager/ssh in /home/username/domains/domain.com/logs, whereas the live logs can be acccess through DA (accounts stats/logs), or /var/log/httpd/domains/domain.com*.log (if you have read permissions).
John
brundle
08-31-2004, 03:17 PM
If the /home/username/domains/domain.com/logs folder is empty for all sites on a server does that mean that log rotation is not working?
Is it something that has to be turned on?
interfasys
09-07-2004, 10:39 AM
I think it means that your logs are not big enough to be compressed.
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.