mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
Update documentation for JournaldLogger
This commit is contained in:
parent
1f13af957d
commit
272191840f
@ -1754,6 +1754,33 @@ to InfluxDB. Experiment with the setting, if you are processing more than 1024 m
|
|||||||
or similar.
|
or similar.
|
||||||
|
|
||||||
|
|
||||||
|
### JournaldLogger <a id="objecttype-journaldlogger"></a>
|
||||||
|
|
||||||
|
Specifies Icinga 2 logging to the systemd journal using its native interface.
|
||||||
|
This configuration object is available as `journald` [logging feature](14-features.md#logging).
|
||||||
|
|
||||||
|
Resulting journal records have fields as described in
|
||||||
|
[journal fields](https://www.freedesktop.org/software/systemd/man/systemd.journal-fields.html),
|
||||||
|
and an additional custom field `ICINGA2_FACILITY` with the detailed message origin (e.g. "ApiListener").
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
object JournaldLogger "journald" {
|
||||||
|
severity = "warning"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Configuration Attributes:
|
||||||
|
|
||||||
|
Name | Type | Description
|
||||||
|
--------------------------|-----------------------|----------------------------------
|
||||||
|
severity | String | **Optional.** The minimum syslog compatible severity for this log. Can be "debug", "notice", "information", "warning" or "critical". Defaults to "information".
|
||||||
|
facility | String | **Optional.** Defines the syslog compatible facility to use for journal entries. This can be a facility constant like `FacilityDaemon`. Defaults to `FacilityUser`.
|
||||||
|
identifier | String | **Optional.** Defines the syslog compatible identifier (also known as "tag") to use for journal entries. If not given, systemd's default behavior is used and usually results in "icinga2".
|
||||||
|
|
||||||
|
Facility Constants are the same as for [SyslogLogger](09-object-types.md#objecttype-sysloglogger).
|
||||||
|
|
||||||
|
|
||||||
### LiveStatusListener <a id="objecttype-livestatuslistener"></a>
|
### LiveStatusListener <a id="objecttype-livestatuslistener"></a>
|
||||||
|
|
||||||
|
@ -14,6 +14,7 @@ and `icinga2 feature disable` commands to configure loggers:
|
|||||||
Feature | Description
|
Feature | Description
|
||||||
----------------|------------
|
----------------|------------
|
||||||
debuglog | Debug log (path: `/var/log/icinga2/debug.log`, severity: `debug` or higher)
|
debuglog | Debug log (path: `/var/log/icinga2/debug.log`, severity: `debug` or higher)
|
||||||
|
journald | Systemd Journal (severity: `warning` or higher)
|
||||||
mainlog | Main log (path: `/var/log/icinga2/icinga2.log`, severity: `information` or higher)
|
mainlog | Main log (path: `/var/log/icinga2/icinga2.log`, severity: `information` or higher)
|
||||||
syslog | Syslog (severity: `warning` or higher)
|
syslog | Syslog (severity: `warning` or higher)
|
||||||
windowseventlog | Windows Event Log (severity: `information` or higher)
|
windowseventlog | Windows Event Log (severity: `information` or higher)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user