Configuring an alias

You can use the IBM® Operations Analytics Log Analysis alias feature to specify an alias, consisting of an alternative name.

About this task

Aliases are displayed in the IBM Operations Analytics Log Analysis UI.

Procedure

  1. Open the aliasSource.json file in the <HOME>/IBM/LogAnalysis/wlp/usr/servers/Unity/apps/Unity.war/WEB-INF directory.
  2. To apply an alias to a fieldname, edit the fieldname parameters in the aliasSource.json file.
    The following example shows the parameters to apply an alias to a hostname:
    {
      "aliasKeyValueArray": [
        {
          "sourceType": "WASSystemOut",
          "fields": [
            {
              "fieldName": "hostname",
              "alias_field": "severity_alias",
              "translations": {
                "E": "Error",
                "W": "Warning",
                "O": "Overflow",
                "I": "Info"
              }
            }
          ]
        }
      ]
    }
    Where:
    • sourceType specifies the source type for which the alias is created.
    • fieldName specifies the field name of the source type.
    • alias_field specifies the alias name of the field.
    • translations contains the field values and aliases.

What to do next

Verify that the aliases are correctly configured in the IBM Operations Analytics Log Analysis UI.

Errors that are recorded during configuration are stored in the UnityApplication.log file in the <HOME>/IBM/LogAnalysis/logs directory.