Fix error when saving network logs to the database
Correct SQL query to insert data into the network_logs table, resolving "relation 'network_logs' does not exist" errors. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: e8e7edaf-8ac8-493c-b890-465ff617b0ce Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/MkBJZ0L
This commit is contained in:
parent
e259c6c5c0
commit
e5f307af27
@ -0,0 +1,48 @@
|
|||||||
|
pkill -f syslog_parser
|
||||||
|
[root@ids python_ml]# sudo -u ids nohup python3.11 syslog_parser.py > /var/log/ids/syslog_parser.log 2>&1 &
|
||||||
|
[2] 60160
|
||||||
|
[1] Terminated sudo -u ids nohup python3.11 syslog_parser.py > /var/log/ids/syslog_parser.log 2>&1
|
||||||
|
[root@ids python_ml]# sudo -u ids nohup python3.11 syslog_parser.py > /var/log/ids/syslog_parser.log 2>&1 &
|
||||||
|
[3] 60164
|
||||||
|
[root@ids python_ml]# tail -20 /var/log/ids/syslog_parser.log
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
[root@ids python_ml]# tail -20 /var/log/ids/syslog_parser.log
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
|
|
||||||
|
[ERROR] Errore salvataggio log: relation "network_logs" does not exist
|
||||||
|
LINE 2: INSERT INTO network_logs
|
||||||
|
^
|
||||||
Loading…
Reference in New Issue
Block a user