Viewing Logs
This is usually a stage-two topic. It becomes more valuable after the runtime path and operator workflows are already in use.
Start Here
Use this page when:
- you need troubleshooting or audit visibility
- multiple users or automated processes are interacting with the system
- you want to review equipment writes, module operations, or login history
Before You Continue
Make sure:
- runtime can already launch successfully
- the relevant project actions are already occurring in real use or testing
- you know which log type matters for the issue you are investigating
If you want copy-ready sample activities that generate useful log records, use Configuration Sample Data.
What is the Logs System?
The Logs system in AI SCADA automatically records user actions, system events, and equipment operations. It provides an audit trail for troubleshooting, compliance, and security purposes.
The system uses a pre-built runtime component that requires minimal configuration—simply add it to a view and start reviewing logs.
When to Use Logs?
The Logs system is essential for:
- Troubleshooting: Identify when and why issues occurred
- Audit Compliance: Meet regulatory requirements for activity tracking
- Security Monitoring: Track user access and actions
- Change Tracking: Review who made changes and when
- Performance Analysis: Identify patterns in system usage
- Incident Investigation: Reconstruct events leading to problems
Main Work Areas in the Logs Module
The Logs module is centered around one runtime management view with multiple working tabs.
| Work Area | Where | What you do there |
|---|---|---|
| Logs Management View | Runtime logs component | Enter the logging module and review records |
| Login Logs Tab | Logs runtime interface | Audit who logged in, when, and with what result |
| Equipment Logs Tab | Logs runtime interface | Review tag writes, setpoint changes, and write sources |
| Module Logs Tab | Logs runtime interface | Audit operations performed in runtime modules |
| Filter / Export Controls | Toolbar or header actions in the logs view | Narrow the result set and export audit data |
For a first troubleshooting workflow, the shortest path is:
- open the Logs Management view
- choose the correct log tab
- filter by time, user, or entity
- export only if the on-screen review is not enough
Log Types
The system provides three types of logs:
1. Login Logs
Records user authentication events.
Captured Information:
- Username
- Login timestamp
- Logout timestamp
- Session duration
- Login result (success/failure)
- IP address (if applicable)
Use Cases:
- Monitor user access patterns
- Detect unauthorized access attempts
- Verify user presence during incidents
- Audit compliance reporting
2. Equipment Logs
Records tag write operations to equipment.
Captured Information:
- Tag name
- Previous value
- New value
- Timestamp
- User who made the change
- Source (manual input, script, recipe, etc.)
Use Cases:
- Track parameter changes
- Identify who modified setpoints
- Troubleshoot unexpected equipment behavior
- Verify recipe application
3. Module Logs
Records operations in runtime modules.
Captured Information:
- Module name (Recipe Management, Permissions, etc.)
- Operation type (create, edit, delete, apply, etc.)
- Affected entity (recipe name, user name, etc.)
- Timestamp
- User who performed operation
- Operation result (success/failure)
Use Cases:
- Track recipe changes
- Monitor permission modifications
- Review alarm acknowledgments
- Audit data table operations
Adding the Logs Component
Step 1: Create a Logs View
- Create a new view in the View Editor
- Name it "Logs" or "Audit Trail"
- Navigate to Components > Runtime > Logs Management
- Drag the component to the canvas
- Resize to fill the view
- Save the view
📷 [UG-LOG-01] Logs Management component in View Editor
Step 2: Add to Navigation
- Add the view to your main menu or navigation
- Restrict access to authorized personnel (supervisors, engineers, administrators)
- Save changes
Step 3: Run the Application
- Click Run to start the runtime
- Navigate to the Logs view
- The component is ready to use
📷 [UG-LOG-02] Logs Management interface in runtime
Viewing Login Logs
Track user authentication events.
Access Login Logs
- Open the Logs Management view
- Click the Login Logs tab
- View the list of login/logout events
📷 [UG-LOG-03] Login Logs tab showing user sessions
Login Log Columns
| Column | Description |
|---|---|
| Username | User account name |
| Login Time | When user logged in |
| Logout Time | When user logged out (empty if still logged in) |
| Duration | Session length |
| Status | Success or Failure |
| IP Address | Client IP address (if available) |
Filter Login Logs
Use filters to find specific login events:
By User:
- Select username from dropdown
- View all sessions for that user
By Date Range:
- Set start date and end date
- View logins within time period
By Status:
- Filter by successful or failed logins
- Identify unauthorized access attempts
💡 Tip: Review failed login attempts regularly to detect potential security issues.
Common Login Log Queries
Who is currently logged in?
- Filter by empty Logout Time
- Shows active sessions
When did a user last log in?
- Filter by username
- Sort by Login Time descending
- First entry is most recent
How many failed login attempts today?
- Filter by Status = Failure
- Filter by Date = Today
- Count results
Viewing Equipment Logs
Track tag write operations to equipment.
Access Equipment Logs
- Open the Logs Management view
- Click the Equipment Logs tab
- View the list of tag write operations
📷 [UG-LOG-04] Equipment Logs tab showing tag changes
Equipment Log Columns
| Column | Description |
|---|---|
| Timestamp | When change occurred |
| Tag Name | Full tag path |
| Previous Value | Value before change |
| New Value | Value after change |
| User | Who made the change |
| Source | How change was made (manual, script, recipe, etc.) |
Filter Equipment Logs
Use filters to find specific equipment operations:
By Tag:
- Enter tag name or pattern
- View all changes to that tag
By User:
- Select username
- View all changes made by that user
By Date Range:
- Set start and end dates
- View changes within time period
By Value Range:
- Filter by value thresholds
- Find when values exceeded limits
Common Equipment Log Queries
When was this setpoint last changed?
- Filter by tag name
- Sort by Timestamp descending
- First entry is most recent change
Who changed this parameter?
- Filter by tag name and date range
- Review User column
What was the value before the change?
- Filter by tag name and timestamp
- Review Previous Value column
How often is this tag being written?
- Filter by tag name and date range
- Count entries
💡 Tip: Use equipment logs to troubleshoot unexpected equipment behavior by reviewing recent parameter changes.
Viewing Module Logs
Track operations in runtime modules.
Access Module Logs
- Open the Logs Management view
- Click the Module Logs tab
- View the list of module operations
📷 [UG-LOG-05] Module Logs tab showing module operations
Module Log Columns
| Column | Description |
|---|---|
| Timestamp | When operation occurred |
| Module | Module name (Recipe, Permissions, Alarms, etc.) |
| Operation | Action performed (create, edit, delete, apply, etc.) |
| Entity | Affected item (recipe name, user name, etc.) |
| User | Who performed operation |
| Result | Success or Failure |
| Details | Additional information |
Filter Module Logs
Use filters to find specific module operations:
By Module:
- Select module from dropdown
- View all operations for that module
By Operation:
- Select operation type
- View all create, edit, or delete operations
By User:
- Select username
- View all operations by that user
By Date Range:
- Set start and end dates
- View operations within time period
Common Module Log Queries
When was this recipe last applied?
- Filter by Module = Recipe Management
- Filter by Operation = Apply Recipe
- Filter by Entity = recipe name
- Sort by Timestamp descending
Who created this user account?
- Filter by Module = Permissions
- Filter by Operation = Create User
- Filter by Entity = username
What changes were made to alarms today?
- Filter by Module = Alarm Management
- Filter by Date = Today
- Review all operations
How many recipes were modified this week?
- Filter by Module = Recipe Management
- Filter by Operation = Edit Recipe
- Filter by Date Range = This Week
- Count unique entities
Exporting Logs
Export logs for external analysis or archival.
Export Logs
- Select the log type tab (Login, Equipment, or Module)
- Apply filters to select logs to export
- Click Export button
- Select export format:
- Excel (.xlsx)
- CSV (.csv)
- PDF (for reports)
- Choose save location
- Click Save
📷 [UG-LOG-06] Export dialog with format options
Export Uses:
- Compliance reporting
- External analysis (Excel, database)
- Long-term archival
- Incident investigation reports
💡 Tip: Export logs regularly for backup and archival purposes.
Log Retention and Management
Automatic Log Retention
The system automatically manages log storage:
Default Retention Periods:
- Login Logs: 90 days
- Equipment Logs: 30 days
- Module Logs: 90 days
Automatic Cleanup:
- Logs older than retention period are automatically deleted
- Cleanup runs daily at midnight
- Prevents database from growing indefinitely
⚠️ Caution: Export important logs before they are automatically deleted.
Configure Retention Periods
Adjust retention periods in system settings:
- Navigate to System Settings > Logs
- Set retention period for each log type
- Click Save
Considerations:
- Longer retention requires more storage
- Compliance requirements may mandate minimum retention
- Balance storage costs with audit needs
Manual Log Cleanup
Manually delete old logs if needed:
- Open Logs Management view
- Select log type tab
- Filter by date range to delete
- Click Delete button
- Confirm deletion
⚠️ Caution: Deleted logs cannot be recovered. Export before deleting if needed.
Best Practices
Regular Review
Daily Checks:
- Review failed login attempts
- Check for unusual equipment changes
- Monitor critical parameter modifications
Weekly Reviews:
- Analyze login patterns
- Review module operation trends
- Identify potential security issues
Monthly Audits:
- Generate compliance reports
- Review user access patterns
- Archive important logs
Security Monitoring
Watch For:
- Multiple failed login attempts (potential brute force)
- Logins at unusual times
- Unexpected parameter changes
- Unauthorized module operations
Response Actions:
- Investigate suspicious activity immediately
- Disable compromised accounts
- Review and strengthen security policies
- Document incidents
Compliance
Regulatory Requirements:
- Understand retention requirements for your industry
- Configure retention periods accordingly
- Export logs for long-term archival
- Maintain audit trail documentation
Audit Preparation:
- Keep logs organized and accessible
- Document log review procedures
- Train personnel on log interpretation
- Maintain chain of custody for exported logs
Performance
Optimize Log Storage:
- Set appropriate retention periods
- Archive old logs to external storage
- Monitor database size
- Clean up unnecessary logs
Query Performance:
- Use filters to limit result sets
- Avoid querying entire log history
- Export large datasets for offline analysis
- Index frequently queried fields
Troubleshooting
Logs Not Appearing
Problem: Recent actions are not showing in logs.
Possible Causes:
- Logging is disabled
- Database connection issue
- Insufficient permissions
Solutions:
- Check system settings for logging configuration
- Verify database connection
- Ensure user has permission to view logs
- Refresh the logs view
- Check system logs for errors
Cannot Export Logs
Problem: Export button is disabled or export fails.
Possible Causes:
- No logs selected
- Insufficient permissions
- Disk space full
- File path invalid
Solutions:
- Apply filters to select logs to export
- Verify user has export permissions
- Check available disk space
- Choose valid save location
- Try different export format
Logs Missing for Specific User
Problem: No logs appear for a particular user.
Possible Causes:
- User has not performed any actions
- User account was recently created
- Logs were deleted
- Filter is too restrictive
Solutions:
- Verify user has logged in and performed actions
- Check date range filter
- Remove other filters
- Check if logs were archived or deleted
Performance Issues
Problem: Logs view is slow to load or filter.
Possible Causes:
- Too many logs in database
- No filters applied (querying all logs)
- Database performance issue
Solutions:
- Apply date range filter to limit results
- Clean up old logs
- Export and archive old logs
- Optimize database (contact administrator)
- Increase retention cleanup frequency
Next Steps
Now that you know how to view and manage logs, explore:
- Managing Permissions: Control who can view logs
- Understanding Project: Configure system-wide logging settings
- Creating Event-Actions: Implement custom logging workflows
Related Topics
- Managing Permissions: Audit user access and permissions
- Using Recipe Management: Review recipe change logs
- Understanding Tags: Track tag write operations