User Tools

Site Tools


code:linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
code:linux [2023/09/08 17:11]
hansek
code:linux [2023/11/11 00:39] (current)
hansek [jq]
Line 311: Line 311:
  
  
 +
 +===== jq =====
 +
 +**Inplace transform Unix timestamp to Datetime inside json log**
 +
 +<code bash>
 +docker events | TZ=Europe/Prague jq '.time |= (strflocaltime("%Y-%m-%d %H:%M:%s %Z"))' -C | less
 +</code>
 +
 +**Inplace decode all k8s secrets values**
 +
 +<code bash>
 +kubectl get secrets postgres-secrets -o json | jq '.data | map_values(@base64d)'
 +</code>
code/linux.1694185910.txt.gz · Last modified: 2023/09/08 17:11 by hansek