Ingesting non-English-language log files with the Data Collector

Before you can use the Data Collector to ingest non-English-language log files, you must configure the locale.

Before you begin

Ensure that UTF-8 encoding is enabled on the server where the IBM® Tivoli® Monitoring Log File Agent is installed.

Procedure

  1. To set the locale, enter the following command:
    LC_ALL=<Locale>
    export LC_ALL
    Where <Locale> is the locale that you want to set. For example, to set the locale for Chinese, enter the following command:
    LC_ALL=zh_CN.UTF-8
    export LC_ALL
  2. To list the applied locale changes, enter the locale command.
    The command outputs a list of the changes. For example:
    LANG=en_US.UTF-8
    LC_CTYPE="zh_CN.UTF-8"
    LC_NUMERIC="zh_CN.UTF-8"
    LC_TIME="zh_CN.UTF-8"
    LC_COLLATE="zh_CN.UTF-8"
    LC_MONETARY="zh_CN.UTF-8"
    LC_MESSAGES="zh_CN.UTF-8"
    LC_PAPER="zh_CN.UTF-8"
    LC_NAME="zh_CN.UTF-8"
    LC_ADDRESS="zh_CN.UTF-8"
    LC_TELEPHONE="zh_CN.UTF-8"
    LC_MEASUREMENT="zh_CN.UTF-8"
    LC_IDENTIFICATION="zh_CN.UTF-8"
    LC_ALL=zh_CN.UTF-8
    Note: You do not need to change the LANG parameter.

Results

After you set the locale, you can use the Data Collector to ingest non-English-language log files. Ensure that you run the Data Collector from the same terminal that you set the locale on.