Skip to content

tinhutins/logging-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automated ELK stack install using ansible

We provide two roles for ELK stack installation:

  • Single-node ELK stack Role: logging_single_node

  • Clustered ELK stack Role: logging_cluster

Everything is automated via Ansible playbooks.


📋 Prerequisites

  • Ubuntu 22.04 LTS system(s)
  • Ansible installed on your control node
  • SSH access to target hosts
  • Vault password (see below)

⚡ Quick Start

  1. Clone the repository:

    git clone https://github.com/tinhutins/logging-setup.git
    cd logging-setup
    
  2. Verify your inventory.ini matches your environment.

  3. Run the pre-install provisioning step:

    ansible-playbook -i inventory.ini playbooks/preinstall.yml --tags provision --ask-vault-pass -kK
  • NOTE: This step uses the local user tino on machines with sudo privileges. Make sure to update playbooks/preinstall.yml if you need to use a different user.

Default vault password:

password 

Install whole ELK Cluster with additional services

  1. Add Elasticsearch nodes:
ansible-playbook -i inventory.ini playbooks/postinstall.yml --tags add_elasticsearch --ask-vault-pass
  1. Add Kibana:
ansible-playbook -i inventory.ini playbooks/postinstall.yml --tags add_kibana --ask-vault-pass
  1. Add Logstash:
ansible-playbook -i inventory.ini playbooks/postinstall.yml --tags add_logstash --ask-vault-pass
  1. Add Filebeat:
ansible-playbook -i inventory.ini playbooks/postinstall.yml --tags add_filebeat --ask-vault-pass
  1. Add Fleet:
ansible-playbook -i inventory.ini playbooks/postinstall.yml --tags add_fleet --ask-vault-pass

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages