Purpose
Operator logs create a bridge between sensor anomalies and actual maintenance activities, enabling:- Supervised ML Training: Correlate sensor patterns with known failure modes
- Audit Trail: Document maintenance history for compliance and analysis
- Chart Overlay: Visualize maintenance events on the sensor telemetry chart
- Failure Mode Analysis: Identify which sensor patterns precede specific failure types
All operator logs are persisted to InfluxDB in the
maintenance_logs measurement within the sensor_data bucket.Logging a Maintenance Event
The form includes the following fields:Asset ID
Field: Read-only (pre-filled with
Motor-01)Purpose: Identifies which asset the maintenance was performed on.Event Type
Field: Dropdown (required)Options:
- Preventive Lubrication — Scheduled lubrication activity
- Preventive Cleaning — Scheduled cleaning activity
- Preventive Inspection — Routine inspection
- Corrective Bearing Replacement — Bearing replacement due to wear
- Corrective Alignment — Motor/pump alignment adjustment
- Corrective Electrical — Electrical system repair
- Status Calibration — System recalibration event
- Status Restart — System restart or reboot
Severity
Field: Dropdown (required)Options:
- LOW — Minor maintenance, no production impact
- MEDIUM — Moderate issue, scheduled downtime
- HIGH — Urgent repair, unplanned downtime
- CRITICAL — Emergency failure, immediate action
Description
Field: Text area (required, max 1000 characters)Purpose: Free-text description of the maintenance activity.Example:
Example Log Entry
Bearing Replacement
Asset: Motor-01
Type: Corrective Bearing Replacement
Severity: HIGH
Description: Replaced main bearing due to excessive vibration. Part #SKF-6205-2RS.
Timestamp: 2026-01-31T10:30:00Z
Type: Corrective Bearing Replacement
Severity: HIGH
Description: Replaced main bearing due to excessive vibration. Part #SKF-6205-2RS.
Timestamp: 2026-01-31T10:30:00Z
How Logs Are Stored
When you submit a log entry, it is written to InfluxDB with the following schema:- Measurement
- Fields (Unindexed)
- Timestamp
Name:
maintenance_logsBucket: sensor_data (same as sensor telemetry)InfluxDB Point Example
Chart Overlay (Future Enhancement)
Operator logs can be queried and displayed as vertical markers on the sensor telemetry chart:ML Training Use Case
Operator logs serve as supervised labels for training failure prediction models:Example: Bearing Failure Prediction
- Collect Data: 6 months of sensor data + operator logs
- Label Events: Extract all
CORRECTIVE_BEARING_REPLACEMENTevents - Feature Extraction: Pull sensor data from 24 hours before each replacement
- Train Classifier: Learn patterns that precede bearing failures
- Deploy Model: Predict bearing failures 7-14 days in advance
The
/api/logs endpoint allows querying logs by time range and asset, making it easy to export data for offline ML training.API Reference
Create Log Entry
Retrieve Logs
List Event Types
InfluxDB Persistence Benefits
Time-Series Alignment
Logs share the same timestamp domain as sensor data, enabling precise correlation
Indexed Tags
Fast queries by asset_id, event_type, and severity using InfluxDB’s tag indexing
Retention Policies
Configure automatic data expiration for older logs (e.g., keep 2 years)
Flux Query Integration
Use Flux to join sensor data with maintenance logs for correlation analysis
Best Practices
Be Specific
Include part numbers, measurements (e.g., “vibration reduced from 0.35g to 0.14g”), and technician notes.
Next Steps
Dashboard Overview
Learn about the overall dashboard layout and features
Metrics & Health Scoring
Understand how sensor metrics are displayed and calculated