20after4 has uploaded a new change for review.
https://gerrit.wikimedia.org/r/195657
Change subject: Fatalmonitor: Remove 'repeated N times: ' to collapse error
messages
......................................................................
Fatalmonitor: Remove 'repeated N times: ' to collapse error messages
This makes output cleaner by collapsing all the 'repeated N times'
instances of the same message down into a single line of the output.
Change-Id: I3ab0b262d0332300a8c6f6a99774b9ab3668d224
---
M files/misc/scripts/fatalmonitor
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/puppet
refs/changes/57/195657/1
diff --git a/files/misc/scripts/fatalmonitor b/files/misc/scripts/fatalmonitor
index 246b380..b0633be 100755
--- a/files/misc/scripts/fatalmonitor
+++ b/files/misc/scripts/fatalmonitor
@@ -3,8 +3,10 @@
# HHVM's logger appends a newline to each event it emits. This is encoded as
# "#012" by rsyslog to preserve the single line semantics of a syslog line.
# The `sed 's/#012//'` removes this unneeded visual noise.
+# The second sed command collapses repeated messages down to one line.
cmd="tail -n 1000 /a/mw-log/hhvm.log |
sed 's/#012//' |
+ sed 's/repeated [0-9]* times: //' |
cut -d ' ' -f 7- |
sort |
uniq -c |
--
To view, visit https://gerrit.wikimedia.org/r/195657
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3ab0b262d0332300a8c6f6a99774b9ab3668d224
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: 20after4 <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits