logging.asciidoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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::brew[]
  19. For <<brew,macOS Homebrew>> installations, {es} writes logs to
  20. `/usr/local/var/log/elasticsearch`.
  21. // end::brew[]
  22. // tag::linux[]
  23. For <<targz,Linux `.tar.gz`>> installations, {es} writes logs to
  24. `$ES_HOME/logs`.
  25. Files in `$ES_HOME` risk deletion during an upgrade. In production, we strongly
  26. recommend you set `path.logs` to a location outside of `$ES_HOME`.
  27. See <<path-settings>>.
  28. // end::linux[]
  29. // tag::win-zip[]
  30. For <<zip-windows,Windows `.zip`>> installations, {es} writes logs to
  31. `%ES_HOME%\logs`.
  32. Files in `%ES_HOME%` risk deletion during an upgrade. In production, we strongly
  33. recommend you set `path.logs` to a location outside of `%ES_HOME%``.
  34. See <<path-settings>>.
  35. // end::win-zip[]
  36. // tag::win-msi[]
  37. For <<windows,Windows `.msi`>> installations, {es} writes logs to
  38. `%ALLUSERSPROFILE%\Elastic\Elasticsearch\logs`.
  39. // end::win-msi[]