Code Monkey home page Code Monkey logo

znc-kibana-playbooks's Introduction

ZNC, logstash, and Kibana for Docker with SSL

  • Run the ZNC IRC Bouncer in a Docker container.

  • View chat logs using Kibana

Set up ZNC bouncer

  1. (optional) If restoring from a backup, uncomment the first task in znc.yml (If necessary, update znc.yml to use the local path to the backup directory, which defaults to znc-default)

  2. (optional Generate a self-signed SSL cert by running

$ ansible-playbook genkeys.yml

After you have done this, simply run

$ ansible-playbook znc.yml

If you do not already have a znc.conf file in your znc config directory, you need to generate one from the interactive prompt. After running the above playbook once, run the following command on the remote server as root:

$ docker run --rm -it -v /home/znc/.znc:/znc-data chimeracoder/docker-znc-ssl --makeconf --datadir=/znc-data

Don't start the ZNC server when it asks you if you want to, since we'll be starting it as a daemon (so it runs in the background). When you're done generating the config, start the service systemctl start znc.service.

Set up log view with Kibana

  1. Create the directory ~/kibanaconf on the remote server
  2. Create signed SSL key/cert pair named nginx.crt and nginx.key and place them in the ~/kibanaconf directory. (You probably want to use the same SSL certificate for Kibana and the ZNC server if you intend to run these on the same host)
  3. Set two local environment variables, USERNAME and PASSWORD, which will be used to restrict access to the log view

If you have less than 512 MB of RAM on the server, you may want to enable swap, as logstash tends to use around 500 MB when reading in logs for the first time:

$ ansible-playbook kibana.yml  -vvvv

After you have done this, simply run

$ ansible-playbook kibana.yml  -vvvv

znc-kibana-playbooks's People

Contributors

chimeracoder avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.