- port 5000 is for syslog (UDP and TCP)
- port 5006 is for docker containers' logs (UDP)
- port 5301 is for journald logs (TCP)
- port 9200 is for elasticsearch
- port 5601 is for kibana
sudo docker run -d -p 5000:5000/udp -p 5006:5006/udp -p 5301:5301 -p 9200:9200 -p 5601:5601 --name zelk zetaops/elk
- This will send docker containers' logs to your elk host's 5006 port.
sudo docker run -d --name logspout --volume=/var/run/docker.sock:/tmp/docker.sock zetaops/logspout syslog://ELK_MACHINE_IP(HOSTNAME):5006
journalctl -o short -f | ncat ELK_MACHINE_IP(HOSTNAME) 5301
journalctl -o short -u service_name.service -f | ncat ELK_MACHINE_IP(HOSTNAME) 5301
For ElasticSearch
curl http://ELK_MACHINE_IP(HOSTNAME):9200/_search?pretty
For Kibana
http://ELK_MACHINE_IP(HOSTNAME):5601