diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-24 15:09:24 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-24 15:09:24 +0300 |
commit | 17c1c66eefd05243dd8ed2c8fd49d17ab1a52522 (patch) | |
tree | a6f7c103902284c8245bc1991769916139f60aa9 /doc/administration/logs | |
parent | 3a4363e0098b1ff7689247e55da416848ac51050 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/administration/logs')
-rw-r--r-- | doc/administration/logs/log_parsing.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/administration/logs/log_parsing.md b/doc/administration/logs/log_parsing.md index 0439d4967cb..84c517e6120 100644 --- a/doc/administration/logs/log_parsing.md +++ b/doc/administration/logs/log_parsing.md @@ -120,6 +120,12 @@ jq 'select(.queue_duration_s > 10000)' <FILE> jq -s 'map(select(.gitaly_calls != null)) | sort_by(-.gitaly_calls) | limit(10; .[])' <FILE> ``` +#### Output a specific time range + +```shell +jq 'select(.time >= "2023-01-10T00:00:00Z" and .time <= "2023-01-10T12:00:00Z")' <FILE> +``` + ### Parsing `gitlab-rails/production_json.log` #### Print the top three controller methods by request volume and their three longest durations |