Skip to content

Instantly share code, notes, and snippets.

@ikocev
ikocev / install-ELK.sh
Last active June 4, 2022 23:43
Install ELK (Elasticsearch + Logstash + Kibana) on Raspberry PI 4 with Nginx proxy
#I manage to make it working with the following versions:
#Elasticsearch 5.6.16. - (latest 5 version) since newer major is having issue with logstash and content type header. The problem origin at logstash not being able to run on raspberry with newer version (ffi issue - well known one).
#Logstash 2.4.0 - I know, right! It's 2019 almost 2020.
#Kibana - I didn't installed kibana on the PI, because I had it locally on my laptop. The problem was to configure
#elasticsearch to broadcast on 0.0.0.0 which puts the service into PROD mode. That open one big issues:
#JVM have to run as a server to enable hotspot (-server). Tried that one but on PI JVM simply can't be run with HotSpot
#Instead, I did proxy forward with nginx for elasticsearch, and then configured my kibana to use nginx proxy.
# ============= Elasticsearch =========== #
cd /tmp/
@ikocev
ikocev / nginx.conf
Created November 24, 2016 20:55 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@ikocev
ikocev / introrx.md
Created October 26, 2016 08:45 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing