Tricentis Analytics 1.3.1 Patch Notes - 26 August 2019
Overview
This patch speeds up performance and loading from ElasticSearch to the SyncApp. Please note that this will only affect Tricentis Analytics users who are using the qTest Enterprise Analytics Application.
You have two options to get Tricentis Analytics 1.3.1:
- Install Tricentis Analytics 1.3.1
- Upgrade from Tricentis Analytics 1.3.0 to 1.3.1
Changes to ElasticSearch
In order for qTest users to use Tricentis Analytics after this patch, you must make some changes to ElasticSearch.
Some of the commands below offer an example fpr running with the CURL application, the user could run this command from any machine with the CURL application and follow the -Request metadata process. The CURL application is installed in Linux by default, but, in Windows, it may not be installed. You can manually install the CURL application via this link https://curl.haxx.se/download.html.
Increase Max Result Window
Follow these steps:
-
Send a request to ElasticSearch
- Request:
PUT /revision/_settings HTTP/1.1
Host: <Elasticsearch Host>
Content-Type: application/json
{
"max_result_window" : 500000
}
Note: replace http://localhost:9200 with your elasticsearch host/ip and port
Example run with curl:
curl -XPUT http://localhost:9200/revision/_settings -H "Content-Type: application/json" -d "{\"max_result_window\":500000}"
Check result with curl:
curl http://localhost:9200/revision/_settings?pretty=true
-
Restart ElasticSearch
Add "indexed_at" Field to the Revision Index
Follow these steps:
-
Add the "indexed_at" field to the Revision Index:
-Request:
PUT /_ingest/pipeline/indexed_at HTTP/1.1
Host: <Elasticsearch Host>
Content-Type: application/json
{
"description": "Adds indexed_at timestamp to documents",
"processors": [
{
"set": {
"field": "_source.indexed_at",
"value": "{{_ingest.timestamp}}"
}
}
]
}
Note: replace http://localhost:9200 with your elasticsearch host/ip and port
Example with curl:
curl -XPUT http://localhost:9200/_ingest/pipeline/indexed_at -H "Content-Type: application/json" -d "{\"description\":\"Adds indexed_at timestamp to documents\",\"processors\":[{\"set\":{\"field\":\"_source.indexed_at\",\"value\":\"{{_ingest.timestamp}}\"}}]}"
Check result with curl:
curl http://localhost:9200/_ingest/pipeline/indexed_at?pretty=true
-
Request:
- Request:
PUT /revision/_settings HTTP/1.1
Host: <Elasticsearch Host>
Content-Type: application/json
{
"index.default_pipeline":"indexed_at"
}
Example with curl:
curl -XPUT http://localhost:9200/revision/_settings -H "Content-Type: application/json" -d "{\"index.default_pipeline\":\"indexed_at\"}"
Check result with curl:
curl http://localhost:9200/revision/_settings?pretty=true
Run With Powershell
To run with powershell, if the curl package cannot be installed, see the following:
$es = "http://localhost:9200"
$bodyRevision = '{
"max_result_window" : 500000
}'
Write-Output "Update revision setting $($es)/revision/_settings"
Invoke-RestMethod -Uri "$($es)/revision/_settings" -Method Put -ContentType 'application/json' -Body $bodyRevision
$bodyIndexAt = '{
"description": "Adds indexed_at timestamp to documents",
"processors": [
{
"set": {
"field": "_source.indexed_at",
"value": "{{_ingest.timestamp}}"
}
}
]
}'
Write-Output "Update index_at setting $($es)/_ingest/pipeline/indexed_at"
Invoke-RestMethod -Uri "$($es)/_ingest/pipeline/indexed_at" -Method Put -ContentType 'application/json' -Body $bodyIndexAt
$bodyRevisionIndexAt = '{
"index.default_pipeline":"indexed_at"
}'
Write-Output "Update revision index_at setting $($es)/revision/_settings"
Invoke-RestMethod -Uri "$($es)/revision/_settings" -Method Put -ContentType 'application/json' -Body $bodyRevisionIndexAt