Find the answer to your Linux question:
Results 1 to 6 of 6
I need a Java program code to show the errors from the log files of a Linux system, possibly with a GUI. Is there a good Samaritan here to help ...
  1. #1
    Just Joined! badeavasile's Avatar
    Join Date
    Mar 2010
    Location
    romania
    Posts
    3

    Exclamation Please help me

    I need a Java program code to show the errors from the log files of a Linux system, possibly with a GUI. Is there a good Samaritan here to help me?

  2. #2
    Just Joined! DT0X's Avatar
    Join Date
    Nov 2008
    Location
    Southwest UK
    Posts
    31
    I hate saying this because its not what you asked for but: Does it have to be Java?

    You could easily do this with Apache and PHP (lots of freely available php out there to do this) then you get the same cross platform viewing capabilities and itll probs be faster and less resource heavy too

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    I second that.
    Is there any hard dependency on java?

    Right now, I use rsyslog on all my servers,
    with the central logging host using it as well, of ourse.

    The logs are stored locally,
    and additionally in a mysql on the central loghost.
    The mysql will prune logs after a certain age.

    For looking at and searching through logs, there is phpLogCon :: a syslog data viewer for the web


    Right now, I am looking into https://labs.omniti.com/trac/reconnoiter.
    Looks cute, but havent tested it.
    Yet
    Last edited by Irithori; 03-18-2010 at 11:27 AM.
    You must always face the curtain with a bow.

  4. #4
    Just Joined! badeavasile's Avatar
    Join Date
    Mar 2010
    Location
    romania
    Posts
    3
    is too simple in PHP...i'm student and i have some crazy teachers how want just in Java this program...yeah..bulshtit:P

  5. #5
    Trusted Penguin jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    4,071
    Is this for a school assignment?
    Unfortunately, posting homework questions is against Forum Rules.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to Private Messages asking for Linux help. Please, keep it on the public boards.

  6. #6
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,096
    Although jayd512 is right, maybe some rough pointers.

    The topic is linux and logging.
    So we are talking about syslog. That is the standard.
    The usual syslog-daemon will get you started, but for sophisticated features look at rsyslog-daemon.
    Afaik, rsyslog is a one man show, but the guy is *very* active.

    syslog and java:
    Probably Syslog4j: Complete Syslog Implementation for Java is worth a look.

    Have fun
    You must always face the curtain with a bow.

Posting Permissions

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