logging.asciidoc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [float]
  2. [[breaking_70_logging_changes]]
  3. === Logging changes
  4. [float]
  5. ==== New JSON format log files in `log` directory
  6. Elasticsearch now will produce additional log files in JSON format. They will be stored in `*.json` suffix files.
  7. Following files should be expected now in log directory:
  8. * ${cluster_name}_server.json
  9. * ${cluster_name}_deprecation.json
  10. * ${cluster_name}_index_search_slowlog.json
  11. * ${cluster_name}_index_indexing_slowlog.json
  12. * ${cluster_name}.log
  13. * ${cluster_name}_deprecation.log
  14. * ${cluster_name}_index_search_slowlog.log
  15. * ${cluster_name}_index_indexing_slowlog.log
  16. * ${cluster_name}_audit.json
  17. * gc.log
  18. Note: You can configure which of these files are written by editing `log4j2.properties`.
  19. [float]
  20. ==== Log files ending with `*.log` deprecated
  21. Log files with the `.log` file extension using the old pattern layout format
  22. are now considered deprecated and the newly added JSON log file format with
  23. the `.json` file extension should be used instead.
  24. Note: GC logs which are written to the file `gc.log` will not be changed.
  25. [float]
  26. ==== Docker output in JSON format
  27. All Docker console logs are now in JSON format. You can distinguish logs streams with the `type` field.
  28. [float]
  29. ==== Audit plaintext log file removed, JSON file renamed
  30. Elasticsearch no longer produces the `${cluster_name}_access.log` plaintext
  31. audit log file. The `${cluster_name}_audit.log` files also no longer exist; they
  32. are replaced by `${cluster_name}_audit.json` files. When auditing is enabled,
  33. auditing events are stored in these dedicated JSON log files on each node.