Created
January 1, 2018 13:38
-
-
Save gokart23/6cd8059ecc6229d1b2f79628a8a68746 to your computer and use it in GitHub Desktop.
Convert Kubernetes events to local timezone (for comparison with other logs)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl get events -o json | jq '.items[] | .lastTimestamp + "," + .message' | tr -d '"' | awk -F',' '{cmd="date +\"%d/%b/%Y:%T\" --date=" $1; cmd | getline conv_date; print "[" conv_date "] (kubectl events) " $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment