# Audit Logging

The Audit Logging utility of In-Sight Vision Suite allows you to track jobs and system level changes and enable traceability and accountability for modifications made to the vision system. To access the Audit Logging utility, you must switch from In-Sight Spreadsheet to the In-Sight Vision Suite application.

The following actions in In-Sight Vision Suite trigger audit logging events:

Changes in the Spreadsheet Editor | System changes | Changing complex tools | Changing utilities
Cell expression Enabling or disabling cell state Symbolic Tag Value change Commenting | From the Sensor Menu: Results Queue Job A job is a user-configured program in In-Sight Spreadsheet consisting of functions and designed for specific applications. You can create and edit jobs using the In-Sight Spreadsheet interface, and load them on a vision system for deployment in a live environment. Status Custom View Discrete IO Online or Offline status change Saving or loading a job 3D Acquisition Acquisition is the process or result of the vision system acquiring a new image. settings change | EditCompositeRegion EditFloat EditInt EditMaskedRegion EditMultiGraphics EditPolygon EditPolylinePath EditRegion EditString OCRMax ReadIDMax Script TrainExtractColor TrainPatMaxRedLine ViDiELClassify ViDiELClassify3D ViDiELRead ViDiELSegment ViDiELSegment3D | Connecting to Spreadsheet and EasyBuilder Opening the HMI Audit Logging Backup or Restore Communications settings: Network Settings Host name Serial Configuration Restart or Factory Reset Startup Settings

Note: Audit logging is enabled by default. To download the audit log or enable forwarding, you must have Full user access level privileges. For more information, see User Settings in the In-Sight Vision Suite Software Help document.
To use audit logging:

1. Launch In-Sight Vision Suite if it is not already running.

2. Left-click the vision system you want to configure on the In-Sight® Device Pane on the left. The list of Utilities applicable to the selected vision system then appears at the bottom of the window.

3. Click Audit Logging.

   The Audit Logging window appears.

4. Retrieve the audit log by doing one of the following:

   - Download the audit log by clicking Download.

   - Click Enable Forwarding to enable sending the audit log to a remote server. Set up the IP address and the port number.

     Note: In-Sight Vision Suite uses syslog forwarding protocol to store audit log records. You need to set up a syslog server for collecting audit records.

5. Click OK.

To set up syslog forwarding with a Windows command line tooI:
Note: The following example uses Fluentd, but you can use any syslog collector that supports TCP with TLS certificate and uses octet-counting for TCP framing.

1. Download and install Fluentd for Windows.

2. Open the Audit Logging utility in the In-Sight Vision Suite. Perform the following:

   1. Check the Enable Forwarding checkbox.

   2. Set the IP address to the IP address of the host computer.

   3. Select a Port Number.

3. Create the following files on the host computer according to the Fluentd instructions:

   - fluentd.conf

   - fluentd.key

   - fluentd.crt

4. Include the following settings in the fluentd.conf file and modify the port number and pathways to the location where you placed these files on your computer:

   Copy

       1
       2
       3
       4
       5
       6
       7
       8
       9
       10
       11
       12
       13
       14
       15
       16
       17
       18
       19
       20
       21
       <source>
        @type syslog
        port XXXX
        tag system
        frame_type octet_count
        <transport tls>
         ca_cert_path PATH\TO\YOUR\fluentd.crt
         ca_private_key_path PATH\TO\YOUR\fluentd.key
        </transport>
        <parse>
         @type syslog
         with_priority true
         time_format 1 %Y-%m-%dT%H:%M:%S.%N%:z
         message_format rfc5424
        </parse>
       </source>

       <match system.**>
        @type stdout
       </match>

5. Select the same port as the Audit Logging utility in In-Sight Vision Suite.

6. Save the changes.

7. Open the Fluent Package Command Prompt. Run the following command, replacing the file pathway:

   Copy

       fluentd -c PATH\TO\YOUR\fluentd.conf

The audit log messages now appear in the Fluent Package Command Prompt. To terminate the connection, press Ctrl+C.

Note: To receive the correct time, you need to set up the time of the In-Sight vision system manually or connect it to an NTP server.