HOW TO SETUP A SECURE ELASTICSEACH 5.5.1 SEVER WITH X-PACK- Amazon EC2

ELASTICSEACH 5.5.1 SEVER WITH X-PACK

From last article and another one, we can understand what is Elasticseach  and how to install, how to make Dockerfile and Elasticsearch configuration. In this post we will go through to setup Elasticsearch 5.5.1 server, with X-PACK to secure your Elasticsearch Server.

Assume that you have AWS EC2 Instance with Ubuntu 16.04 LTS or on your Local Environment.

Elasticsearch Installation

With Aws EC2 instance that have an Ubuntu 16.04 base image.  We need to set up the JAVA environment (JAVA SDK): OpenJDK and OpenJRE.  Next, let’s add Elastic APT repository with Ubuntu ans install elasticsearch itself.

#Install OpenJDK and JRE

$ sudo apt-get install default-jdk -y

$ sudo apt-get install openjdk-8-jre -y

$ sudo apt-get update

#Add the Elasticsearch APT repo in your package source list

$ echo "deb https://artifacts.elastic.co/packages/5.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-5.x.list

#signing_key and update repository

$ sudo apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv D88E42B4

$ sudo apt-get install apt-transport-https -y


#install elasticsearch

$ sudo apt-get update -y
$ sudo apt-get install elasticsearch -y

Continue reading

Advertisements

How to make Dockerfile for Elasticsearch | How to Install and Configure Elasticsearch with the Docker

ELASTICSEARCH 

Elasticsearch is a popular open-source search and analytics engine for use cases such as log analytics, real-time application monitoring, and click stream analytics.

Elasticsearch  is a search server based on Lucene. Elasticsearch is developed in Java and is released as open source under the terms of the Apache License. Elasticsearch is the most popular enterprise search engine followed by “Apache Solr”, also based on Lucene.

To know more please click here

So here in this article we have to learn that how to write Dockerfile for Elasticsearch v2.4.5  and build Elasticsearch’s Docker image and run a Docker Container.

For the above things we have to follow these steps and assume that you have Linux OS in your system and Docker engine are running.

  1. Make a Docker file with Ubuntu 16.04 Base image
  2. Build Image from Dockerfile
  3. Run Docker Container
  4. To configure your elasticsearch server execute the container and configure as per your requirements

Continue reading

How to Generate pem file to ssh the server without Password in Linux

ssh by pem file to Access Server

It is a standard procedure, now how to make this work without using password, using just a .pem file?

PEM

PEM or Privacy Enhanced Mail is a Base64 encoded DER certificate.  PEM certificates are frequently used for web servers as they can easily be translated into readable data using a simple text editor.  Generally when a PEM encoded file is opened in a text editor, it contains very distinct headers and footers.

PEM is a widely used encoding format for security certificates. Syntax and content is defined by X.509 v3 standards for digital certificates, defined in IETF RFC 5280 specifications. The main file extensions are .pem, .crt, .ca-bundle. Continue reading

Understand Continuous Integration And Deployment With Jenkins –Life Cycle: Before You Regret

Deployment Should be…

  • Simple
  • Stable
  • Fast
  • Reliable & one click

Continuous Integration and deployment with Jenkins – Life cycle:

1.Continuous integration

Continuous integration is the process of merging development works with the branch(code) several times in a day constantly. Most of the work here is done by automated.
Continue reading

Backup Of MySQL Database To Amazon S3 Using BASH Script Is Not Rocket Science! Learn Them Now!

s3backupBackup of MySQL Database to Amazon S3 using BASH Script

This is a easy way to backup your Mysql Database  to Amazon S3 for a regular interval backup – this is all to be done on your server.

First need to have the checklist  i.e must important for the any task you want to do in a proper way.

  • S3cmd  command line configure on server
  • A bucket over S3 to store dump file
  • Make Bash Script  i.e Contains MySQL Credential ( Hostname, Username, DB Name ), Location on your server where you want to store dump (PATH), Log Path.
  • Give chmod  +x on mysqlbackup Script (mysql.sh)
  • Test it and check S3 bucket
  • Schedule with cron as per your requirement

Continue reading

All You Need To Know About Configuration Management Tools For DevOps Engineer.

devops-toolsConfiguration Management Tools for DevOps

DevOps   is a combination of software development and operations — and as its name suggests, it’s a melding of these two disciplines in order to emphasize communication, collaboration, and cohesion between the traditionally separate developer and IT operations teams.

In the past, To maintaining IT infrastructure, deploying applications, and provisioning environments we have to involved in many manual efforts, iterative tasks. But in today’s DevOps platform, true automation of these tasks has arrived. The most benefits of automated configuration management range from time savings to elimination of human error. Continue reading

What is DevOps?

2000px-devops-svg_What is Devops?

DevOps” as a term was first coined in 2009 by Patrick Debois, who became one of its chief proponents. Simply put, DevOps is a combination of software development and operations — and as its name suggests, it’s a melding of these two disciplines in order to emphasize communication, collaboration, and cohesion between the traditionally separate developer and IT operations teams.

Continue reading

How to Scheduled ‘Task’ with Cron Jobs in Linux

crontab-format CRONTAB

A crontab file is a simple text file containing a list of commands meant to be run at specified times. It is edited using the crontab command. The commands in the crontab file (and their run times) are checked by the cron daemon, which executes them in the system background.

Each user (including root) has a crontab file. The cron daemon checks a user’s crontab file regardless of whether the user is actually logged into the system or not.

Here is an explanation of the crontab format.

  1. Minute when the process will be started                            [0-60]
  2.  Hour when the process will be started                               [0-23]
  3.  Day of the month when the process will be started      [1-28/29/30/31]
  4.  Month of the year when the process will be started      [1-12]
  5.  Weekday when the process will be started                       [0-6] [0 is Sunday]

Continue reading

How to install and configure Jenkins on Amazon EC2, Cloud-Ubuntu 12.04, 14.04 LTS

jenkins-featuresJenkins

Jenkins is an open source Continuous Integration tool that monitors execution of repetitive jobs, such as building a software project or jobs ran by cron. It’s written in Java programming language and designed to test and report on isolated changes in a larger code in real time.

It is Originally started as Hudson in 2004 but due to a dispute in 2011 they forked and continued under the name, Jenkins.

It can be used to build software, deploy software, or websites to various endpoints or to run unit/behaviour-driven software tests.

So the builds on top of Continuous Integration are Continuous Deployment and Delivery where after the successful tests you will be able to run, instantly and automatically release with the latest version of your codebase. We can say Jenkins makes deployment a non-issue and helps you speed up your development.

Basically, we can say that “Jenkins is a Continuous Integration server which is the best practice of running your tests on a non-developer machine.”

Continue reading

How to Install TeamViewer 11 on Ubuntu System

TeamViewermobileapps-remotecontrol

As we know that,  “TeamViewer”  is a popular  software used for  system’s (PC) remote access and support . TeamViewer software can connect to any PC or server, so you can remote control your partner’s PC  from anywhere by Internet as if you were sitting right in front of it. For the remote session to work the partner has to start a small application, which does not require installation or administrative rights.

TEAMVIEWER HAS LOT OF ADVANTAGES IT SHOWS, WHY SHOULD BE USE OF TEAMVIEWER

Continue reading