This section presents a guide for setting up a simple single node Aiimi Insight Engine instance on Windows 2016 or later.
If you are designing and installing a production environment, then you will be installing individual agents and components on specific nodes. Further guidance on this can be provided on request.
Latest Java Development Kit and Java Runtime Environment - you can use something from https://adoptopenjdk.net if you wish. If you are installing Elastic on the same machine, use the one in the Elastic install folder.
Search on Windows for 'Turn Windows Features On/Off' and enable Internet Information Services (IIS) in that dialog (used for managing websites and apis).
In Utils\InsightMaker.IndexUtilities, run the following from an admin command prompt. These commands configure the default elastic mappings for InsightMaker indices and create some useful default entities etc.
Initially: Ensure that '.NET Core and HostingBundle' has been installed, otherwise middleware will not be able to run in IIS.
Ensure the account that IIS runs under has read access to your Elasticsearch certificates.
Open Internet Information Services (IIS).
Open dropdowns in the left window and select Default Website.
On the right hand side, open 'Bindings' and add a new binding.
If you want to use SSL (production platform for example):
Set type to https and use the default fields (port 443)
Set SSL certificate
Open basic settings on the right and set the physical path to the 'app' folder within the Search directory.
Right click Default Website and add a new application and call this alias 'api' and set the physical path to the 'api' folder within the Search directory.
Right click Default Website and add a new application and call this alias 'admin' and add the path to the 'app' folder of the Admin directory.
Right click 'admin' and add one more website and call this alias 'api' and point it to the api folder in the Admin directory.
This sets up the default website on the server and can be accessed using 'localhost' in the navigation bar in any browser, and the other apps using their alias (for example admin is accessed using localhost/admin).
If you only see a blank screen it's possible that IIS didn't set itself up correctly, first try restarting IIS and, if that doesn't resolve the issue, follow the steps at the start of the guide to disable and re-enable IIS. Ensure that most of the 'Common Http Features' section gets enabled inside IIS.
Installing Odata API (optional)
Navigate to C:/Insightmaker/Apps/OData.
Open appsettings.default.json in a source code editor like NotePad++.
Check the details are correct:
The Plugins path points to the plugins folder. Likely C:\InsightMaker\Plugins
The elastic certificate path points to the elastic-stack-ca.p12 file. This was created when you installed Elasticsearch.
The correct password is set.
The Elasticsearch credentials are set to the elastic login you created.
The prefix is set to the correct value and consistent across all components.
Add your two Aiimi Insight Engine licences to the root of the json:
Save this file, do not change the name or location.
Within C:/Insightmaker/Apps/OData open log4net.default.config.
Change the file paths to where you’d like log files to save.
This can not be the in InsightMaker folder.
Save this file, do not change the name or location.
Remove the '.default' from each of the following file names:
'appsettings.default.json'
'log4net.default.config'
'web.default.config'
Open the web.config file.
Check the module is modules="AspNetCoreModuleV2".
Open Internet Information Services (IIS)
Open the dropdown on the left and Right click on default website.
Click add new application, call the alias “analytics”.
Set the physical path to the ‘API’ folder in InsightMaker/Apps/OData.
You should be able to view the OData metadata document using localhost/analytics/odata/$metadata.
Installing Tika
Unzip the Tika distribution.
Create a directory to store IM utilities, outside of the InsightMaker directory to avoid adding any complication to upgrades (eg. C:\Utils).
Move tika.jar and run-tika.bat to this folder.
Modify run-tika.bat to include the correct path to tika.
If your Elasticsearch is stored to a folder with spaces in it, then the Java home path will need to be encased in quotation marks)
Run nssm install from an admin command prompt.
Point the path field to run-tika.bat and set up service/display names.
If you want to run Tika without installing then from a command prompt navigate to the folder where you have placed Tika, then run .\run-tika.bat serve. This will allow you to identify any issues which are less obvious if you just go straight for the install (Ctrl + C to close down once tested).
By default Tika will listen on post 9998.
Access Tika in your web browser in http://localhost:9998 to test your Tika service.
Accessing Control Hub
Navigate to http://localhost/admin and login with your elastic credentials (elastic:changeme by default).
Assuming you can login correctly, then you should see your agents on the configuration page. They will all be empty. To get started, please see the Quick Start Guide in the Administration Guide.