Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ce5e7630
Commit
ce5e7630
authored
Aug 24, 2021
by
Greg Myers
Committed by
Achilleas Pipinellis
Aug 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add jq snippet to sort activity by time across multiple logs
parent
c2dddd99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
doc/administration/troubleshooting/log_parsing.md
doc/administration/troubleshooting/log_parsing.md
+6
-0
No files found.
doc/administration/troubleshooting/log_parsing.md
View file @
ce5e7630
...
...
@@ -55,6 +55,12 @@ zcat @400000006026b71d1a7af804.s | (head -1; tail -1) | jq '.time'
zcat some_json.log.25.gz |
(
head
-1
;
tail
-1
)
| jq
'.time'
```
#### Get activity for correlation ID across multiple JSON logs in chronological order
```
shell
grep
-hR
<correlationID> | jq
-c
-R
'fromjson?'
| jq
-C
-s
'sort_by(.time)'
| less
-R
```
### Parsing `production_json.log` and `api_json.log`
#### Find all requests with a 5XX status code
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment