Elec,
Please provide the output of sostat-redacted:
https://github.com/Security-Onion-Solutions/security-onion/wiki/MailingLists#include-sostat-redacted-output
Thanks,
Wes
Elec,
Are you able to manually SSH to the server using the sensor account?
Is the sensor defined correctly in the server's /etc/elsa_web.conf?
Does the APIKEY for the sensor match (from it's elsa_web.conf to that of the master's)?
Try taking a look in the server's log files (/nsm/elsa/data/elsa/log/*) to see if you notice any errors that may be related to your issue.
I would also try logging into Sguil and categorizing some events, as you currently have quite a few uncategorized events:
Ex. 70561
Failure to do so could cause performance impact and potential database table corruption to securityonion_db (Sguil's DB).
Also, please provide the output of sostat-redacted for the sensor.
Finally, did you happen to install the sensor/master using the ISO or via PPA?
If you did install via PPA, did you make sure to perform the following step?
echo "debconf debconf/frontend select noninteractive" | sudo debconf-set-selections
Thanks,
Wes
Wes,
I am able to ssh from the sensor to the server.
The sensor does seem to be defined correctly in the server's /etc/elsa_web.conf
Both APIKEYs do indeed match. I attached a screenshot of both API Keys (Elsa_web_conf_sensor.jpg and Elsa_web_conf_server.jpg)
The only log file that I am receiving an error in is /nsm/elsa/data/elsa/log/node.log and the errors are attached in a screenshot (Elsa_node_log_error.jpg).
I am working on categorizing events more. They are already tuned ALOT by changing the definition of $EXTERNAL_NET from "any" to "!$HOME_NET".
I tried doing the same thing with sostat for the sensor as I did with the server and it keeps getting hung on "Checking APIKEY". I waited for an hour and it still would not complete so I ran "sudo sostat" without piping it out and it completed (see attached screenshots; Elsa_error_log.jpg and Elsa_error_log2.jpg). As you can see, it says "APIKEY not found on master server". Also as you can see on the Starman processes, it looks like it is writing to an error log. So I also attached the screenshot for that log (starman_log.jpg). I am not sure what it means by "Couldn't unlink "/var/run/starman.pid" [Permission Denied]", but I thought it was interesting.
Elec,
It looks like there is no entry for the sensor in the server's elsa_web.conf.
The APIKEY that you thought matched was only referring to
You will need to have something like the following:
},
"peers": {
"127.0.0.1": {
"url": "http://127.0.0.1:3154/",
"username": "elsa",
"apikey": "yyyyyyyyyyyyyyyyyyyyy"
},
"sensor1": {
"url": "http://127.0.0.1:50000/",
"username": "elsa",
"apikey": "xxxxxxxxxxxxxxxxxxxxx"
}
}
Above, the server has it's own APIKEY (127.0.0.1) and is referencing the sensor and its APIKEY (sensor1)
In the sensor's elsa_web.conf, you would have something like:
},
"peers": {
"127.0.0.1": {
"url": "http://127.0.0.1:3154/",
"username": "elsa",
"apikey": "xxxxxxxxxxxxxxxxxxxxxx"
}
},
This defines the sensor's APIKEY.
Try modifying your configuration as above and restarting services to see if it helps.
Also, you may want to change your APIKEYs now. Generally, you do not want to expose this information externally, as it is essentially a password for each of your machines to talk to one another.
Thanks,
Wes
Okay,
I have added the sensor and changed my APIKEYs and restarted services and it is now recognizing both nodes. However, it is showing "2 node(s) with undefined logs indexed and undefined archived" and the from time is "1969-12-29 19:00:00"
Before we try anything else, please reboot the server and wait for all services to start. Then reboot the sensor.
Thanks,
Wes
--
Follow Security Onion on Twitter!
https://twitter.com/securityonion
---
You received this message because you are subscribed to the Google Groups "security-onion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to security-onio...@googlegroups.com.
To post to this group, send email to securit...@googlegroups.com.
Visit this group at https://groups.google.com/group/security-onion.
For more options, visit https://groups.google.com/d/optout.