Skip to main content
Version: 25.0.0

Upgrading the Java Agent

Updating ReadonlyREST Configuration

These are the following changes required for the Java Agent v22.2.4+ to ensure that the Elasticsearch connectivity startup check is performed. Without the following steps, the Java Agent (v22.2.4+) won’t be able to connect to Portal Dedicated.

The readonlyrest configuration should be updated to allow Agents perform status checks on the Elasticsearch cluster.

  1. Find the readonlyrest.yml file. Note that the file distributed with the MC is a sample file. The actual configuration lives in the config directory of the Elasticsearch installation.

  2. Update the file. It is easiest to apply the changes manually in a text editor to avoid formatting issues:

    1. Add HEAD to methods property values
    2. Add "cluster:monitor/main" to actions property values

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"]