Using Syslog For Oracle Glassfish Server 3.1 Logging Does Not Work On Redhat Linux ES 5
(Doc ID 1347779.1)
Last updated on SEPTEMBER 10, 2021
Applies to:Oracle GlassFish Server - Version 3.1 and later
Information in this document applies to any platform.
GlassFish Application Server provides the capability to redirect logging information to the syslog file on Unix platforms. This functionality can be achieved by following the below steps:
- Login to the admin console
- Navigate to Configurations -> <config-name> -> Logger Settings
- Check the "Write to system log" checkbox
- Restart Glassfish
As shown here:
On Linux systems, this functionality will not work if the system's syslog daemon is not configured to listen for remote messages on UDP. By default, Linux 's syslog does not expect to receive messages from remote clients. In this case, the client, Glassfish server, uses UDP to write log messages to syslog. The netstat command output, shown below, reveals that the default syslog port <port> is only listening for messages over TCP and not over UDP:
On Linux, the syslogd switch "-r" will instruct the daemon to listen on UDP.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document