log every user actions

Find and share HowTos to various installations / configurations!
8 posts • Page 1 of 1
mjtaqi12
Posts:7
Joined: Tue Feb 14, 2017 3:30 pm

log every user actions

Post by mjtaqi12 »

Hi,

In my project I want to log every user actions, for example if a operator open a damper then there should be log entry that "Operator 'xyz' has opened the damper at this time."

These all log entries should display on screen and user can filter/view them.

Is WinCC OA (3.15) has a built-in function/panel for this?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: log every user actions

Post by leoknipp »

If you want to log user actions than you can use the Audit Trail function.
For detailed information please have a look at the WinCC OA documentation: Special functions --> Audit Trail.

Another possibility would be to add an _archive config to those datapoints elements which are used to set a command.
With the Event Screen you can then read the historical saved information.

Best Regards
Leopold Knipp
Senior Support Specialist

mjtaqi12
Posts:7
Joined: Tue Feb 14, 2017 3:30 pm

Re: log every user actions

Post by mjtaqi12 »

Thank you for your reply.

I looked at Audit Trail help pages; just wondering if I call writeAuditEntry(...) in my script

then Is there any link in GUI/Vision where i can click and have a look at the panel entries.

kilianvp
Posts:443
Joined: Fri Jan 16, 2015 10:29 am

Re: log every user actions

Post by kilianvp »

panels\\vision\\audit_screen.pnl

mjtaqi12
Posts:7
Joined: Tue Feb 14, 2017 3:30 pm

Re: log every user actions

Post by mjtaqi12 »

Thanks Kilian, that's perfect.

My scenario is bit complicated as I am running a distributed system with several clients and one server. if i log any thing on server system then i can view
on 'panels\\vision\\audit_screen.pnl' on same system as it is writing to local internal dp. How about if i log something on client system is it view-able on 'audit_screen.pnl'' form server?

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: log every user actions

Post by leoknipp »

In WinCC OA a distributed systems consists of several servers using the Distribution Manager WCCILdist to establish the connection between the server systems.
If you have a WinCC OA server and UI clients running on different machines it is not a "distributed system".

Can you please clarify which type of configuration is used.

Best Regards
Leopold Knipp
Senior Support Specialist

mjtaqi12
Posts:7
Joined: Tue Feb 14, 2017 3:30 pm

Re: log every user actions

Post by mjtaqi12 »

It is case 1, where there are several distributed servers are running with each one has Distribution Manager WCCILdist. one of the server is running
on control centre while others are running on different local sites.

servers running on local sites has config like this:
[general]
distributed = 1
[dist]
distPeer = "PC1" 1

while server running on control centre has this config:
[general]
distributed = 1

i want to show user action which are logged on local sites on control centre panel.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: log every user actions

Post by leoknipp »

The standard panels for the AuditTrail only show information for the local system. They do not read data for distributed systems.

If data for distributed systems shall be read you have to modify the scripts in the panels used for the AuditTrail or you can define your own panel to read and display AuditTrail information.

Best Regards
Leopold Knipp
Senior Support Specialist

8 posts • Page 1 of 1