JUNOS supports logging in standard Junos format and structured-data format. We recommend the structured-data format.
Structured-data format includes more information without significantly increasing log size. It also makes it easier for automated applications to extract information from a message. This format complies with Internet draft-ietf-syslog-protocol-23 (https://tools.ietf.org/html/draft-ietf-syslog-protocol-23).
These instructions apply to any JUNOS device running 10.3 or later. Some examples are EX, M, MX, PTX, QFX, QFabric, and T series systems.
Here is a basic setup example of sending logs to a remote syslog host:
[edit system] syslog {
host <HOSTNAME/IP ADDRESS of Trellix Event Receiver> { facility SEVERITY; structured-data { brief;
}
}
}Here is a basic setup example of sending logs to a log file:
[edit system] syslog {
file <Path/Filename> { facility SEVERITY; structured-data { brief;
}
}
}More options can be specified for log outputs. See the JUNOS System Log Messages Reference document to learn more.
To configure the system to log system messages, add a syslog statement at the [edit system] hierarchy level.
To log in structured-data format, include a structured-data statement for each logging output.