Skip to main content


Enable authentication for the Unravel Elastic daemon


You must have v4.5.1.0 in order to enable authentication. The auth plugin does not get installed as part of the rpm install.

  1. Login to your Unravel host.

  2. Execute bin/elasticsearch-plugin to install the ES auth plugin.

    cd /usr/local/unravel/elasticsearch/
    bin/elasticsearch-plugin install -b file:ZIP_FILE_NAME

    Example using the current location of the auth-plugin zip file.

    sudo /usr/local/unravel/elasticsearch/bin/elasticsearch-plugin install 
  3. Generate an encrypted password using /usr/local/unravel/install_bin/


    Example output:

  4. Add to /usr/local/unravel/etc/ Set it to the password you just generated (just the string without the parentheses).

  5. Check that the Unravel auth plugin is installed.

    curl "http://localhost:4171/_cat/plugins"
    curl -H "Authorization:UnravelDataBasic Hsmrxf1LGHNzpqKHxV/2rw==" "http://localhost:4171/_cat/plugins"
    unravel_s_1 UnravelDataAuth
  6. Restart all daemons.

    /etc/init.d/ restart
  7. To verify the is correctly set, curl to internal elastic search with the wrong password. You should receive a response of not authorized.


    curl -H "Authorization:UnravelDataBasic 3I3EbODrX4LyJr/metiJKQ==" "http://localhost:4171/_cat/“
    not authorized
  8. curl to internal elastic search with the correct password.


    curl -H "Authorization:UnravelDataBasic Hsmrxf1LGHNzpqKHxV/2rw==" "http://localhost:4171/_cat/“
  9. If you do not see output similar to above verify:

    • The password is correct.

    • The call was properly formed.

    If necessary, repeat steps 1-8.

  1. Try steps 7 and 8 with the following endpoints to make sure it is working as expected.

    • curl "localhost:4171/_cat/shards"

    • curl "localhost:4171/_cluster/health?pretty"

    • curl "localhost:4171/_nodes/stats?pretty"

  2. Run an app and see if it appears in the UI.