Skip to main content
Version: 1.1-beta

Syslog Logs

Introductionโ€‹

Collect log information from request gateways and output it to Syslog.

Featuresโ€‹

Capable of outputting log content generated during program execution to a remote Syslog server.

  • Supports various request protocols, including TCP, UDP, UNIX
  • Allows setting log levels for Syslog output
  • Supports different output log format types
  • Provides customization options for log formatting configuration

Operation Demoโ€‹

Creating a New Syslog Log Configurationโ€‹

  1. Click on Operations & Integration -> Log Configuration -> Syslog Log in the left navigation bar, and then click Add Syslog Log.

  1. Fill in the Syslog log configuration by section.

Configuration Explanation:

Field NameDescription
Network ProtocolThe protocol for requesting the Syslog service, supporting TCP, UDP, UNIX
Server AddressThe address of the Syslog service
Log LevelSyslog output log level, supporting ERROR, WARN, INFO, DEBUG, TRACE
Output FormatThe format of the output log content, supporting single line or JSON format
Formatting ConfigurationOutput format template, configuration guide click here to jump

Formatting Configuration Example

{
"fields": [
"$time_iso8601",
"$request_id",
"@request",
"@proxy",
"@response",
"@status_code",
"@time"
],
"request": [
"$request_method",
"$scheme",
"$request_uri",
"$host",
"$header",
"$remote_addr"
],
"proxy": [
"$proxy_method",
"$proxy_scheme",
"$proxy_uri",
"$proxy_host",
"$proxy_header",
"$proxy_addr"
],
"response": [
"$response_header"
],
"status_code": [
"$status",
"$proxy_status"
],
"time": [
"$request_time",
"$response_time"
]
}

Go Liveโ€‹

  1. Click the Go Live button behind the configuration to be launched.