So we are deploying elasticsearch using docker file.
it is the same steps followed in the official docker file linked below.
We are trying to do a Version upgrade from 8.2.0 to 8.11.2
The problem is that the scans reveal that log4j-api and log4j-core packages are packaged in the image with version less than 2.15.0 (the infamous log4j vulnerability) coming in via this package https://github.com/elastic/apm-agent-java/blob/main/pom.xml#L128 (apm-agent-java)
Our company has a guideline of not allowing any log4j package less than 2.15.0 even if it has some workaround done to prevent the vulnerability from being exploited.
So question here,
Will removal of the apm-agent-java cause any errors during the runtime of the elasticsearch ?
The removal here means manually removing the elastic-apm-agent-1.43.0.jar jar file from /usr/share/elasticsearch/modules/apm/ path