UserNotFound / docker-kibana

Kibana on top of Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aptible/kibana

Docker Repository on Quay.io

Kibana as an Aptible App.

Security considerations

This app is configured through two environment variables: AUTH_CREDENTIALS and DATABASE_URL. The former is used to authenticate Kibana users, and the latter is used to make requests to a backend Elasticsearch instance.

In other words, any user that can log in to Kibana can execute queries against the upstream Elasticsearch instance using Kibana's credentials.

This is probably what you want if you're deploying Kibana, but it means you should make sure you choose strong passwords for AUTH_CREDENTIALS.

Installation

To deploy Kibana as an App on Enclave:

  1. Create a new App for Kibana. In the step that follows, we'll use $HANDLE anywhere that you should substitute the actual App handle you specified in this step.

    aptible apps:create "$HANDLE"
    
  2. In a single aptible deploy command,

    • Deploy the appropriate Kibana version for your Elasticsearch Database. For example, if you are using Elasticsearch 6.2, then you should substitute $KIBANA_VERSION with 6.2.
    • Set AUTH_CREDENTIALS to the username / password combination you want to use to access Kibana.
    • Set DATABASE_URL to the URL of your Elasticsearch instance on Aptible (this is the connection string presented in the Aptible dashboard when you select your Elasticsearch instance).
    aptible deploy \
     --app "$HANDLE" \
     --docker-image "aptible/kibana:$KIBANA_VERSION" \
     "AUTH_CREDENTIALS=username:password" \
     "DATABASE_URL=https://user:password@example.com" \
     FORCE_SSL=true
    

If this fails, review the troubleshooting instructions below.

  1. Create an Endpoint to make the Kibana app accessible:

    aptible endpoints:https:create \
      --app "$HANDLE" \
      --default-domain \
      cmd
    

    For more options (e.g. to use your own domain) for the Endpoint, review our documentation.

Troubleshooting

You might encounter the following errors when attempting to deploy:

  • Unable to reach Elasticsearch server: This means the DATABASE_URL you provided is incorrect, or points to an Elasticsearch Database that is not reachable from your Kibana app. Double-check that the DATABASE_URL you used matches your Elasticsearch Database's connection URL, and make sure that you are deploying Kibana in the Environment (or Stack) where your Elasticsearch Database is located. Correct the URL if it was invalid, or start over if you need to create the App in a different Environment.
  • Incorrect Kibana version detected: This means the Kibana version you are attempting to deploy is not compatible with the Elasticsearch version you are using. Correct the Kibana version as instructed, then deploy again.

Available Tags and Compatibility

  • latest: Currently Kibana 6.2
  • 6.2: Kibana 6.2.2 (For Elasticsearch 6.2.x)
  • 6.1: Kibana 6.1.3 (for Elasticsearch 6.1.x)
  • 6.0: Kibana 6.0.1 (for Elasticsearch 6.0.x)
  • 5.6: Kibana 5.6.8 (for Elasticsearch 5.6.x)
  • 5.1: Kibana 5.1.2 (for Elasticsearch 5.1.x)
  • 5.0: Kibana 5.0.1 (for Elasticsearch 5.0.x)
  • 4.4: Kibana 4.4.2 (for Elasticsearch 2.x)
  • 4.1: Kibana 4.1.11 (for Elasticsearch 1.5.x)

Next steps

After adding the Endpoint, you can access your Kibana app using a browser.

The URL was shown in the output when you added the Endpoint (it looks like app-$ID.on-aptible.com), but if you didn't see it, use the following command to display it again:

aptible endpoints:list --app "$HANDLE"

When prompted for credentials, use the username and password you specified in AUTH_CREDENTIALS when deploying.

If you're new to Kibana, try working through the Kibana 10 minute walk through as an introduction.

To jump in to a view of your recent log messages, you can start by clicking the "Discover" tab, which should default to viewing all log messages, most recent first.

Copyright and License

MIT License, see LICENSE for details.

Copyright (c) 2014 Aptible and contributors.

@aaw

About

Kibana on top of Docker

License:MIT License


Languages

Language:HTML 51.2%Language:Shell 39.7%Language:Makefile 9.1%