Best Practices for Writing a Shell Script

I am a lazy DevOps Engineer. So whenever I came across the same task more than 2 times I automate that. Although now we have many automation tools, still the first thing that hit into our mind for automation is bash or shell script.After making a lot of mistakes and messy scripts :), I am sharing …

Can you integrate a GitHub Webhook with Privately hosted Jenkins No? Think again

Introduction One of the most basic requirement of CI implementation using Jenkins is to automatically trigger a Jenkins job post every commit. As you are already aware there are two ways in which a Jenkins job can be triggered in an automated fashion is: Pull | PollSCM Push | Webhook It is a no-brainer that …

Log Parsing of Windows Servers on Instance Termination

 As we all know that how critical are Logs as a part of any system, they give you deep insights about your application, what your system is doing and what caused the error. Depending on how logging is configured logs may contain transaction history, timestamps and amounts debited/credited into client’s account and a lot more. …

Prometheus Overview and Setup

Overview Prometheus is an opensource monitoring solution that gathers time series based numerical data. It is a project which was started by Google’s ex-employees at SoundCloud.  To monitor your services and infra with Prometheus your service needs to expose an endpoint in the form of port or URL. For example:- {{localhost:9090}}. The endpoint is an HTTP …

EC2 Ssh Connection Refused

When ssh: connect to host ip_address port 22 Connection refused Unable to access server??? Exactly when you see the error – “ssh: connect to host ip_address port 22: Connection refused” while connecting your AWS EC2 Instance. In order to find solution of the problem, you will go to AWS forum and other channels where you need to …

Logstash Timestamp

Introduction A few days back I encountered with a simple but painful issue. I am using ELK to parse my application logs  and generate some meaningful views. Here I met with an issue which is, logstash inserts my logs into elasticsearch as per the current timestamp, instead of the actual time of log generation. This …

Chef Start here with ease..

Introduction “Until I discovered cooking, I was never really interested in anything. Julia Child” Chef, the lead in automation industry has many tickling facet and calibre. Before introducing the potentials of “The Chef”, it’s non negotiable to evade the foresight of its relevance to devops exercises. Chef can take care of server automation, infrastructure environment …

Setup Jenkins using Ansible

In this document I’ll walk you through how you can  setup jenkins using ansible.Prerequisites  OS – Ubuntu {at least two machine required in production}  First machine for Ansible  installation  Second machine where we will install jenkins server You should have basic understanding of ansible workflow. Note :  You should have password less login enabled in …

How to Manage Amazon Web Services Instances part 1

If you want to minimize the amount of money you spend on Amazon Web Services (AWS) infrastructure, then this blog post is for you. In this post I will be discussing  the rationale behind starting & stopping AWS instances in an automated fashion and more importantly, doing it in a correct way. Obviously you could …

Puppet module to setup nodejs deployment 2

As I said in the previous blog Puppet module to setup nodejs deployment, the nodejs module was for providing the basic infrastructure for automated node app’s deployment & as promised I’ve released the next module “nodeapp” that can be used to setup a node app on the target server. First of all I’ll talk about …

Design a site like this with WordPress.com
Get started