path-settings.asciidoc 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. [[path-settings]]
  2. === `path.data` and `path.logs`
  3. If you are using the `.zip` or `.tar.gz` archives, the `data` and `logs`
  4. directories are sub-folders of `$ES_HOME`. If these important folders are left
  5. in their default locations, there is a high risk of them being deleted while
  6. upgrading Elasticsearch to a new version.
  7. In production use, you will almost certainly want to change the locations of the
  8. data and log folder:
  9. [source,yaml]
  10. --------------------------------------------------
  11. path:
  12. logs: /var/log/elasticsearch
  13. data: /var/data/elasticsearch
  14. --------------------------------------------------
  15. The RPM and Debian distributions already use custom paths for `data` and `logs`.
  16. The `path.data` settings can be set to multiple paths, in which case all paths
  17. will be used to store data (although the files belonging to a single shard will
  18. all be stored on the same data path):
  19. [source,yaml]
  20. --------------------------------------------------
  21. path:
  22. data:
  23. - /mnt/elasticsearch_1
  24. - /mnt/elasticsearch_2
  25. - /mnt/elasticsearch_3
  26. --------------------------------------------------