Skip to main content

No project description provided

Project description

Elastic Stacker

Purpose

This tool is used to export configuration objects (dashboards, pipelines, alerts, etc) out of one Elastic Stack and then allow importing in to another Stack.

A main use case is for moving from development done in a PRE environment, and in to a PROD environment. Another use case is for keeping configurations in sync between multiple production stacks, but that might live on separate networks.

Installation

pip install elastic-stacker

Contributing

  1. Clone the repository
  2. Set up Python environment: pipenv install --dev
  3. Activate the environment: pipenv shell
  4. Concrete-ize the configuration file, specifically replacing any occurences of <REDACTED> with real values:
    cp stacker.example.yaml stacker.yaml
    # Update any configuration options needed:
    nano stacker.yaml
    
  5. Run the tool (more detailed usage below): stacker -p <pre|prod> system_dump

Usage

Running the tools

# Export all the user configurations from LC Elastic Pre
# Export should go in to the `files/` directory at the top of this repo
# this is so that the resulting exported objects can be tracked in git.
# You can also set the data directory in the config file (see the example).
stacker system_dump -p pre --data-directory $(git rev-parse --show-toplevel)/files/

# Check the changes that resulted from the export, make sure things look expected
git diff

# Add and commit any changes
git add $(git rev-parse --show-toplevel)/files/
git commit -m"Updated elastic repo with exported content"

License

Stacker is released under the Apache 2.0 license with LLVM exception. For more details see the LICENSE file.

LLNL-CODE-850537

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elastic_stacker-0.3.0.tar.gz (49.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elastic_stacker-0.3.0-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

Details for the file elastic_stacker-0.3.0.tar.gz.

File metadata

  • Download URL: elastic_stacker-0.3.0.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.17

File hashes

Hashes for elastic_stacker-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8ca132712c5a01b746b6efaaba2a679951d1400108208c892b49b90b3bb04dd5
MD5 6e0a8ece50ace9e608ab0f9317ed6a5f
BLAKE2b-256 2a20295e04a2261898ab4ffe42de938909282f1e29b1cabc82c73187278bc1a4

See more details on using hashes here.

File details

Details for the file elastic_stacker-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for elastic_stacker-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d3755e9a301dea361268e141e614a34527daf9cef96db970239e26438c32da7
MD5 768f40816d6b1c7348de90eaa4ef9a14
BLAKE2b-256 70bc251c7b01e6c06c4a5f8c2579c1bb2538257c6ffa29c5f03722a84505b123

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page