Skip to content

Repository files navigation

Python logging to ElasticSearch via Logstash

Current ELK-Stack Version: 7.17.5

Setup for python logger

  • Copy app_logger and utils modules to your python project folder
  • cd pythonModules
  • pip install -r requirements.txt
  • Set the ip and port of your logstash instance in logger.py. (Setup for port 5000, and whichever is the IP of the machine that will host ELK)
  • See main.py for an example usage.

Setup for Elastic Stack

  • System Requirements (For Ubuntu 20.04 in VirtualBox, I utilized 6GB RAM and 2 CPU Cores)

  • DO NOT USE initialize_docker_workspace.sh IF YOU DON'T WANT ALL YOUR DOCKER-STUFF TO BE DELETED !

  • If you only experiment with this repo, run sh initialize_docker_workspace.sh to 'default' docker.

  • docker-compose up --build -d

  • Let it cook for ~4 minutes in 180C, and it's ready.

  • Access your Kibana instance from 'YOUR-VM-IP:5601' (YOUR-VM-IP is also the ip address that needs to be set in logger.py)

  • It is set up to login without credentials, and without X-Pack.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages