Skip to content

This script is designed to create Elasticsearch users and Kibana spaces. The script is written in Python 3.11 and uses the Elasticsearch and Kibana APIs. The script, thanks to the possibility of loading CSV files, helps to shorten the process of adding users and spaces to a total minimum

License

Notifications You must be signed in to change notification settings

SoSaymon/elastic-create-users-and-spaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elastic create users and spaces

Python script to create Elasticsearch users and Kibana spaces
Explore the docs »

Report Bug · Request Feature

Table of Contents
  1. About Project
  2. License
  3. Contact

About Project

product screenshot

This script is designed to create Elasticsearch users and Kibana spaces. The script is written in Python 3.11 and uses the Elasticsearch and Kibana APIs. The script, thanks to the possibility of loading CSV files, helps to shorten the process of adding users and spaces to a total minimum

Getting Started

Local copy

To get a local copy up and running follow these simple steps.

Prerequisites

  1. Python 3.11
  2. pip
  3. Url to your Elasticsearch and Kibana instance and Elastic admin username and password

Installation

  1. Clone the repo
    • git clone https://github.com/SoSaymon/elastic-create-users-and-spaces.git
  2. Setup Virtual Environment
  3. Install Python packages
    • pip install -r requirements.txt

Configuration

  1. Rename file .env_template to .env
  2. Fill in the variables in the .env file

Docker

Docker image is not ready yet and is still under development

Usage

Local copy

To create Kibana space follow these steps

  1. Enter this prompt in commandline
    python3 create.py space
  2. Follow the instructions in the prompt

To create Elasticsearch user follow these steps

  1. Enter this prompt in commandline
    python3 create.py user
  2. Follow the instructions in the prompt

License

Distributed under the MIT License. See `LICENSE` for more information.

Contact

If you have any questions about the project, feel free to contact me at szymon.chirowski@protonmail.com.
You can find my other projects at My GitHub account.

Project Link: https://github.com/SoSaymon/elastic-create-users-and-spaces/
Author: Szymon Chirowski
Documentation: https://sosaymon.github.io/elastic-create-users-and-spaces/

About

This script is designed to create Elasticsearch users and Kibana spaces. The script is written in Python 3.11 and uses the Elasticsearch and Kibana APIs. The script, thanks to the possibility of loading CSV files, helps to shorten the process of adding users and spaces to a total minimum

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages