Customizing syslog messages using Python 2

Note: This section refers to the integrated Python 2 interpreter in SR OS, and the extensive features of Python 3 with the pySROS libraries are not available for syslog message customization.

Log events in SR OS can be customized by a Python script before they are sent to a syslog server. Log events that are subject to Python processing are selected via log filters, which allows only a preferred subset of log messages to be customized. The following figure shows the interaction between the logger and the Python engine.

Figure: Interaction between the logger and the Python engine