• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mike Vo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!