Skip to content

ElasticOps Scripts is a collection of automated Bash scripts designed to simplify the installation, configuration, and uninstallation of Elasticsearch, Kibana, and other Elastic Stack components.

License

Notifications You must be signed in to change notification settings

cyberket96/ElasticOps-Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElasticOps-Scripts 🛠️📦

Welcome to ElasticOps-Scripts! 🎉 This repository contains a collection of bash scripts that automate the installation, uninstallation, and management of Elasticsearch and Kibana. These scripts are designed to simplify and streamline operations for managing the Elastic.

Script combines the installation process for Elasticsearch and Kibana, automating the process to get both up and running with ease. 😎

Script Link: Elastic Installation Script & Elastic Uninstallation Script

Script Help Page 📝:

cyberket96@elastic-ops:~/ElasticOps-Scripts$ sudo ./elastic-install.sh --help

Script developed by cyberket
GitHub: cyberket96
-----------------------------------------------------------

Usage:
sudo ./elastic-install.sh [options]

Options:

  --install-elastic          | Install Elastic
  --kibana-enrollment-token  | Generate kibana enrollment token
  --kibana-verification-code | Generate kibana verification code
  --elastic-api-key          | Generate elastic api key
  --start-elastic            | Start elasticsearch and kibana services
  --stop-elastic             | Stop elasticsearch and kibana services
  --restart-elastic          | Restart elasticsearch and kibana services
  --enable-elastic           | Enable elasticsearch and kibana services
  --disable-elastic          | Disable elasticsearch and kibana services
  --install-all              | Run all tasks
  --help                     | Show help message

If no arguments are provided, the script runs all tasks by default.

Script Output 🌍:

cyberket96@elastic-ops:~/ElasticOps-Scripts$ sudo ./elastic-install.sh

Initiating the script 🚀

Starting Elasticsearch Installation 🚀
[+] Downloading Elasticsearch Debian Package ⬇️...
[+] Installing Elasticsearch 🛠️...
[+] Resolving any package dependencies ⚙️...
[+] Password stored in elastic-user-passwd.txt 📄
[+] System Daemon Reload 🔄...
[+] Enabling Elasticsearch 🔋...
[+] Starting Elasticsearch 🔄...

Starting Kibana Installation 🚀
[+] Downloading Kibana Debian Package ⬇️...
[+] Installing Kibana 🛠️...
[+] Resolving any package dependencies ⚙️...
[+] Enabling Kibana 🔋...
[+] Starting Kibana 🔄...

Elasticserach & Kibana has been installed successfully 🎉.

Generating Kibana Enrollment Token 🚀
[+] Kibana enrollment token has been stored in kibana-enrollment-token.txt 📄

Generating Kibana Verification Code 🚀
[+] Kibana verification code has been successfully retrieved. 📄

Generating Elasticsearch API Key 🚀
[+] Elasticsearch API Key has been stored to elastic-api-key.txt 📄

[<>] Elasticsearch Username: elastic
[<>] Elasticsearch Password: elastic-passwd@9696
[<>] Elasticsearch API Key: kN_S1vmlRr9865wm7XxmSx0w
[<>] Kibana Enrollment Token: eyJ2ZXIiOiI4LjE0LjAiLCJhZHIiOlsiMTcyLjIwLjIzNC4xNDc6OTIwMCJdLCJmZ3IiOi
[<>] Kibana Verification Code:  999 666

Explore Elasticsearch at: https://localhost:9200 🌐
Explore Kibana at: https://localhost:5601 🌐

Enjoy using Elastic!

Script execution complete ✔️

Other Scripts 📂

Here are additional helpful scripts that you may find useful in managing your Elastic Stack:

Script automates the installation of Elasticsearch. Simplifies the setup and ensures that your Elasticsearch instance is up and running in no time.

Script Link: Elasticsearch Installation Script

Script automates the uninstallation of Elasticsearch. Clean up your system when you no longer need Elasticsearch.

Script Link: Elasticsearch Uninstallation Script

Script automates the installation of Kibana. Quickly set up your Kibana instance with this script.

Script Link: Kibana Installation Script

Script automates the uninstallation of Kibana. Clean up when you're done with the Kibana setup.

Script Link: Kibana Uninstallation Script

💡 How to Use

Prerequisites ⚙️

Before running the scripts, ensure you have the following installed:

  • A Linux-based OS (Ubuntu, CentOS, etc.)
  • curl, wget, and bash available in your environment.

Running the Scripts 🚀

  1. Clone the repository:

    git clone https://github.com/cyberket96/ElasticOps-Scripts.git | cd ElasticOps-Scripts/<script-dir>/
  2. Make the script executable:

    chmod +x <script-name>.sh
  3. Run the script:

    ./<script-name>.sh

About

ElasticOps Scripts is a collection of automated Bash scripts designed to simplify the installation, configuration, and uninstallation of Elasticsearch, Kibana, and other Elastic Stack components.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages