Find the answer to your Linux question:
Results 1 to 10 of 10
... perhaps because I'm a desktop user and my up-time is minimal during the working week. I installed Logwatch not long ago, and configured it to e-mail a breakdown of ...
  1. #1
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539

    System logs are boring ...

    ... perhaps because I'm a desktop user and my up-time is minimal during the working week. I installed Logwatch not long ago, and configured it to e-mail a breakdown of my system logs using Postfix. So far I haven't learned much from that!

    My Snort 'alert' log is more interesting. Every other evening I go into /var/logs/snort and type tail -50 alert . It appears I get port scanned a lot.

    Has anyone here learned anything interesting from looking at system logs?
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  2. #2
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Location
    Laurasia
    Posts
    624
    We (the univ mainframe sys-admin team) use them frequently to analyze system errors and monitor access activities etc.....

    Sometimes they come handy when for example some process keeps on dieing etc....

    For my desktop....I normally do not go thru the logs unless I have nothing better to do :P.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  3. #3
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Quote Originally Posted by apoorv_khurasia View Post
    We (the univ mainframe sys-admin team) use them frequently to analyze system errors and monitor access activities etc.....

    Sometimes they come handy when for example some process keeps on dieing etc....

    For my desktop....I normally do not go thru the logs unless I have nothing better to do :P.
    Hi apoorv: how do you go about analysing those logs? I've found that over time they can start to take up quite a lot of room!
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  4. #4
    Linux Guru budman7's Avatar
    Join Date
    Oct 2004
    Location
    Knee deep in Grand Rapids, Michigan
    Posts
    3,242
    Quote Originally Posted by apoorv_khurasia View Post

    For my desktop....I normally do not go thru the logs unless I have nothing better to do :P.
    What doesn't classify as something better.
    I would think recompiling your kernel would classify as something better than going through system logs.

    I have looked at system logs just to see what was in them. boooooooooring
    How to know if you are a geek.
    when you respond to "get a life!" with "what's the URL?"
    - Birger

    New users read The FAQ

  5. #5
    Linux Enthusiast apoorv_khurasia's Avatar
    Join Date
    Feb 2005
    Location
    Laurasia
    Posts
    624
    Quote Originally Posted by fingal View Post
    Hi apoorv: how do you go about analysing those logs? I've found that over time they can start to take up quite a lot of room!
    Yes thats a problem. Some logs take up as much as 2-3 GB of space. As a solution we rotate the logs frequently using logrotate.conf. So after some time (say three weeks) old logs are deleted. Different logs have different frequency of deletion. Hope that clarifies your doubt.
    "There is no sixth rule"
    --Rob Pike
    Registered Linux User: 400426 home page

  6. #6
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Quote Originally Posted by apoorv_khurasia View Post
    Yes thats a problem. Some logs take up as much as 2-3 GB of space. As a solution we rotate the logs frequently using logrotate.conf. So after some time (say three weeks) old logs are deleted. Different logs have different frequency of deletion. Hope that clarifies your doubt.
    Hi apoorv - Yes thanks, that's useful ... I'll take a look at logrotate.conf when I get home. I don't really need to hang onto logs for very long as my computing needs are very simple at this point.

    I've been using SMART tools to monitor my hdd lately, and found that information to be useful from my logs. I was worried about my drive failing: but it's not.
    Last edited by fingal; 05-02-2007 at 09:18 AM. Reason: Extra content
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  7. #7
    Linux Enthusiast
    Join Date
    Oct 2004
    Posts
    609
    They can be useful to see if people are attacking your system(s). And through which doors/protocols they try to enter.

    It becomes funny when I see which usernames they tried to access through SSH

  8. #8
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    I must admit, when I posted this I thought, 'Well logs may be boring, but they're also useful!' But perhaps useful=boring?

    I never used to look at my system logs, but now I don't feel like anything's going on behind my back. Coming from a Windows background it took me ages to get used to logs ... But I'm pleased I have them.

    Some stuff about Logwatch is on: http://www2.logwatch.org:81 There's a similar package for Debian based distros. Not sure what it's called.

    <obscure joke>
    Never tell an English person that you 'spent the night checking my logs.' They'll give you a strange look and tell their neighbours.
    </obscure joke>
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

  9. #9
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,391
    Personally, I like boring logs. It's when the logs become exciting that you're in the ****

    NB: Can I use the word '****' on here?
    Linux user #126863 - see http://linuxcounter.net/

  10. #10
    Linux Guru fingal's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham - UK
    Posts
    1,539
    Quote Originally Posted by Roxoff View Post
    Personally, I like boring logs. It's when the logs become exciting that you're in the ****

    NB: Can I use the word '****' on here?
    Nah ... I knew that comment would pull you in though.
    I am always doing that which I can not do, in order that I may learn how to do it. - Pablo Picasso

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •