Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic