Sending SYSLOG messages with a SIMATIC S7 CPU
Syslog is used typically in computer system management and security monitoring and has now become established as a standard in the field of logging.
The "LSyslog" library provides a solution for implementing the syslog protocol in a SIMATIC S7 controller. In addition to the library, an application example is provided that shows you how to generate syslog messages in your system and send to the syslog server.
The library provides a function block (FB) that fulfills the following functions:
- Establishment of a UDP connection to the syslog server by means of open communication blocks.
- Embedding of the user alarm with timestamp in the syslog protocol.
- Sending the syslog alarm.
The "LSyslog" library can be used with all PROFINET-capable S7 CPUs and via Ethernet CPs/CMs with which Open User Communication (OUC) can be programmed.
These can be PLCs of the following series:
- S7-1200 PLCs from FW 4.0
- S7-1500 PLCs
- S7-300 PLCs from FW 3.2
- S7-400 PLCs from FW 6.0
- ET 200SP PLC
- ET 200SP Open Controllers
In this application example, security messages are read out with the instructions "Get_Alarm" and "GetChecksum" and sent to the syslog server using the "LSyslog" library. This allows you to track and document access to your controls.
The application example can be used with S7-1500 PLCs from firmware V2.0.
Documentation for application example (1,2 MB)
Application example for STEP 7 (TIA Portal) V15.1 (3,0 MB)
Reading out Alarms in S7-1500 CPU using the "Get_Alarm" instruction and sending them to an Alarm System
Update for STEP 7 (TIA Portal) V15.1
- You have a technical question / problem: Ask the Technical Support
- You want to discuss in our forum and exchange experiences with other users
- You want to create CAx data for one or more products
- You would like to send us feedback on this Entry