Logging Failed OPC-UA Login Attempts via IEC Code

Hi,

I’m currently working on logging failed OPC-UA login attempts for cybersecurity purposes. So far, I’ve managed to capture these events through SDM exports. However, since this functionality is intended for the end user or customer, I’d prefer to implement the logging directly in IEC code and then make an export in a text file format, so that they do not get all the information.

I suspect that it may not be possible to access system-level logs—such as OPC UA login failures or runtime errors—directly from IEC code. Before exploring alternative solutions (e.g., parsing SDM dump files via text manipulation), I’d like to confirm whether this limitation is indeed the case.

Any clarification or guidance would be greatly appreciated.

Best regards,

Niels Soerensen

Hello and welcome to the Community,
If I understand your use case correctly, the ArEventLog library is what you’re looking for. Check also the mappView-Logbook project on Github.