path-settings.asciidoc 933 B

12345678910111213141516171819
  1. {es} writes the data you index to indices and data streams to a `data`
  2. directory. {es} writes its own application logs, which contain information about
  3. cluster health and operations, to a `logs` directory.
  4. For <<targz,macOS `.tar.gz`>>, <<targz,Linux `.tar.gz`>>, and
  5. <<zip-windows,Windows `.zip`>> installations, `data` and `logs` are
  6. subdirectories of `$ES_HOME` by default. However, files in `$ES_HOME` risk
  7. deletion during an upgrade.
  8. In production, we strongly recommend you set the `path.data` and `path.logs` in
  9. `elasticsearch.yml` to locations outside of `$ES_HOME`. <<docker,Docker>>,
  10. <<deb,Debian>>, and <<rpm,RPM>> installations write
  11. data and log to locations outside of `$ES_HOME` by default.
  12. Supported `path.data` and `path.logs` values vary by platform:
  13. include::{es-ref-dir}/tab-widgets/customize-data-log-path-widget.asciidoc[]
  14. include::{es-ref-dir}/modules/node.asciidoc[tag=modules-node-data-path-warning-tag]