[Swift-commit] r6202 - trunk/libexec/log-processing

lgadelha at ci.uchicago.edu lgadelha at ci.uchicago.edu
Thu Jan 31 06:50:30 CST 2013


Author: lgadelha
Date: 2013-01-31 06:49:46 -0600 (Thu, 31 Jan 2013)
New Revision: 6202

Modified:
   trunk/libexec/log-processing/log-to-execute-transitions
   trunk/libexec/log-processing/log-to-execute2-transitions
Log:
Fixed extraction scripts to reflect new log format changes.


Modified: trunk/libexec/log-processing/log-to-execute-transitions
===================================================================
--- trunk/libexec/log-processing/log-to-execute-transitions	2013-01-31 05:29:31 UTC (rev 6201)
+++ trunk/libexec/log-processing/log-to-execute-transitions	2013-01-31 12:49:46 UTC (rev 6202)
@@ -11,15 +11,16 @@
 # then change relevant lines to transition format
 
 # then filter out unchanged lines because they're irrelevant
+grep ' INFO  swift ' | grep thread | grep -v provenanceid | \
+grep -v ARRAYRANGE | iso-to-secs | grep -E '^[^ ]+ +[^ ]+ +swift ' | \
+sed 's/\([^ ]*\) INFO  swift Exception in .*://' | \
+sed 's/\([^ ]*\) INFO  swift \([^ =]*\) \([^ =]*\) .*thread=\([^ ]*\).*$/\1 \4 \2.\3/' | \
+sed 's/\([^ ]*\) INFO  swift \([^ ]*\) .*thread=\([^ ]*\).*tr=\([^ ]*\).*$/\1 \3 \2 \4/' | \
+sed 's/\([^ ]*\) INFO  swift \([^ ]*\) .*thread=\([^ ]*\).*$/\1 \3 \2/' | \
+grep -E '^[^$]'
 
-grep ' vdl:execute ' | iso-to-secs | \
-grep -E '^[^ ]+ +[^ ]+ +vdl:execute ' | \
-sed 's/\([^ ]*\) INFO  vdl:execute Exception in .*://' | \
-sed 's/\([^ ]*\) INFO  vdl:execute \([^ =]*\) \([^ =]*\) .*thread=\([^ ]*\).*$/\1 \4 \2.\3/' |\
-sed 's/\([^ ]*\) INFO  vdl:execute \([^ ]*\) .*thread=\([^ ]*\).*tr=\([^ ]*\).*$/\1 \3 \2 \4/' |\
-sed 's/\([^ ]*\) INFO  vdl:execute \([^ ]*\) .*thread=\([^ ]*\).*$/\1 \3 \2/' |\
- grep -E '^[^$]'
 
+
 # force a successful exit, rather than using the exit codes from pipeline
 # components above (most probably grep?)
 

Modified: trunk/libexec/log-processing/log-to-execute2-transitions
===================================================================
--- trunk/libexec/log-processing/log-to-execute2-transitions	2013-01-31 05:29:31 UTC (rev 6201)
+++ trunk/libexec/log-processing/log-to-execute2-transitions	2013-01-31 12:49:46 UTC (rev 6202)
@@ -12,12 +12,19 @@
 
 # then filter out unchanged lines because they're irrelevant
 
-grep ' vdl:execute2 ' | iso-to-secs | \
-grep -E '^[^ ]+ +[^ ]+ +vdl:execute2 ' | \
-sed 's/^\(.*\) DEBUG vdl:execute2 THREAD_ASSOCIATION jobid=\([^ ]*\) thread=\([0-9\-]*\) host=\([^ ]*\) replicationGroup=\([^ ]*\).*$/\1 \2 ASSOCIATED \3 \4 \5/'  | \
+#grep ' vdl:execute2 ' | iso-to-secs | \
+#grep -E '^[^ ]+ +[^ ]+ +vdl:execute2 ' | \
+#sed 's/^\(.*\) DEBUG vdl:execute2 THREAD_ASSOCIATION jobid=\([^ ]*\) thread=\([0-9\-]*\) host=\([^ ]*\) replicationGroup=\([^ ]*\).*$/\1 \2 ASSOCIATED \3 \4 \5/'  | \
+#\
+#sed 's/^\([^ ]*\) DEBUG vdl:execute2 \([^ ]*\) jobid=\([^ ]*\).*/\1 \3 \2/'
+
+grep ' swift ' | iso-to-secs | \
+grep -E '^[^ ]+ +[^ ]+ +swift ' | \
+sed 's/^\(.*\) DEBUG swift THREAD_ASSOCIATION jobid=\([^ ]*\) thread=\([0-9\-]*\) host=\([^ ]*\) replicationGroup=\([^ ]*\).*$/\1 \2 ASSOCIATED \3 \4 \5/'  | \
 \
-sed 's/^\([^ ]*\) DEBUG vdl:execute2 \([^ ]*\) jobid=\([^ ]*\).*/\1 \3 \2/'
+sed 's/^\([^ ]*\) DEBUG swift \([^ ]*\) jobid=\([^ ]*\).*/\1 \3 \2/' | grep -v DEBUG | grep -v INFO
 
+
 # | \
 #sed 's/^\([^ ]*\) DEBUG vdl:execute2 \([^ ]*\) application exception: \(.*\)$/\1 \2 FAILED \3/' | \
 #sed 's/^\([^ ]*\) INFO  vdl:execute2 Completed job \([^ ]*\) \([^ ]*\) .* on [^ ]*$/\1 \2 EXECCOMPLETED/' | \




More information about the Swift-commit mailing list