Upgrading the Agent
Updating ReadonlyREST Configuration
These changes are required for the RASP Java Agent v22.2.4+ to ensure that the Elasticsearch connectivity startup check is performed. Without the following steps, agent will not be able to connect to Portal Dedicated.
The readonlyrest configuration should be updated to allow Agents perform status checks on the Elasticsearch cluster.
-
Find the
readonlyrest.ymlfile. Note that the file distributed with the Portal is a sample file. The actual configuration lives in theconfigdirectory of the Elasticsearch installation. -
Update the file. It is easiest to apply the changes manually in a text editor to avoid formatting issues:
- Add
HEADto methods property values - Add
"cluster:monitor/main"to actions property values
- Add
For reference, the before snippet:
methods: [PUT, POST]
actions: ["indices:data/write/bulk", "indices:data/write/index"]
And after:
methods: [PUT, POST, HEAD]
actions: ["indices:data/write/bulk", "indices:data/write/index", "cluster:monitor/main"]