Closed ethical20 closed 4 years ago
Hey @ethical20 ! HELK supports Docker Containers for the deployment of the project. I see you are using a manual install and using certificates with Logstash. It is hard to troubleshoot a custom environment. Would it be possible for you to run HELK using the official install script via Docker? https://github.com/Cyb3rWard0g/HELK/blob/master/docker/helk_install.sh . Also, use the official way to ship logs from windows endpoints? https://github.com/Cyb3rWard0g/HELK/blob/master/configs/winlogbeat/winlogbeat.yml . Let me know if that works. I have not worked on certificates authentication for the HELK deployment.
let me know if you still have questions about this custom deployment. Fell free to re-open this issue or create a new for additional questions.
Describe the problem
I'm trying to send logs from a windows machine via winlogbeat to the HELK (UBUNTU).
I've set everything as listed step by step:
For server: https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat_98.html
For windows Client machine: https://cyberwardog.blogspot.com/2017/02/setting-up-pentesting-i-mean-threat_87.html
I'm not able to add the winlogbeat-* in Index pattern in Kibana, I've checked winlogbeat logs and I can see this error:
ERROR pipeline/output.go:100 Failed to connect to backoff(async(tcp://192.168.2.211:5044)): read tcp 192.168.2.24:52545->192.168.2.211:5044: wsarecv: An existing connection was forcibly closed by the remote host.
Provide the output of the following commands
Get operating system and version for linux (except Mac) use:
cat /etc/os-release
for Mac/OSX use:
sw_vers
Get disk space, memory, processor cores, and docker storage
echo -e "\nDocker Space:" && df -h /var/lib/docker; echo -e "\nMemory:" && free -g; echo -e "\nCores:" && getconf _NPROCESSORS_ONLN
Get output of the HELK docker containers:
docker ps --filter "name=helk"
Provide the HELK installation logs located at /var/log/helk-install.log if you are having install errors
What version of HELK are you using
run the command from within the HELK root directory
cat .git/refs/heads/master
and include what date you cloned the HELK repo
What version of Winlogbeat are you using if you are using Windows/WEF logs
What steps did you take trying to fix the issue
After A long search I realized that this issue is related to TLS/SSL
I've recreated new cert and key: sudo openssl req -subj '/CN=elk-server/' -x509 -days 3650 -batch -nodes -newkey rsa:2048 -keyout ssl/logstash-forwarder.key -out ssl/logstash-forwarder.crt
Copied the contents of the logstash-forwarder.crt to the windows machine
Restarted winlogbeat process, the hole machine, the whole ubuntu environment HELK resides on.
Tested the config yml file for both the HELK and winlogbeat on : http://www.yamllint.com/ (no errors)
How could we replicate the issue
Any additionally code or log context you would like to provide
Any additional context or input you have
Testing the certificate:
curl -v --cacert logstash-forwarderN.crt https://192.168.2.211:5044
Ports:
pictures, comments, etc.