Search
Notion
JQ
Print fields in a single row (local system timezone):
jq -j '(.instant.epochSecond |strflocaltime("%Y-%m-%d %H:%M %Z")), " ", .level, " ", .message, "\n"'
Bash
Combined with select:
jq -j 'select(.level |contains("ERROR")) | (.instant.epochSecond |strflocaltime("%Y-%m-%d %H:%M %Z")), " ", .level, " ", .message, "\n"'
Bash
Print with stacktrace:
jq -j 'select(.level |contains("ERROR")) | (.instant.epochSecond |strflocaltime("%Y-%m-%d %H:%M %Z")), " ", .level, " ", .message, " ", .thrown.extendedStackTrace, "\n"'
Bash