Does Elasticsearch-7.x have any api for getting/setting jvm.options and log4j2.properties?

Does Elasticsearch-7.x have any api for getting/setting jvm.options and log4j2.properties?
I'm looking to check if there is a way to directly set or atleast get the jvm.options and log4j2.properties file information via a direct api call.

There is not a way to get the log4j2.properties via any Elasticsearch APIs. For the jvm.options, you can not directly get the contents of this file, but you can see all the JVM options used to start the JVM via GET /_nodes/jvm (look at input_arguments). Note that this might include options that are not in the jvm.options (e.g., it also includes JVM options set via ES_JAVA_OPTS). Neither of these are available to set via any APIs.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.