Skip to content
代码片段 群组 项目
提交 bff4e2a6 编辑于 作者: Daniel Diniz's avatar Daniel Diniz 提交者: Achilleas Pipinellis
浏览文件

Where to find geo.log in Kubernetes

上级 d6267a79
No related branches found
No related tags found
无相关合并请求
......@@ -985,8 +985,15 @@ For example:
## `geo.log` **(PREMIUM SELF)**
Geo stores structured log messages in a `geo.log` file. For Linux package
installations, this file is at `/var/log/gitlab/gitlab-rails/geo.log`.
Geo stores structured log messages in a `geo.log` file. For Linux package installations,
this file is at `/var/log/gitlab/gitlab-rails/geo.log`.
For Helm chart installations, it's stored in the Sidekiq pod, at `/var/log/gitlab/geo.log`.
It can be read by either directly accessing the file, or by using `kubectl` to fetch the Sidekiq logs, and subsequently filtering the results by `"subcomponent"=="geo"`. The example below uses `jq` to grab only Geo logs:
```shell
kubectl logs -l app=sidekiq --max-log-requests=50 | jq 'select(."subcomponent"=="geo")'
```
This file contains information about when Geo attempts to sync repositories
and files. Each line in the file contains a separate JSON entry that can be
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册