10.4.6 Converting character encoding and improving reliability for syslog (Applying the extended syslog function)
By applying the extended syslog function, you can perform the following operations:
-
Converting character encoding for syslog (Converting from Shift-JIS to Unicode)
-
Improving reliability for syslog (Re-outputting messages)
- Note
-
The extended syslog function is provided as part of the log environment enhancement option of Hitachi Support 360.
The following describes the operations that you can perform when applying the extended syslog function.
- Organization of this subsection
(1) Converting character encoding for syslog (Converting from Shift-JIS to Unicode)
When the character encoding used on the HADB server is Shift-JIS, character encoding for the messages output to syslog is converted from Shift-JIS to Unicode (UTF-8).
Character encoding for the messages output to syslog is unified to Unicode (UTF-8), which has the following advantages:
-
Corruption of messages can be prevented when syslog is read.
-
Monitoring and managing messages become easy.
Note that conversion of character encoding for syslog is enabled only when Shift-JIS is applied to the following environment variables:
- ▪ Applicable environment variables
-
-
LANG
-
ADBLANG
-
For details about environment variables, see 8.4 Setting environment variables.
(2) Improving reliability for syslog (Re-outputting messages)
When outputting a message to syslog fails, the message is output again. Thus, you can prevent loss of messages.
(3) Prerequisite software programs and notes (Applying the extended syslog function)
To apply the extended syslog function, you need to install the following prerequisite software programs before starting the HADB server.
Prerequisite software programs
-
HA Logger Kit for Linux (Extended syslog function): 04-00-/A or later
-
Hitachi Code Converter#: 03-03-/A or later
- #
-
You need to install this software program if you want to convert character encoding for syslog (convert from Shift-JIS to Unicode).
- Important
-
To use the multi-node function, or to use a cold standby configuration, install the prerequisite software programs on all server machines.
If prerequisite software programs have been installed, KFAA50050-I message is output to the syslog and server message log file when the HADB server starts. KFAA50050-I message indicates that the extended syslog function has been applied.
Note that, if you install the prerequisite software programs while the HADB server is running, the extended syslog function is not applied. If the HADB server is running, install the prerequisite software programs in the following procedure.
- Procedure:
-
-
Terminate the HADB server normally.
-
Install the prerequisite software programs.
-
Start the HADB server.
-
Also, note that the extended syslog function is not applied when environment variable ADBSYSLOGLV on the server machine on which the HADB server is installed is set to 0. This is because, in this condition, no messages are output to syslog.