Giter Club home page Giter Club logo

stagemonitor-elasticsearch-init's Introduction

Init Elasticsearch and Kibana

This program initializes the required Elasticsearch indices and populates Kibana dashboards.

It is intended to be used in more restricted environments where X-Pack security is enabled and the agents should not be allowed to create index patterns and dashboards.

If you are not operating in such an environment, you don't need this program.

Usage

1. Clone this repo

git clone https://github.com/stagemonitor/stagemonitor-elasticsearch-init.git
cd stagemonitor-elasticsearch-init

2. Adjust stagemonitor version

Open gradle.properties and set the property stagemonitorVersion to the version of stagemonitor you are actually using.

Note that the minimum Version is 0.87.2.

3. Adjust optional plug-ins

Open build.gradle and include the optional plug-ins you are using.

4. Make sure Elasticsearch and Kibana is started

Open the Kibana status page in the browser (default ist http://localhost:5601/status) and make sure the status is green.

5. Execute initialization program

Unix:

./gradlew run -Purl=http://user:pwd@localhost:9200

Windows:

gradlew.bat run -Purl=http://user:pwd@localhost:9200

Adjust the url argument according to your environment.

Q&A

Q: I can't execute the script because it wants to download artifacts from maven central and that's not permitted because of firewall rules.

A: Build the distribution on a host with unrestricted access to the internet: Execute ./gradlew assembleDist. In the directory build/distributions you will find a zip and tar file which contain all dependencies. Extract either the zip or tar file on the target host and execute bin/stagemonitor-elasticsearch-init http://user:pwd@localhost:9200 (Unix) or bin/stagemonitor-elasticsearch-init.bat http://user:pwd@localhost:9200 (Windows)

Q: I don't want to specify the Elasticsearch url as a command line argument as it would leak the credentials in the console history

A: Add the url in stagemonitor-elasticsearch-init/gradle.properties or ~/.gradle/gradle.properties

stagemonitor-elasticsearch-init's People

Contributors

liebhaeuser avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.