Update analytics aggregation logic to accurately count attack packets by type and country, including fallbacks for missing data, and add validation to ensure breakdown totals match reported attack packets. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528 Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Event-Id: cafbc828-3e12-4d4f-8a02-5127b485612d Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/F6DiMv4
56 lines
3.3 KiB
Plaintext
56 lines
3.3 KiB
Plaintext
|
|
╔═══════════════════════════════════════════════╗
|
|
║ ✅ AGGIORNAMENTO COMPLETATO ║
|
|
╚═══════════════════════════════════════════════╝
|
|
|
|
📋 VERIFICA SISTEMA:
|
|
• Log backend: tail -f /var/log/ids/backend.log
|
|
• Log frontend: tail -f /var/log/ids/frontend.log
|
|
• API backend: curl http://localhost:8000/health
|
|
• Frontend: curl http://localhost:5000
|
|
|
|
📊 STATO SERVIZI:
|
|
root 20860 0.0 0.0 18344 6400 pts/3 S+ Nov22 0:00 sudo tail -f /var/log/ids/syslog_parser.log
|
|
root 20862 0.0 0.0 3088 1536 pts/3 S+ Nov22 0:02 tail -f /var/log/ids/syslog_parser.log
|
|
ids 64096 4.0 1.8 1394944 291304 ? Ssl 12:12 9:44 /opt/ids/python_ml/venv/bin/python3 main.py
|
|
ids 64102 16.0 0.1 52084 19456 ? Ss 12:12 38:36 /opt/ids/python_ml/venv/bin/python3 syslog_parser.py
|
|
root 69074 0.0 0.2 731152 33612 pts/0 Rl+ 16:13 0:00 /usr/bin/node /usr/bin/npm run dev
|
|
|
|
[root@ids ids]# sudo /opt/ids/deployment/setup_analytics_timer.sh
|
|
╔═══════════════════════════════════════════════╗
|
|
║ IDS Analytics Timer Setup ║
|
|
╚═══════════════════════════════════════════════╝
|
|
|
|
📋 Copia file systemd...
|
|
🔄 Reload systemd daemon...
|
|
⚙ Enable e start timer...
|
|
|
|
📊 Stato timer:
|
|
● ids-analytics-aggregator.timer - IDS Analytics Aggregation Timer - Runs every hour
|
|
Loaded: loaded (/etc/systemd/system/ids-analytics-aggregator.timer; enabled; preset: disabled)
|
|
Active: active (waiting) since Mon 2025-11-24 12:13:35 CET; 4h 3min ago
|
|
Until: Mon 2025-11-24 12:13:35 CET; 4h 3min ago
|
|
Trigger: Mon 2025-11-24 17:05:00 CET; 47min left
|
|
Triggers: ● ids-analytics-aggregator.service
|
|
|
|
Nov 24 12:13:35 ids.alfacom.it systemd[1]: Stopped IDS Analytics Aggregation Timer - Runs every hour.
|
|
Nov 24 12:13:35 ids.alfacom.it systemd[1]: Stopping IDS Analytics Aggregation Timer - Runs every hour...
|
|
Nov 24 12:13:35 ids.alfacom.it systemd[1]: Started IDS Analytics Aggregation Timer - Runs every hour.
|
|
|
|
📅 Prossime esecuzioni:
|
|
NEXT LEFT LAST PASSED UNIT ACTIVATES
|
|
Mon 2025-11-24 17:05:00 CET 47min left Mon 2025-11-24 16:05:01 CET 12min ago ids-analytics-aggregator.timer ids-analytics-aggregator.service
|
|
|
|
1 timers listed.
|
|
Pass --all to see loaded but inactive timers, too.
|
|
|
|
╔═══════════════════════════════════════════════╗
|
|
║ ✅ ANALYTICS TIMER CONFIGURATO ║
|
|
╚═══════════════════════════════════════════════╝
|
|
|
|
📝 Comandi utili:
|
|
Stato timer: sudo systemctl status ids-analytics-aggregator.timer
|
|
Prossime run: sudo systemctl list-timers
|
|
Log aggregazione: sudo journalctl -u ids-analytics-aggregator -f
|
|
Test manuale: sudo systemctl start ids-analytics-aggregator
|