How do I enable elasticsearch security features in windows i'm using elasticsearch-7.1.1.msi package ?
I suspect you're referring to using Basic Authentication and TLS? Using the MSI the steps would be
Run through the installation, choosing Basic license
You may decide to install Elasticsearch as a service, or not. As an example, I will install as a service
Do not set the service to start as part of the installation, as we need to make a configuration change before starting.
Open a new PowerShell terminal and navigate to the config directory, which by default will be
ES_PATH_CONFsystem environment variable will be set to this path. Open
elasticsearch.ymlwithin the config directory with administrator privileges and update
xpack.security.enabledkey to the following
save the file.
Start Elasticsearch service. With PowerShell
Navigate to the installation directory, which by default will be
C:\Program Files\Elastic\Elasticsearch\7.1.1\. The
ES_HOMEsystem environment variable will be set to the installation directory.
Within the installation directory, navigate to the
bindirectory and use the
elasticsearch-setup-passwords.batto set up built-in user accounts
cd $env:ES_HOME\bin .\elasticsearch-setup-passwords.bat interactive
Follow the prompts.
The Windows installer does not currently automate this process; we're currently discussing what the feature set of the installer should be going forward.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.