Elastic and Kibana Install (Windows)
This goes through the steps to set up a single node Elasticsearch cluster and an instance of Kibana.
If you are setting up a production environment, then you will want to set up an Elasticsearch cluster. More information on this can be found on the Elasticsearch website.
Folder Structure Set Up
A specific folder structure is needed for the installation of Elasticsearch and Kibana. You can create this structure manually or using a PowerShell query.
PowerShell
Run the following script in an Admin powerShell.
Check the version and storage location before running this script.
Manual
In your chosen file location create an Apps, InsightMaker, Upgrades and Utils folder.
Download Software
Download the InsightMaker zip file from our GitHub area. If you do not have access to this contact your Aiimi contact.
Run the following script within an Admin PowerShell to download redistributable and dotnet bundle.
Check the version and storage location before running this script.
Extract Software
Next the Elastic, Kibana, nssm and Insightmaker zip files need to be extracted.
PowerShell
Run the following script in an Admin powerShell.
Check the version and storage location before running this script.
Manual
ElasticSearch - Extract the Elasticsearch download into the Apps folder created earlier.
Kibana - Extract the Kibana download into the Apps folder created earlier.
nssm - Extract the nssm download into the Utils folder created earlier.
Insight Maker - Extract the Insight Maker download into the Insight Maker folder created earlier.
Elastic Configuration
The configurations within the Elastic config file needs to be updated.
Check the version and storage location before running this script.
Install Elastic
Elastic needs to be installed as a service and this can be done with a PowerShell script.
Run the following PowerShell script.
Check the version and storage location before running this script.
Don't close the PowerShell when this script has finished.
This will return the password for Elastic. Ensure you make a note of this password for future use.
Open your web browser and navigate to https://localhost:9200 to test if the install has worked.
Install Kibana
Open a new PowerShell window and run the following Script.
Check the version and storage location before running this script.
Once this has completed, copy the URL into your browser.
Copy the token from the Elastic PowerShell window and paste it into the Enrollment token in the Kibana session.
Select Configure Elastic.
The configuration may not complete at this point. That's not an issue at this point.
Open a web browser and navigate to https://localhost:5601.
Use your elastic credentials to login.
Update Elastic License
Copy the text of you Elastic license into a Notepad++ file.
Save this file as license.json
Within https://localhost:5601 navigate to the Management tab on the left and open the Elastic License Management.
Upload the license.json file to Kibana via the license manager.
It is normal for this to cause Kibana to throw an access error. If it doesn't, check that Elastic hasn't been installed before in 'Programs and Features' (and remove it if it's present).
Create Elastic Certificate
Open another new PowerShell as an Admin.
This will be the third PowerShell you have open.
Run the following PowerShell script.
Check the versions and storage locations before running these scripts.
When prompted for an output file press the Enter key.
When prompted for the Ca password enter a secure password.
Run the following PowerShell Script to create the certificate.
When prompted enter the Ca password.
When prompted for an output file press the Enter key.
When prompted enter the Cert password.
Copy Certificates
You need to create a new certs folder and copy the certs to that folder.
Run the following Script.
Check the version and storage location before running this script.
Elastic SSL Configuration
There are a number of configurations that need to be changed to add xpack security.
Run the following script to make these changes automatically.
Check the version and storage location before running this script.
Elastic Keystore Setup
Run the following scripts one by one.
Check the versions and storage locations before running these scripts.
Run the following.
When prompted enter the Certificate password.
Run the following.
When prompted enter the Certificate password.
Run the following.
When prompted enter the Certificate password.
Run the following.
When prompted enter the Certificate password.
Kibana SSL Configuration
Run the following PowerShell script to update the Kibana yml file.
Check the versions and storage locations before running these scripts.
You can now close the Elastic and Kibanad PowerShel consoles.
Within each console select ctrl + c.
It will then confirm if you want to terminate the session. Enter Y to confirm.
Install Elastic Service
Check the versions and storage locations before running these scripts.
Run the following command in PowerShell to install the Elastic Service.
Run the following command to start the elastic service.
Open your web browser and navigate to https://localhost:9200.
This may take a few minutes to load for the first time.
Login using the elastic credentials.
Install Kibana Service
Check the versions and storage locations before running these scripts.
Run the following command in PowerShell to install the Kibana Service.
Run the following command in PowerShell to start the Kibana service.
Open your web browser and navigate to https://localhost:5601.
This may take a few minutes to load for the first time.
Login using the elastic credentials.
Last updated