Kibana – reset

delete filebeat template curl -X DELETE http://localhost:9200/_template/filebeat-6.0.0 delete all indices: curl -X DELETE ‘http://localhost:9200/_all’ delete ingest template curl -X DELETE localhost:9200/_ingest/pipeline/filebeat-* Using the developer console DELETE /_template/filebeat-6.0.0 DELETE /_all DELETE /_ingest/pipeline/filebeat-*

Redis for development

Docker Install docker: https://store.docker.com/search?type=edition&offering=community Run Server docker run –name redis -v /tmp/redis:/data -d redis redis-server –appendonly yes –name {name}: where {name} is the nick name of the container -v {path}:/data: where {path} will be used by redis to persist data Run Client docker run -it –link redis:redis –rm redis redis-cli Read more…

RabbitMq in Docker Container

Make sure you have docker CE installed and running, then start container: docker run -p 15672:15672 -p 5672:5672 –name rabbitmq rabbitmq:management -p {localhost port}:{container port}: exposes container port on localhost port –name {name}: assign name to container Check the Management web site by opening the web browser and navigating to: http://localhost:15672 Read more…

HTTPS on the cheap

HTTPS using Let’s Encrypt and NGINX on Ubuntu 16.04 LTS. In this instructions we will assume your web site is going to be hosted at www.site.com.  Install certbot Add certbot repo/key: sudo apt-get install software-properties-common sudo add-apt-repository ppa:certbot/certbot Install certbot: sudo apt-get update sudo apt-get install python-certbot-nginx Install nginx: sudo Read more…

MongoDB on Ubuntu 16.04

The mongodb package included by default in Ubuntu is usually behind. Follow these instructions to install verion 3.4 from the mongodb repo. Install from MongoDB repo Import the public key used by the package management system sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –recv 0C49F3730359A14518585931BC711F9BA15703C6 Create a list file for MongoDB echo Read more…

RabbitMq Management

UPDATE: run rabbitmq in a docker container Follow these instructions to configure RabbitMq management and expose it on the web. Check this post for instructions on how to setup RabbitMq on Ubuntu 16.04. Enable Plugin In order to list all the plugins and whether they are enabled or not, run: sudo rabbitmq-plugins Read more…

RabbitMq Setup

The instructions in this recipe assume a server running Ubuntu 16.04. Update/Upgrade Packages sudo apt-get update sudo apt-get upgrade Install RabbitMq At the time of writing this, Ubuntu 16.04 includes RabbitMq server version 3.6.3. To get a more up-to-date version (3.6.12), you can get it from the rabbitmq “testing” repo. Read more…