Last active
October 26, 2015 06:17
-
-
Save aminamid/37d5797de55499d5317d to your computer and use it in GitHub Desktop.
RG log trac and segfault in messages
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
cat messages-20150913 messages | grep segfault | grep kavehost > list_segfault_kavehost | |
cat messages-20150913 messages | grep segfault | grep -v kavehost > list_segfault_other | |
zcat smtp-2015091{0..5}-{0..23}.log.gz | grep -i -e "reported error 80040004" -e "AVMsgVerdictFailed" > list_err80040004_AVMsgVerdictFail | |
grep 80040004 list_err80040004_AVMsgVerdictFail > list_err80040004 | |
for tid in $(cat aminamid/list_err80040004 | grep 80040004 | sed -e 's/^\(........\) 0*\([^ :]\{1,2\}\)[^ ]* \([^ ]*\) .*$/\1_\2_\3/'); do echo ${tid}; done | awk -F'_' '{print "zgrep "$3" smtp-"$1"-"$2".log.gz | grep Subj" }' > l.sh | |
bash l.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment