homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
Forum Library, Charter, Moderators: Receptional & mademetop

Website Analytics - Tracking and Logging Forum

How To Get Raw Access Log File activity?
just the last hours instead of the entire month

 5:20 pm on Nov 3, 2007 (gmt 0)


Sometimes i need to check immediately the last activity in my server.

From Cpanel i access "Raw Access Log" and i select the raw log file to download but it gives me all the current month activity while i need the raw log activity only for the last 10 hours for example.

It is important for me because i am analyzing raw log files when server performance is flawed and i do not want to wait too much time downloading the raw log file.

Is there any solution?




 5:55 pm on Nov 3, 2007 (gmt 0)

Some hosts offer uncompressed logs covering a shorter period of time, like days or hours, and then periodically move this data into a compressed monthly, weekly, or daily file.

Whether the logs are processed in this way, the time periods covered, and whether you have access to the logs depends on how your host has set things up.



 6:01 pm on Nov 3, 2007 (gmt 0)

If you have SSH access, you can take a look at the command line using tail. You could also use grep to pull out just the stuff you were interested in.



 1:11 am on Nov 15, 2007 (gmt 0)

Thanks for your help.


Yes, I have SSH access.

Can you tell me what's the command please?


 3:59 am on Nov 15, 2007 (gmt 0)

tail -n /path/to/file.name

where "n" is an integer number of lines to be displayed.


 2:13 pm on Nov 15, 2007 (gmt 0)

... or tail -f /path/to/file.name
for a continuous realtime stream of new lines appending.
Ctrl-C to escape.

Kind regards,


 3:04 pm on Nov 15, 2007 (gmt 0)

Hello again.

What do you mean by the path to file?

I need to see the latest logs of a specific user.

How can i define it?

It is a dedicated server and i am using putty.exe to access SSH.



 3:20 pm on Nov 15, 2007 (gmt 0)

you need to find out (from your host) where your log files reside.
"/path/to/file.name" should be replaced by the directory path and file name given.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Website Analytics - Tracking and Logging
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved