| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|How To Get Raw Access Log File activity?|
just the last hours instead of the entire month
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?
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.
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.
Thanks for your help.
Yes, I have SSH access.
Can you tell me what's the command please?
tail -n /path/to/file.name
where "n" is an integer number of lines to be displayed.
... or tail -f /path/to/file.name
for a continuous realtime stream of new lines appending.
Ctrl-C to escape.
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.
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.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved