Category Archives: Operations

Docker: install and upgrade (Ubuntu host)

Introduction This is the first post (of probably many more in the near future) to experiment with Docker. Goal is to build step by step a general understanding of container technology. As usual, I won’t elaborate on what containers are and what Docker is as there are many sites available that would probably do a better job on… Read More »

Create a Vagrant Base Box based on Ubuntu

Introduction In this post, we took the first steps with Vagrant. We have been using an image called ‘precise64’ which could be found at the following location: http://files.vagrantup.com/precise64.box. While this is certainly very nice to get started, I was wondering what it would take to fully create and define your own environment. So that’s what this post is… Read More »

Vagrant: AWS (Launch multiple instances)

Introduction A while ago, I provided a short intro on deploying a single virtual machine onto AWS (see this post). Since I was wondering how difficult it would be to deploy multiple EC2 instances I gave this a try as well. It turned out to be relatively simple, below are my findings. Since the Vagrantfile is basically Ruby… Read More »

Vagrant: AWS (Launch single instance)

Introduction In this post, we will get Vagrant working together with AWS instead of Virtualbox (as described here) or DigitalOcean (as described here). As in previous posts, we will use a shell script to install Apache on the EC2 instance automatically and run it as a webserver. Installing AWS plugin In order for Vagrant to work together with… Read More »

Vagrant: Provisioning with shell script

Introduction In this post, we described the very basics of Vagrant. In this post, we’ll explore some more advanced concepts. We will boot a virtual machine on top of VirtualBox (we described Digital Ocean in this post in case you would want to try it out using DigitalOcean) and install Apache immediately onto it. Automatically that is, not… Read More »

Vagrant and DigitalOcean (APIv2)

Introduction In this tutorial we learned to very basics of Vagrant. Essentially, it was showing how to create virtual machines on top of VirtualBox. In today’s article, I wanted to show you how to do this with DigitalOcean. In other words, we will create a recipe to create a virtual machine running on DigitalOcean. Installing the DigitalOcean plugin… Read More »

Getting started with Vagrant

Introduction I recently had to look deeper into Vagrant. Sure I heard about it, but I never got my hands dirty with it. As usual, I try to document most things of what I learn. Otherwise, I will have forgotten about it by next month. So, let’s get started. What is Vagrant? Vagrant allows you to create virtual… Read More »

ELK tutorial: part 3

Installing and configuring Logstash-Forwarder On the central server, create a folder called ‘/etc/pki/tls/certs’ and ‘/etc/pki/tls/private’: ubuntu@elk: sudo mkdir -p /etc/pki/tls/certs ubuntu@elk: sudo mkdir /etc/pki/tls/private Because logstash-forwarder is using an SSL connection to the ELK server, we will need to create a certificate. To do so, add the following to your ‘/etc/ssl/openssl.cfg’ file (most likely the v3_ca tag is… Read More »

ELK tutorial: part 2

Introduction In part 1, we installed the ELK stack. This part will focus on the configuration of it. We’ll keep it rather simple for now. We will process a local Apache access log file and visualize it using Kibana. Let’s get started! Configuring Logstash Logstash needs a configuration file. input { stdin { } } filter { grok… Read More »

ELK tutorial: part 1

[keen] Introduction I have recently been playing around with Elastisearch, Logstash and Kibana, often referred to as the ELK stack. Installing ELK Installing ELK is rather simple. To do so, go to the Elastic website (here) and download each package. As I’m running on Ubuntu (fresh install on Openstack), I’m downloading the equivalent packages for each service: ubuntu@elk:~$… Read More »