Security-Onion-Solutions / security-onion

Security Onion 16.04 - Linux distro for threat hunting, enterprise security monitoring, and log management
https://securityonion.net
3.07k stars 521 forks source link

sguil - unable to connect to localhost on port 7734 #1622

Closed FatnLazy closed 5 years ago

FatnLazy commented 5 years ago

hi team,

i tried to post it in the mailing group but for some reason it never posted my questions there so i will try my luck here..

i have some issues with the sguil every time i try to run it i get the following error: "Unable to connect to localhost on port 7734" i tried to run the sguil-db-purge command and get the following output:

Sun Aug 18 13:14:41 UTC 2019 Retention policy set to 1 days (deleting data prior to 20190817). Repair policy set to 7 days (repairing tables back to 20190811). Uncat policy set to 100000000 uncategorized events (categorizing events until we get down to 100000000). Stopping: securityonion

i also tried to run the sguil server with the following command : sudo sguild -c /etc/nsm/securityonion/sguild.conf -a /etc/nsm/securityonion/autocat.conf -g /etc/nsm/securityonion/sguild.queries -A /etc/nsm/securityonion/sguild.access -C /etc/nsm/securityonion/certs and got the following error:

2019-08-18 13:07:02 pid(8761) Loading access list: /etc/nsm/securityonion/sguild.access 2019-08-18 13:07:02 pid(8761) Sensor access list set to ALLOW ANY. 2019-08-18 13:07:02 pid(8761) Client access list set to ALLOW ANY. 2019-08-18 13:07:02 pid(8761) Email Configuration: 2019-08-18 13:07:02 pid(8761) Config file: /etc/sguild/sguild.email 2019-08-18 13:07:02 pid(8761) Enabled: No 2019-08-18 13:07:02 pid(8761) Connecting to localhost on 3306 as sguil 2019-08-18 13:07:02 pid(8761) MySQL Version: version 5.7.27-0ubuntu0.16.04.1 2019-08-18 13:07:02 pid(8761) SguilDB Version: 0.14 2019-08-18 13:07:02


                      ERROR: You appear to be using an old version of the

sguil database schema that does not support the MERGE tables Please use the migrate_event.tcl script and see the CHANGES document for more information

. Table event returned status => event {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {} {Incorrect file format 'event_onion-virtualbox-enp0s3-1_20190818'}


SGUILD: Exiting...

please let me know if you need any further information or logs..

Alex.