Skip to content

Instantly share code, notes, and snippets.

@Xenofex
Last active July 20, 2018 05:50
Show Gist options
  • Save Xenofex/75217ff394742a08236fddb62a4cdc13 to your computer and use it in GitHub Desktop.
Save Xenofex/75217ff394742a08236fddb62a4cdc13 to your computer and use it in GitHub Desktop.
慢到被杀死的请求
rg 'ERROR -- : reaped' unicorn.stderr.log |\
awk '{ r=match($14, /worker=(.*)/, a); system("rg \x27#" $10 "\x27 production." a[1] ".log | tail -1 | awk \x27{ print substr($7, 2, 36) }\x27 " ) }' |\
awk '{ system("rg \x27" $0 ".*Started\x27 production.*.log") }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment