Cannot find log at /usr/share/opensearch/logs/opensearch-cluster.log using docker compose

I am a beginner in opensearch deployment, using docker compose, migrating from initial demo to production. I cannot find log at /usr/share/opensearch/logs/opensearch-cluster.log as advised from docker compose logs opensearch-node1 when an error pops up. There is no folder “opensearch” under /usr/share! The docker runs on the Rocky Linux 9.4. The log file is not even in a container if a container runs. Any hints will be highly apprecited. Thanks Martin

Hi @mblabolil -

I thought this odd, so I went through the filesystem of my running containers thinking “oh it for sure has to be in /opt/opensearch/logs/opensearch-cluster.log” only to find that is exactly as you’ve described. There was no opensearch-cluster.log. I thought it might only show up on nodes with the role of “cluster manager”, but that does not appear to be it either.

I’m going to ask around for you on our Slack instance (Slack workspace · OpenSearch) to see if I can get a response there.