Elasticsearch Docker logs

Im using Elasticsearch 6.2.2 from official Docker image. I'd like to get Elasticsearch logs out instead of just run "docker logs".

According to this doc: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#_notes_for_production_use_and_defaults. In production env, it is recommended to use different logging-driver instead of json-file. Funny thing is Elasticsearch is our logging destination and it doesn't make sense to pump logs back to Elasticsearch, let alone if Elasticsearch Docker cannot start there is no way to look at log.

I'd love to see anyone has done dumping Elasticsearch Docker logs out to Docker Volume or Bind_Mound.

Please advise!
Thanks

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