Create the JSON configuration file

Contributors ciarm netapp-barbe netapp-aherbin Download PDF of this page

Create the JSON configuration file.

If you want to enable event log messages, the syslog client, or customer logging, complete the following steps.

Steps

  1. Open any text editor, such as notepad or vi.

  2. Create a new file with the following JSON template.

    {
      "logConfig": {
        "level": "INFO",
        "maxBytes": 52428800,
        "name": "xcp.log"
      },
      "eventlog": {
        "isEnabled": false,
        "level": "INFO"
      },
      "syslog": {
        "isEnabled": false,
        "level": "INFO",
        "serverIp": "10.234.219.87",
        "port": 514
      },
      "sanitize": false
    }
  3. For any features you want to enable, change the isEnabled value to true.

  4. Name the file xcpLogConfig.json and sae it to the file location mentioned in Error! Reference source not found.

Default configuration Example json configuration file
{
  "logConfig": {
    "level": "INFO",
    "maxBytes": 52428800,
    "name": "xcp.log"
  },
  "sanitize": false
}
{
  "logConfig": {
    "level": "INFO",
    "maxBytes": 52428800,
    "name": "xcp.log"
  },
  "eventlog": {
    "isEnabled": false,
    "level": "INFO"
  },
  "syslog": {
    "isEnabled": false,
    "level": "INFO",
    "serverIp": "10.234.219.87",
    "port": 514
  },
  "sanitize": false
}