Using Syslog For Oracle Glassfish Server 3.1 Logging Does Not Work On Redhat Linux ES 5

(Doc ID 1347779.1)

Last updated on OCTOBER 24, 2016

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:

  1. Login to the admin console
  2. Navigate to Configurations -> yourserver-config -> Logger Settings
  3. Check the "Write to system log" checkbox
  4. 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 514 is only listening for messages over TCP and not over UDP:

% netstat -an | grep :514
tcp 0 0* LISTEN

On Linux, the syslogd switch "-r" will instruct the daemon to listen on UDP.


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms