Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
June 30, 2008 - Submit Your Site for the July 08 Site of the Month Award!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 19, 2008, 10:45:51 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Where can I view log protocols ?  (Read 860 times)
pstein
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


« on: October 13, 2007, 02:14:46 AM »

Our Ded Server logs somewhere which user logged in when, his session time, how much he up- and downloaded and which files.

Where can I view this information

a) online (in WHM or cPanel ?)
b) download it as text file ?

Peter
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 972



« Reply #1 on: October 13, 2007, 11:48:25 AM »

Hi,

You can download raw FTP logs via WHM or cPanel interface where you could find the info who logged in, from which IP and what uploaded or downloaded by FTP. The same info can be found in /var/log/messages* files accessible via shell or SFTP for root user. The listing of session times for users is available as output of "last" command in shell. You may redirect the output to file and then download the file by SFTP or FTP, if you put the file under one of cPanel accounts. The command with redirect would be "last > /path/to/file".
Logged

Kind Regards,
Vlad Artamonov
pstein
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


« Reply #2 on: October 30, 2007, 04:57:57 AM »

You can download raw FTP logs via WHM or cPanel interface

Ok, found it.

However it contains only the log entries of approx the last 3 days.

Is there a log file limitation ?
If yes: Depends the limit on the log file size or the number of days back to the past ?

Where can I change this limit ?

Is there ONE log file size limit for each Domain or
for the whole server (=all domains on our DedServer)?

In cPanels "Raw Log Manager" there is an option:
"Archive Logs in your home directory at the end of each stats run"

What means "stats run"?
What happens with the log data if I disable this option ?

Peter
Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 972



« Reply #3 on: October 31, 2007, 09:48:24 PM »

Hi Peter,

All domain related logs get cleared after each "stats run" by default. "Stats run" means periodical log processing by configured stats programs such as Webalizer and Analog and logs archiving under home folder of the account if this was activated in "Raw Log Manager" in cPanel for it. If logs archiving is not activated for an account, all account logs will be wiped out after stats run (again, this is the default behavior).

Logs processing settings are server-wide and can be configured under Stats and Logs section of Tweak Settings in WHM. There is no log size limit. Logs contain information for all the period since the last stats run. Please note that the time between processing logs may differ due to the number of logs to process and average server load. This can be fixed by setting "The load average above the number of cpus at which logs file processing should be suspended"  to a value higher than the average load on your server.

I hope this helps.
Logged

Kind Regards,
Vlad Artamonov
pstein
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


« Reply #4 on: November 01, 2007, 07:20:28 AM »

Hello perestrelka,

thank you for the answers.
However I did not understand what is exactly meant by "server load".
Usually "server load" represents the degree on how much a CPU is busy at a certain time.
So a server load of e.g. "80%" means that the CPU uses 80% of its maximal capacity.

On the other hand I can not imagine that log processing depends on how much a CPU is busy at let's say 09:12.60 and 45 milliseconds beside the fact that this kind of server load can change within seconds. So what is meant by "server load" in conjunction with log processing ?

Similarly "The load average above the number of cpus at which logs file processing should be suspended " confuses me. What dioes a number of say "8" represent here ?

Furthermore I saw in WHMs section "Stats and Logs " the option:

"Number of days between processing log files and bandwidth usage"

Hmm, if I omit "and bandwidth usage" the statement would be clear. But what does the appendix mean? Depends the log processing interval either on the number of days or on the bandwidth usage?
If it depends on both then in which relationsship ?

Peter



Please note that the time between processing logs may differ due to the number of logs to process and average server load. This can be fixed by setting "The load average above the number of cpus at which logs file processing should be suspended"  to a value higher than the average load on your server.

I hope this helps.
« Last Edit: November 01, 2007, 07:22:12 AM by pstein » Logged
perestrelka
Administrator
Jedi
*****
Offline Offline

Posts: 972



« Reply #5 on: November 03, 2007, 06:04:47 AM »

Hi Peter,

People frequently confuse "Server Load" and "CPU usage". What you described is "CPU usage" and it is measured in percents because it is not possible to use CPUs more than they are supposed for.

The term "Server Load" indicates a rough idea of the number of running queued processes waiting for a resource to become available. CPUs are usually this resource. Please note that "Server Load" does not accurately depict how busy your system is in that very moment, or why it is busy in general. Multiprocessor systems can easily handle the "Server load" of 10, whereas such load may slow down a single processor system significantly. "Server Load" averages for the past 1, 5 and 15 minutes are  available in he output of the "top" and "uptime" commands in shell.

Hence "8" for the ""The load average above the number of cpus at which logs file processing should be suspended" option means to pause log processing when the load on the server is above 8.

As for the "Number of days between processing log files and bandwidth usage" option, logs processing and bandwidth usage are done by the same program. It is not needed to separate those two actions. The option itself controls the interval between runs of the stats and and bandwidth processing tool called cpanellogd in cPanel.
Logged

Kind Regards,
Vlad Artamonov
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM