Results 1 to 4 of 4

Thread: How to see a live view of log file in linux

  1. #1
    Join Date
    Jan 2009
    Posts
    150

    How to see a live view of log file in linux

    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Re: How to see a live view of log file in linux

    Sure i will help you out with this you need to type the following commands.

    1. For Linux operating System including Ubuntu,Suse etc and it is most often also used in web development work.


      • tail -f /path/thefile.log


    2. 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.

    3. By Pressing Ctrl + C will close all Linux Application.

  3. #3
    Join Date
    Nov 2005
    Posts
    3,026

    Re: How to see a live view of log file in linux

    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

  4. #4
    Join Date
    May 2008
    Posts
    2,680

    Re: How to see a live view of log file in linux using php

    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.

Similar Threads

  1. Replies: 4
    Last Post: 03-01-2011, 01:22 AM
  2. How to view video of live IPL cricket match?
    By Roxy_jacob in forum Technology & Internet
    Replies: 4
    Last Post: 10-02-2010, 01:36 PM
  3. View full headers in Windows Live Hotmail
    By superdave1984 in forum Windows Software
    Replies: 3
    Last Post: 08-08-2009, 05:59 PM
  4. How to view linux startup log
    By FreeBSD in forum Operating Systems
    Replies: 2
    Last Post: 07-08-2009, 06:14 PM
  5. How to view chat logs windows live messenger?
    By jeffcoo in forum Technology & Internet
    Replies: 4
    Last Post: 30-03-2009, 10:26 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,631,127.88968 seconds with 17 queries