How to dl raw file for more than a single day?

x_789

Member
Jan 15, 2003
9
0
151
want a weekly or monthly log file to download so I can run my log analyser on the file to get the data I care about. How do I do this? I have looked in every folder hidden and not via ftp and cannot see where the logs are at so I need to know if there is a way with cpanel. Thanks. X
 

x_789

Member
Jan 15, 2003
9
0
151
Thanks mike Well I assume I dont have access then to this home dir/ does that take root access? Cause I have no access via file manager or ftp above these directories

public_ftp 644
public_html 755

My old site used ensim a pos in my opion anyway I had my logs in the /var/log/httpd directory and each day the server mad a daily file, and it added to a weekly file and kept 5 weeks of logs and I could dl each week and run my reports that way. But with this raw log file it seems all I can get is a daily file and there is no way I can dl every file every day. Thats why I wanted to know if there was a way to make it give me a weeks worth or a months worht of data. I know its somewhere becasue the built in analyser shows monthly stats.



here is a view of the access I have http://66.246.37.222:2082/frontend/Xskin/files/index.html user and password is demo/demo ....X
 

MikeMc

Well-Known Member
May 8, 2002
161
0
316
Yes the /home/domlogs requires root access. But you can ask from your host to setup a cron job (or a method that they will think right) so your logs get moved to a directory that you want and you have access.

Regards
Mike
 

MikeMc

Well-Known Member
May 8, 2002
161
0
316
the logs file is a unique file for a domain and in it get added everything for the running month. So there is not a daily version or weekly version. It's the same file (incremental logging). This files get cleaned up at the end of the month (or even not if your host has selected to not get deleted)

Oops, I had forgot of that...in your cpanel should be an option to download your logs!
 

x_789

Member
Jan 15, 2003
9
0
151
Thats the problem mike when I hit dl raw log file I get a .gzip file for the previous day only. even if it gave me everything from the start of the month that would be fine with me. I just dont know of a way to get the raw log file button in cpanel to give me anything other than the previous day.
 

MikeMc

Well-Known Member
May 8, 2002
161
0
316
In that case I think that only your host can help you, I think that they can do this favour to you and provide you a copy of your logs every time you request it, or setup an automatic procedure that will copy your logs to a directory that you have access.
 

x_789

Member
Jan 15, 2003
9
0
151
Ok this may be a stupid question but I don't know.

Is ssh/telent access would that give me access to the root? is shell the same as root? Thanks X
 

MikeMc

Well-Known Member
May 8, 2002
161
0
316
There is no stupid question.

If the server is yours ssh (don't use telnet) will allow to have access to the root directory and have root priviledges if you login as root (or as a user and then use the SU command).

In case you are hosted by someone there is no chance to have root access (it's only for the server's administrator). But using ssh(if they give you ssh access, not always happen) you can access only your own files (not root directory).
 

x_789

Member
Jan 15, 2003
9
0
151
So my only hope I have is to get root access so I can see folder above what I listed earlier. Because they say cron jobs are not covered in their support package. X
 

MikeMc

Well-Known Member
May 8, 2002
161
0
316
There is no chance to give you root access. You have to forget about it.

About the cron, don't ask them to allow you cron jobs, ask them to make you a favour and setup for you a mechanism that will copy your full logs to a directory that you can access via ftp and so you'll be able to download them.
 

x_789

Member
Jan 15, 2003
9
0
151
well my old host when I would access them I had access to lots of folder above my http folder so was this root access?
Here is what I had previously
Then I would go into var/log/httpd and thats where my log files would be.
OLD HOST BELOW
bin 4.00 KB root
dev 4.00 KB root
etc 4.00 KB root
home 4.00 KB admin
lib 4.00 KB root
sbin 4.00 KB root
tmp 4.00 KB admin
usr 4.00 KB root
var 4.00 KB root

NEW HOST
etc 755
mail 770
public_ftp 644
public_html 755
tmp 700
www


Mike I really appricate all the help here. I know this has gone off topic but I used NT servers till just recently then I swithced to apache so this is all new to me. Not to mention I am on my second host in a month becuase the first one was a bunch of jerks. X
 

MikeMc

Well-Known Member
May 8, 2002
161
0
316
Your old host was making an error giving you access to all these folders. It wasn't root access but since you could browse and/or manipulate files outside of your directories you could harm other users too and the whole system.

Your new host is doing well to limit your access to these folders (having in mind the security), but this way you can't download your logs. That's why I told you to ask them to make you a favour and create the mechanism that I've described in my previous post.

I'm not an expert myself (other people help me when I can't resolve an issue, I manage a lot by myself but not all, I leave the hard parts for others) but I think that this is the situation.
 

MikeMc

Well-Known Member
May 8, 2002
161
0
316
And something else, maybe there is a solution that I don't know. In that case :
1. Your host should know, or they should get informed somehow in order to help you.
2. Try also asking in other related forums. People at www.webhostingtalk.com usually give great help. Try asking in their Technical forum.