My Oracle Support Banner

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.

Goal

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 -> <config-name> -> 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 <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.

Solution

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
Goal
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.