Step 3. Add the Elasticsearch Publisher to the Workflow
Select the event for which you want to add the Elasticsearch Publisher to, from the Event combo.
To add a Elasticsearch Publisher drag the Elasticsearch Publisher from the Rules Section on the right side of the screen and drop it below the Workflow Event to the left side of the screen. This will automatically open the Elasticsearch Publisher window for the configuration of the publisher.
Step 3a. Specify Publisher Information
In the Publish to ElasticSearch window, specify the connection information to publish to the index.
Name: Enter the name of the publisher. (This name must be unique).
ElasticSearch URL: Select how you want to enter the ElasticSearch URL
Host and port
ElasticSearch Host: Enter the ElasticSearch host.
ElasticSearch Port: Enter the ElasticSearch port (9200 by default)
Complete Url
ElasticSearch URL: Enter the url for the ElasticSearch bulk index endpoint, it must have this format <protocol>://<host>:<port>/_bulk
ElasticSearch Index: Enter the index to which the jobs are going to be publish.
Groovy Transform: set to the default parameter to use the default JSON transformation file. To use a custom file, follow the instructions in JSON Transformation HINT: The default file is located at ${appbundle.home}. if user is using other file in the /config/xls folder, the value should be change to ${aspire.home}/config/xls The user is responsible for ensuring that the location typed in that box is the correct one of the file being used.
For Elasticsearch 7.2.0 there is a new transformation file that must be used called “aspireToElasticsearchBulk.groovy”.
Max Results per request: How many documents can be fetched by the search engine for the same query
Page size: How many documents to fetch per page
Id field: Field used to store the id in elasticsearch. Used to compare against the content source audit logs
Url field: Field used to store the url in elasticsearch
Timestamp field: the name of the timestamp field holding the index timestamp of every document
Authentication: Indicates the authentication credentials for the ElasticSearch url, if you are using protocol https, then you must provide authentication credentials
None: use this setting if you do not need to provide credentials
Basic: use this setting if your ElasticSearch url requires authorization credentials.
Username: enter the username required to access the ElasticSearch url.
Password: enter the password required to access the ElasticSearch url.
Debug: Check if you want to run the publisher in debug mode. Note: The Delete by Query feature does not work on Elasticsearch 5.x onward
Click on the Add button.
Once you've clicked Add, it will take a moment for Aspire to download all of the necessary components (the Jar files) from the Maven repository and load them into Aspire. Once that's done, the publisher will appear in the Workflow Tree.