Document Syslog app-name option (#32524)
Closes #32525 Signed-off-by: Martin Bartoš <mabartos@redhat.com> Co-authored-by: Claudio Ramirez <pub.claudio@gmail.com>
This commit is contained in:
parent
aac5a2a4f2
commit
3c16e2ac77
7 changed files with 22 additions and 1 deletions
|
@ -196,6 +196,13 @@ To enable logging using Syslog, add it to the list of activated log handlers as
|
||||||
|
|
||||||
<@kc.start parameters="--log=\"console,syslog\""/>
|
<@kc.start parameters="--log=\"console,syslog\""/>
|
||||||
|
|
||||||
|
=== Configuring the Syslog Application Name
|
||||||
|
To set a different application name, add the `--log-syslog-app-name` option as follows:
|
||||||
|
|
||||||
|
<@kc.start parameters="--log=\"console,syslog\" --log-syslog-app-name=kc-p-itadmins"/>
|
||||||
|
|
||||||
|
If not set, the application name defaults to `keycloak`.
|
||||||
|
|
||||||
=== Configuring the Syslog endpoint
|
=== Configuring the Syslog endpoint
|
||||||
|
|
||||||
To configure the endpoint(_host:port_) of your centralized logging system, enter the following command and substitute the values with your specific values:
|
To configure the endpoint(_host:port_) of your centralized logging system, enter the following command and substitute the values with your specific values:
|
||||||
|
|
|
@ -145,7 +145,6 @@ public class LoggingOptions {
|
||||||
.category(OptionCategory.LOGGING)
|
.category(OptionCategory.LOGGING)
|
||||||
.description("The app name used when formatting the message in RFC5424 format.")
|
.description("The app name used when formatting the message in RFC5424 format.")
|
||||||
.defaultValue("keycloak")
|
.defaultValue("keycloak")
|
||||||
.hidden()
|
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
public static final Option<String> LOG_SYSLOG_PROTOCOL = new OptionBuilder<>("log-syslog-protocol", String.class)
|
public static final Option<String> LOG_SYSLOG_PROTOCOL = new OptionBuilder<>("log-syslog-protocol", String.class)
|
||||||
|
|
|
@ -153,6 +153,9 @@ Logging:
|
||||||
The log level of the root category or a comma-separated list of individual
|
The log level of the root category or a comma-separated list of individual
|
||||||
categories and their levels. For the root category, you don't need to
|
categories and their levels. For the root category, you don't need to
|
||||||
specify a category. Default: info.
|
specify a category. Default: info.
|
||||||
|
--log-syslog-app-name <name>
|
||||||
|
The app name used when formatting the message in RFC5424 format. Default:
|
||||||
|
keycloak. Available only when Syslog is activated.
|
||||||
--log-syslog-endpoint <host:port>
|
--log-syslog-endpoint <host:port>
|
||||||
The IP address and port of the syslog server. Default: localhost:514.
|
The IP address and port of the syslog server. Default: localhost:514.
|
||||||
Available only when Syslog is activated.
|
Available only when Syslog is activated.
|
||||||
|
|
|
@ -153,6 +153,9 @@ Logging:
|
||||||
The log level of the root category or a comma-separated list of individual
|
The log level of the root category or a comma-separated list of individual
|
||||||
categories and their levels. For the root category, you don't need to
|
categories and their levels. For the root category, you don't need to
|
||||||
specify a category. Default: info.
|
specify a category. Default: info.
|
||||||
|
--log-syslog-app-name <name>
|
||||||
|
The app name used when formatting the message in RFC5424 format. Default:
|
||||||
|
keycloak. Available only when Syslog is activated.
|
||||||
--log-syslog-endpoint <host:port>
|
--log-syslog-endpoint <host:port>
|
||||||
The IP address and port of the syslog server. Default: localhost:514.
|
The IP address and port of the syslog server. Default: localhost:514.
|
||||||
Available only when Syslog is activated.
|
Available only when Syslog is activated.
|
||||||
|
|
|
@ -329,6 +329,9 @@ Logging:
|
||||||
The log level of the root category or a comma-separated list of individual
|
The log level of the root category or a comma-separated list of individual
|
||||||
categories and their levels. For the root category, you don't need to
|
categories and their levels. For the root category, you don't need to
|
||||||
specify a category. Default: info.
|
specify a category. Default: info.
|
||||||
|
--log-syslog-app-name <name>
|
||||||
|
The app name used when formatting the message in RFC5424 format. Default:
|
||||||
|
keycloak. Available only when Syslog is activated.
|
||||||
--log-syslog-endpoint <host:port>
|
--log-syslog-endpoint <host:port>
|
||||||
The IP address and port of the syslog server. Default: localhost:514.
|
The IP address and port of the syslog server. Default: localhost:514.
|
||||||
Available only when Syslog is activated.
|
Available only when Syslog is activated.
|
||||||
|
|
|
@ -330,6 +330,9 @@ Logging:
|
||||||
The log level of the root category or a comma-separated list of individual
|
The log level of the root category or a comma-separated list of individual
|
||||||
categories and their levels. For the root category, you don't need to
|
categories and their levels. For the root category, you don't need to
|
||||||
specify a category. Default: info.
|
specify a category. Default: info.
|
||||||
|
--log-syslog-app-name <name>
|
||||||
|
The app name used when formatting the message in RFC5424 format. Default:
|
||||||
|
keycloak. Available only when Syslog is activated.
|
||||||
--log-syslog-endpoint <host:port>
|
--log-syslog-endpoint <host:port>
|
||||||
The IP address and port of the syslog server. Default: localhost:514.
|
The IP address and port of the syslog server. Default: localhost:514.
|
||||||
Available only when Syslog is activated.
|
Available only when Syslog is activated.
|
||||||
|
|
|
@ -281,6 +281,9 @@ Logging:
|
||||||
The log level of the root category or a comma-separated list of individual
|
The log level of the root category or a comma-separated list of individual
|
||||||
categories and their levels. For the root category, you don't need to
|
categories and their levels. For the root category, you don't need to
|
||||||
specify a category. Default: info.
|
specify a category. Default: info.
|
||||||
|
--log-syslog-app-name <name>
|
||||||
|
The app name used when formatting the message in RFC5424 format. Default:
|
||||||
|
keycloak. Available only when Syslog is activated.
|
||||||
--log-syslog-endpoint <host:port>
|
--log-syslog-endpoint <host:port>
|
||||||
The IP address and port of the syslog server. Default: localhost:514.
|
The IP address and port of the syslog server. Default: localhost:514.
|
||||||
Available only when Syslog is activated.
|
Available only when Syslog is activated.
|
||||||
|
|
Loading…
Reference in a new issue