gitlab

gitlab ログ

https://stackoverflow.com/questions/65625174/filtering-out-login-logs-from-gitlab-production-json-log-with-jq

jq コマンドの Linux への速攻インストール - Qiita

cat /var/log/gitlab/gitlab-rails/production_json.log | jq --raw-output --unbuffered 'select(.remote_ip != null and .method == "POST" and .path == "/users/sign_in") | .time + " " + .remote_ip + " " + .ua + " " + (.params[] | select(.key == "user").value.login )'