{
  "$schema" : "https://json-schema.org/draft/2020-12/schema",
  "$id" : "https://voltdb.com/voltsp/schemas/sink/syslog",
  "title" : "Syslog Sink Configuration",
  "description" : "The `syslog` sink is used to send log messages to a remote syslog server in [RFC3164](https://www.rfc-editor.org/rfc/rfc3164.html)\nformat over TCP connection.\n\nIt supports customization of message facility, severity, tag, and other syslog-specific settings.\n",
  "type" : "object",
  "properties" : {
    "syslog" : {
      "type" : "object",
      "properties" : {
        "address" : {
          "type" : "string",
          "description" : "Sets the target syslog server's host address and port. Default port for syslog is 514.",
          "anyOf" : [ {
            "type" : "string",
            "format" : "hostname"
          }, {
            "type" : "string",
            "format" : "ipv4"
          }, {
            "type" : "string",
            "format" : "ipv6"
          } ]
        },
        "message" : {
          "type" : "object",
          "description" : "Configures the details of messages sent by this source as per the RFC3164 specification.",
          "properties" : {
            "facility" : {
              "type" : "string",
              "description" : "Facility that generated the message.",
              "default" : "USER",
              "enum" : [ "kern", "user", "mail", "daemon", "auth", "syslog", "lpr", "news", "uucp", "cron", "authpriv", "ftp", "ntp", "audit", "alert", "clock", "local0", "local1", "local2", "local3", "local4", "local5", "local6", "local7", "KERN", "USER", "MAIL", "DAEMON", "AUTH", "SYSLOG", "LPR", "NEWS", "UUCP", "CRON", "AUTHPRIV", "FTP", "NTP", "AUDIT", "ALERT", "CLOCK", "LOCAL0", "LOCAL1", "LOCAL2", "LOCAL3", "LOCAL4", "LOCAL5", "LOCAL6", "LOCAL7" ]
            },
            "severity" : {
              "type" : "string",
              "description" : "Defines the severity level of the message.",
              "default" : "NOTICE",
              "enum" : [ "emergency", "alert", "critical", "error", "warning", "notice", "informational", "debug", "EMERGENCY", "ALERT", "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFORMATIONAL", "DEBUG" ]
            },
            "hostname" : {
              "type" : "string",
              "description" : "Should be set to the hostname, the IPv4 address, or the IPv6 address of\nthe originator of the message. May only contain ASCII characters.\n",
              "default" : "UNKNOWN"
            },
            "tag" : {
              "type" : "string",
              "description" : "Typically the value in the TAG field will be the name of the program or process\nthat generated the message. May only contain ASCII characters.\n",
              "default" : ""
            }
          },
          "additionalProperties" : false
        }
      },
      "required" : [ "address" ],
      "additionalProperties" : false
    }
  },
  "required" : [ "syslog" ],
  "additionalProperties" : false
}
