Combine audit log data audit_events with tag data

I have enabled the Audit Log on so it tracking all the users activities

What I want to do is query that database(audit_events) and do an “INNER JOIN” this table with the internal tag database to get the tags documentation


FROM audit_events

INNER JOIN sometagDatabase

ON audit_events.action_target = sometagDatabase.tagname;

at the end i want to display the audit log with the tag documentation

You can’t join across different database connections, sorry. You’ll have to script the lookups on one side or the other.

I haven’t tried this, but can you change your audit log configuration to log to the same database where your tag info is? Then you could join the tables in your query.

i think this is where i hit the wall. the tags are internal to ignition (Standard Tag Provider)

1 Like