Skip to content

Instantly share code, notes, and snippets.

@wwwins
Created October 18, 2022 03:18
Show Gist options
  • Save wwwins/568de8351427b4a270921a0cc32965d3 to your computer and use it in GitHub Desktop.
Save wwwins/568de8351427b4a270921a0cc32965d3 to your computer and use it in GitHub Desktop.
pretty-printed fastify log output
# convert unix timestamp to the local timezone
tail -f logs/access.log | jq '.time |= (tonumber / 1000 | strflocaltime("%c %Z"))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment