logging.asciidoc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // tag::docker[]
  2. On <<docker,Docker>>, log messages go to the console and are handled by the
  3. configured Docker logging driver. To access logs, run `docker logs`.
  4. // end::docker[]
  5. // tag::deb[]
  6. For <<deb,Debian installations>>, {es} writes logs to `/var/log/elasticsearch`.
  7. // end::deb[]
  8. // tag::rpm[]
  9. For <<rpm,RPM installations>>, {es} writes logs to `/var/log/elasticsearch`.
  10. // end::rpm[]
  11. // tag::mac[]
  12. For <<targz,macOS `.tar.gz`>> installations, {es} writes logs to
  13. `$ES_HOME/logs`.
  14. Files in `$ES_HOME` risk deletion during an upgrade. In production, we strongly
  15. recommend you set `path.logs` to a location outside of `$ES_HOME`.
  16. See <<path-settings>>.
  17. // end::mac[]
  18. // tag::linux[]
  19. For <<targz,Linux `.tar.gz`>> installations, {es} writes logs to
  20. `$ES_HOME/logs`.
  21. Files in `$ES_HOME` risk deletion during an upgrade. In production, we strongly
  22. recommend you set `path.logs` to a location outside of `$ES_HOME`.
  23. See <<path-settings>>.
  24. // end::linux[]
  25. // tag::win-zip[]
  26. For <<zip-windows,Windows `.zip`>> installations, {es} writes logs to
  27. `%ES_HOME%\logs`.
  28. Files in `%ES_HOME%` risk deletion during an upgrade. In production, we strongly
  29. recommend you set `path.logs` to a location outside of `%ES_HOME%``.
  30. See <<path-settings>>.
  31. // end::win-zip[]