Skip to content

ChimeraCoder/znc-kibana-playbooks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published