Skip to content

Forward Juniper / Junos OS logs

Configure Juniper devices (using Junos OS) to forward logs in structured format following this guide

To output messages to a file in structured-data format, include the structured-data statement at the "edit system syslog file filename" hierarchy level:

[edit system syslog file filename]
facility severity;
structured-data {
    brief;
}

You can also use the set security log format command:

> set security log format sd-syslog