ELK-stack-project

Automated ELK Stack Deployment

The files in this repository were used to configure the network depicted below.

Network Diagram

These files have been tested and used to generate a live ELK deployment on Azure. They can be used to either recreate the entire deployment pictured above. Alternatively, select portions of the /etc/ansible/install-elk.yml file may be used to install only certain pieces of it, such as Filebeat.

This document contains the following details:

Description of the Topology

The main purpose of this network is to expose a load-balanced and monitored instance of DVWA, the D*mn Vulnerable Web Application.

Load balancing ensures that the application will be highly redundant, in addition to restricting traffic to the network.

Integrating an ELK server allows users to easily monitor the vulnerable VMs for changes to the filesystem and system resources / availability.

The configuration details of each machine may be found below. Note: Use the Markdown Table Generator to add/remove values from the table.

Name Function IP Address Operating System
Jump Box Gateway 10.0.0.7 / 52.188.152.183 Linux
Web-1 DVWA 10.0.0.8 Linux
Web-2 DVWA 10.0.0.9 Linux
Web-3 DVWA 10.0.0.10 Linux
ELK-VM ELK Server 10.1.0.4 / 104.42.4.112 Linux

Access Policies

The machines on the internal network are not exposed to the public Internet.

Only the JumpBox machine can accept connections from the Internet. Access to this machine is only allowed from the following IP addresses:

Machines within the network can only be accessed by JumpBox.

A summary of the access policies in place can be found in the table below.

Name Publicly Accessible Allowed IP Addresses
Jump Box Yes (SSH) SSH:My home network IPaddr
Web-1 Yes (HTTP) HTTP:any, SSH:10.0.0.7
Web-2 Yes (HTTP) HTTP:any, SSH:10.0.0.7
Web-3 Yes (HTTP) HTTP:any, SSH:10.0.0.7
ELK-VM Yes (HTTP, SSH) HTTP:any, SSH:10.0.0.7

Elk Configuration

Ansible was used to automate configuration of the ELK machine. No configuration was performed manually, which is advantageous becauseā€¦

The playbook implements the following tasks:

The following screenshot displays the result of running docker ps after successfully configuring the ELK instance.

screenshot of docker ps output

Target Machines & Beats

This ELK server is configured to monitor the following machines:

We have installed the following Beats on these machines:

These Beats allow us to collect the following information from each machine:

Using the Playbook

In order to use the playbook, you will need to have an Ansible control node already configured. Assuming you have such a control node provisioned:

SSH into the control node and follow the steps below:

As a Bonus, provide the specific commands the user will need to run to download the playbook, update the files, etc.