File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -339,6 +339,24 @@ analyzing them via Grafana.
339
339
340
340
</aside>
341
341
342
+ As alternative to loki, JSON logs can be visualized with a human readable timestamp using `jq` :
343
+
344
+ 1. Browse the ProwJob artifacts and download the wanted logfile.
345
+ 2. Use `jq` to query the logs :
346
+
347
+ ` ` ` bash
348
+ cat manager.log \
349
+ | grep -v "TLS handshake error" \
350
+ | jq -r '(.ts / 1000 | todateiso8601) + " " + (. | tostring)'
351
+ ` ` `
352
+
353
+ The `(. | tostring)` part could also be customized to only output parts of the JSON logline.
354
+ E.g. :
355
+
356
+ * `(.err)` to only output the error message part.
357
+ * `(.msg)` to only output the message part.
358
+ * `(.controller + " " + .msg)` to output the controller name and message part.
359
+
342
360
# ## Known Issues
343
361
344
362
# ### Building images on SELinux
You can’t perform that action at this time.
0 commit comments