Hi friends,
I want to see a my server log files in real time. How do I see log file in real time including all incoming logs.
Can any one tell me what command i need to type.
Hi friends,
I want to see a my server log files in real time. How do I see log file in real time including all incoming logs.
Can any one tell me what command i need to type.
Sure i will help you out with this you need to type the following commands.
- For Linux operating System including Ubuntu,Suse etc and it is most often also used in web development work.
- tail -f /path/thefile.log
- This will give you a scrolling view of the logfile. As new lines are added to the end, they will show up in your console screen.
- By Pressing Ctrl + C will close all Linux Application.
If you need to see on Ruby on Rails, you can view the development logfile by running the command from your project directory:
tail -f log/development.log
If your are using PHP than the log file name is /var/log/lighttpd/scripts.log.
- tail -f /var/log/lighttpd/scripts.log
You will get a scrolling view of the /var/log/lighttpd/scripts.log for all incoming entries on screen.
To stop simply hit CTRL+C.
Note:- That you may need to login as root user to view log files.
Bookmarks