Quick Setup
If you installed via package manager (.deb or .rpm), the service is already configured:Service Management
Basic Commands
Service Status
- Active: active (running) - Service is running normally
- Active: inactive (dead) - Service is stopped
- Active: failed - Service crashed or failed to start
- Loaded: enabled - Service will start on boot
- Loaded: disabled - Service will NOT start on boot
Default Service Configuration
Package Installation
After package installation, the service is configured at: Ubuntu/Debian:Customizing the Service
To customize the service configuration, use systemd drop-in files:Example: Change Output Location
Example: Enable Web UI
Example: Export to OTLP
Example: Filter by Process
Example: Enable Debug Logging
Example: Run as Root
If you need to run as root (not recommended):Configuration File
Instead of command-line flags, use a configuration file: Create/etc/oisp/config.toml:
Monitoring the Service
View Logs in Real-Time
Check Resource Usage
Check Event Capture
Auto-Restart Configuration
The default service automatically restarts on failure:no- Never restarton-success- Restart only on clean exiton-failure- Restart on non-zero exit, signal, timeout (default)on-abnormal- Restart on timeout or signalon-abort- Restart on unclean signalalways- Always restart
Health Checks
Set up automated health monitoring:1. Systemd Health Check
Create a timer to periodically check the service:2. Web UI Health Endpoint
If running with--web:
Log Rotation
The sensor logs to journald by default, which auto-rotates. For JSONL file output, set up log rotation: Create/etc/logrotate.d/oisp-sensor:
Troubleshooting
Service Won’t Start
-
Check logs:
-
Check permissions:
-
Verify system requirements:
-
Try running manually:
Service Crashes or Restarts
-
Check recent logs:
-
Check resource limits:
-
Enable debug logging:
Add:
High CPU or Memory Usage
See Production Deployment - Performance Tuning.Next Steps
- Production Deployment - Security, monitoring, performance tuning
- Configuration - Full configuration reference
- Troubleshooting - Solve common issues