Skip to content

Commit c04d47c

Browse files
committed
more
1 parent 0bdb851 commit c04d47c

File tree

5 files changed

+104
-665
lines changed

5 files changed

+104
-665
lines changed

deploy-manage/monitor/logging-configuration.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,34 @@ Enabling log collection also supports collecting and indexing the following type
5151

5252
The `*` indicates that we also index the archived files of each type of log.
5353

54-
Check the respective product documentation for more information about the logging capabilities of each product.
54+
Check the respective product documentation for more information about the logging capabilities of each product.
55+
56+
=====
57+
58+
59+
You can use {{es}}'s application logs to monitor your cluster and diagnose issues. If you run {{es}} as a service, the default location of the logs varies based on your platform and installation method:
60+
61+
:::::::{tab-set}
62+
63+
::::::{tab-item} Docker
64+
On [Docker](../../deploy/self-managed/install-elasticsearch-with-docker.md), log messages go to the console and are handled by the configured Docker logging driver. To access logs, run `docker logs`.
65+
::::::
66+
67+
::::::{tab-item} Debian (APT) and RPM
68+
For [Debian](../../deploy/self-managed/install-elasticsearch-with-debian-package.md) and [RPM](../../deploy/self-managed/install-elasticsearch-with-rpm.md) installations, {{es}} writes logs to `/var/log/elasticsearch`.
69+
::::::
70+
71+
::::::{tab-item} macOS and Linux
72+
For [macOS and Linux `.tar.gz`](../../deploy/self-managed/install-elasticsearch-from-archive-on-linux-macos.md) installations, {{es}} writes logs to `$ES_HOME/logs`.
73+
74+
Files in `$ES_HOME` risk deletion during an upgrade. In production, we strongly recommend you set `path.logs` to a location outside of `$ES_HOME`. See [Path settings](../../deploy/self-managed/important-settings-configuration.md#path-settings).
75+
::::::
76+
77+
::::::{tab-item} Windows .zip
78+
For [Windows `.zip`](../../deploy/self-managed/install-elasticsearch-with-zip-on-windows.md) installations, {{es}} writes logs to `%ES_HOME%\logs`.
79+
80+
Files in `%ES_HOME%` risk deletion during an upgrade. In production, we strongly recommend you set `path.logs` to a location outside of `%ES_HOME%``. See [Path settings](../../deploy/self-managed/important-settings-configuration.md#path-settings).
81+
::::::
82+
83+
:::::::
84+
If you run {{es}} from the command line, {{es}} prints logs to the standard output (`stdout`).

0 commit comments

Comments
 (0)