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.LFon Unix-like systems andCR+LFon 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
DATA_MEMBER_NAME can be any of the supported data attributes specific to each event ID. You can discover the available data attributes as part of the Events reference documentation or the Web Manager Activity log.
Note
This configuration is ignored if the structured_fields option is set.