Creating an Audit Profile for a Database
Go to the Config section of the Gateway.
Choose Security > Auditing from the menu on the left. The Audit Profiles page is displayed.
Click the Create a new Audit Profile link.
You have the option of storing audit logs into an external database or sending them to a remote gateway. In this example, select Database. (Configuring audit events to be sent to a remote gateway's audit log is addressed in Creating a Remote Gateway Audit Profile section on this page).
- Enter the Name of the audit log and Description (optional).
- Under the Database Settings, select the Database where the table will be stored, select the Auto Create check box, and enter the desired Table Name.
Click Create New Audit Profile.
Once some changes have been made to a Tag or a Database table, Ignition will begin recording.
Creating a Remote Gateway Audit Profile
Just like configuring audit events to be logged into an external database, it is done from the Gateway webpage, Config > Security > Auditing.
To have your audit events automatically sent to a remote gateway's audit profile, select Remote, and click Next.
- A list of known gateways will be displayed. If you don't see a gateway that you expected to see, check your Gateway Network settings to verify that the connections are valid. You also have the option to specify a gateway manually. This example selects a valid gateway. Click Next.
- If an Audit profile exists, the fields will auto-populate. The name of the gateway will appear in the Name field prefaced with the audit profile name,(i.e., Ignition_Test_Auditing), as shown in the following example. Click Create New Audit Profile.
- You will receive a successful message stating your new Audit Profile was created.
Remote Gateway Audit Profile Properties Table
|Name||The default name, is the name of the Remote Gateway and Audit Profile.|
|Description||Description of the audit profile. Optional.|
|Enabled||By default. the journal profile is enabled.|
|Target System||The remote system to send audit events to over the gateway network.|
|Target Profile||The audit profile on the remote system to log events into.|
Enabling Auditing in a Project
- Go to the Designer, open the project that you want to enable auditing on, and go to Project > Properties.
- Go to the General section, select the Enable Auditing check box, and select your Audit Profile from the drop-down menu. The audit profile is used to record audit actions for your project. If the new audit profile does not show up, click Refresh.
- Click OK.
- Save your Project.
Viewing Information in an Audit Log
There are a few ways to view audit information: using a Table component, interface on the Gateway, or the Database Query Browser. Here is one example of viewing an Audit Log using the Database Query Browser.
- Go to Tools > Database Query Browser.
- Under the Schema area, double click on a table, and it will expand the query in the Database Query Browser area.
- Click Execute, and all the audit log data will be displayed in the Resultset1 area.