How nihaldalil2/iot-gid-monitoring works
This repository is a real-time log monitoring pipeline: log files are parsed and checked for anomalies, then events flow through MQTT and Telegraf into InfluxDB for Grafana visualization. The README documents the end-to-end stack; publisher.py shows the parsing, anomaly checks, and publishing calls. Broker, Telegraf, database, dashboard, and Compose internals are represented only at the documented level because their configuration contents were not sampled.
Main entry points: publisher.py Log publisher · docker-compose.yml Compose runtime · mosquitto.conf Mosquitto MQTT · telegraf.conf Telegraf agent
Components 11
Log ingestion
- Log publisher
publisher.py - Apache parser
publisher.py - Server parser
publisher.py - GID parser
publisher.py - Anomaly detection
publisher.py
Message transport
- Mosquitto MQTT
mosquitto.conf
Metrics and visualization
- Telegraf agent
telegraf.conf - InfluxDB
- Grafana
Runtime configuration
- Compose runtime
docker-compose.yml
Other components
- Log files
Connections 16
- Log files → Log publisher: reads lines
publisher.py - Log publisher → Apache parser: dispatches
publisher.py - Log publisher → Server parser: dispatches
publisher.py - Log publisher → GID parser: dispatches
publisher.py - Apache parser → Anomaly detection: checks event
publisher.py - Server parser → Anomaly detection: checks event
publisher.py - GID parser → Anomaly detection: checks event
publisher.py - Log publisher → Mosquitto MQTT: publishes events
README.md - Mosquitto MQTT → Telegraf agent: forwards events
README.md - Telegraf agent → InfluxDB: writes metrics
README.md - InfluxDB → Grafana: visualizes data
README.md - Compose runtime → Log publisher: runs stack
README.md - Compose runtime → Mosquitto MQTT: runs stack
README.md - Compose runtime → Telegraf agent: runs stack
README.md - Compose runtime → InfluxDB: runs stack
README.md - Compose runtime → Grafana: runs stack
README.md