APM server logs could contain parts of the document body from a partially failed bulk index request. Depending on the nature of the document, this could disclose sensitive information in APM Server error logs.
https://discuss.elastic.co/t/apm-server-8-16-1-security-update-esa-2024-41/377710