Here is the quickest way to deploy a development version of the Graylog instance locally on your desktop machine. Prerequisites Depending on your environment, you will have to install Docker Once installed, run these commands and you will have a fully working graylog running locally at http://127.0.0.1:9000/ Default username/password is admin/admin Expose additional ports By…Continue reading Setup graylog locally on Windows/Linux/Mac
Category: Linux
Automatically update running docker container with the latest image
Watchtower is an open-source tool that scans the running container and restarts those containers with the same parameters if it detects a newer version in the repository. It supports public such as docker hub and private repositories such as Azure Container Repository or AWS ECR By default, Watchtower monitors all the container, but most of…Continue reading Automatically update running docker container with the latest image
Bash – Extract IP, Count Unique IPs and Sort
Given the apache access_log file content, to get the number of unique IPs use the following command
Extend osDisk partition on Azure Linux CentOS 7.x VM
Azure VMs usually comes with the default osDisk 30-50GB and often you will find that needs to be increased. The following steps can be used to extend the disk as well as the partition. Assumptions Here we assume that the VM is on CentOS 7.x version. (The same steps should work for lower version as…Continue reading Extend osDisk partition on Azure Linux CentOS 7.x VM
Automated MongoDB backup on Docker Swarm and save on AWS S3
AWS doesn’t have a PaaS service offering for MongoDB at the moment. So it is the DevOps’s responsibility to maintain their own backups of the production MongoDB databases. So I’ve developed a custom script that makes use of Docker containers to deploy a backup container. This script will generate backup in specified intervals and upload…Continue reading Automated MongoDB backup on Docker Swarm and save on AWS S3
Cronjobs in distributed environments – Cronlock using NFS/External mount
Have you ever in a situation where you have multiple backend servers and your cronjob is scheduled in one server and it didn’t run when that server went down OR you have a Docker Swam based cluster where you have several worker nodes and you do not want the cronjob to execute more than once…Continue reading Cronjobs in distributed environments – Cronlock using NFS/External mount
One-off cronjob container on Docker Swarm
Docker containers are good for running small tasks due to the size and memory requirement for running in a server. It makes docker a perfect candidate for running short-lived and one-off jobs. Throwing Docker Swarm into the picture, we get a cluster where we can start the docker service and let docker select the suitable…Continue reading One-off cronjob container on Docker Swarm
Graylog Standalone on Ubuntu Installation
Graylog is a log aggregation tool. Installing and setting up graylog is pretty straightforward. Here is a simple guide to install graylog on an ubuntu server. This setup is recommended for non-production or low traffic environments where you don’t need any redundancy. For a production level setup, it is recommended to at least have two…Continue reading Graylog Standalone on Ubuntu Installation
Docker Engine – Install a fixed version on Ubuntu
Containerization is everywhere. Docker is the name that comes to our mind when we talk about containers. Is the latest version of the docker the greatest? I’ve been using docker containers, especially docker swarm mode, for over a couple of years now and I’d say no! Docker is still being actively developed. With that being…Continue reading Docker Engine – Install a fixed version on Ubuntu
Monitor Apache using monit
Monit is a small Open Source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. Installing monit on CentOS 7 yum install epel-release -y yum install monit -y Once installed, save the following in /etc/monit.d/apache check process httpd with pidfile /var/run/httpd/httpd.pid group…Continue reading Monitor Apache using monit