Two Laptop Bag
The moose likes Java in General and the fly likes Send real time unix system logging to a remote db server ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Send real time unix system logging to a remote db server ?" Watch "Send real time unix system logging to a remote db server ?" New topic
Author

Send real time unix system logging to a remote db server ?

Mike Vo
Greenhorn

Joined: Jul 18, 2004
Posts: 6
Instead of parsing local system log files, is there a way to have Java program accept Unix system logging info directly?

Thanks for your help.
Thomas Manthey
Greenhorn

Joined: Dec 16, 2004
Posts: 12
As far as I know those syslog messages are send to port 514 of the logging server. Have a look at the API of the package java.net and try to write a program that listens on this port.


inside every large program there is a small program struggling to get out...
Mike Vo
Greenhorn

Joined: Jul 18, 2004
Posts: 6
Thanks for help.

I wrote a server in DatagramSocket and have it listening on the port 514@localhost.

However, got message:
java.net.BindException: Address already in use

Seems like port 514 has been locked up by the syslogd. Is there a way to get around and have my serevr accept system logging?
Thomas Manthey
Greenhorn

Joined: Dec 16, 2004
Posts: 12
Can you give more detail what you are trying to achieve? Do you want to replace syslogd completely or are you just interested in analyzing a certain kind of logged events? Maybe I could help you more if I knew...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Send real time unix system logging to a remote db server ?
 
Similar Threads
Mail Alerts on birthdays
where to get info about commons logging, log4j and java.util.logging....
Unix + Java
problem with starting Struts2
process real time logging