7.2.17. entry_content¶
- Default value:
{timestamp.iso_8601_local} {id} {component.uuid} {account.name} {account.peer.address}:{account.peer.port} {message}
- Optional:
Yes
- Values:
Format string.
- From version:
3.13.0
- Description:
The log format can be configured using a format string. By default, every line starts with the event id but this can be changed. For example, to show the date first, only the peer address and a Unix newline:
[event-handlers/b904ed23-v254-4ccf-8abd-edcae4d3324f] entry_content = {timestamp.cwa_14051} {id} {account.peer.address} {message} {LF}
If the format string does not end with a newline character (
{LF}
or{CR}{LF}
) it will be added accordingly to the current platform (i.e.LF
on Unix-like systems andCR+LF
on Windows).The following variables (case-insensitive) are provided as context data containing information about the event being triggered:
id
uuid
message
account.name
account.email
account.peer.address
account.peer.port
account.peer.protocol
account.peer.family
account.uuid
component.name
component.type
component.uuid
timestamp.cwa_14051
timestamp.iso_8601
timestamp.iso_8601_fractional
timestamp.iso_8601_local
timestamp.iso_8601_basic
timestamp.iso_8601_compact
timestamp.timestamp
server.name
server.uuid
data.DATA_MEMBER_NAME
data_json
Note
This configuration is ignored if the structured_fields
option is set.