Forums

How to browse VERY large logs ? (4 posts)

  1. sabinou
    Member
    Posted 11 months ago #

    Hello,

    Faced to a 650 MB web access log ( = 1 day of logs), all my known file editors give up.

    And yet, for security reasons, I would need to browse my logs to search for whatever had a relation with "footer.php"

    How could I browse such a large log file to search for a precise event, in your opinion ?

    I'm running windows, but If the magicial working solution is a linux shell command, I can run a live-CD an do it with linux, it's no problem...

    Thank you very much if you can help ! :)

  2. fonglh
    Member
    Posted 11 months ago #

    use grep in linux

  3. sabinou
    Member
    Posted 11 months ago #

    Thanks for the reply !

    Can I humbly ask how grep will work ?

    From what I remember, grep allows to select stuff among more stuff (OK, sorry about the abuse of the "stuff" word) and display only the matching results.

    However, that doesn't tell me how to browse a super large text file, in the first place, or am I mistaken here ?

  4. fonglh
    Member
    Posted 11 months ago #

    it finds words in text files. I'm a bit rusty on the syntax, but there's lots of help on google.

    http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_04_02.html

    you can get it to show you the line numbers the word is found on.

Reply

You must log in to post.

About this Topic

Tags