Added by David Blevins, last edited by David Blevins on Jan 09, 2006  (view change)

Tail cgi

There is a cgi script on that will allow you to search the logs of the various hosts in gbuild. Here it is with all it's default options:


Which is the same as:


Those are executed in the script as such:

cut -c $cut $log | egrep $grep | tail -n $lines


To see the last few lines of stan's ( log file. Try this url:


These also work:


See the list of Hosts in the GBuild Network for the full list of valid bX values.


There are a bunch of ways to grep the log files for interesting info. The grep string is actually evaluated by egrep, so it's fairly powerful.

Here are some some useful examples for searching stan's log (he just coordinates and doesn't build):

no ping lines
work started
work completed
work completed by kenny*Completed
work completed successfully*Successful
work started or completed"Started|Completed"
Messages from the build-activity component
build-activity messages from kenny only ["build-activity.*kenny"]
messages from the build-producer
builds created for ejb things*ejb
activity for ejb things*ejb
completion of ejb related tests*ejb.*Completed

If you use the host param to search a specific build agent that is doing actual build work, you might grep for these things:

build commands executed*Arguments
build command and exit codes"ContinuumBuildExecutor:shell.*(Arguments|Exit)"
scm activity
scm activity and build commands"Scm|Arguments"

You can even pass arguments to the grep command for doing things like context greps. This is really nice as it puts separators between each matching chunk.

get 15 lines before each BUILD.RESULTS
the 14 lines after "Message Received" ["Message%20Received"]


To get more or less lines of output from a log file use the lines parameter as such:


A few examples combined with some greps:

the last build completed
the last build started
the last ten builds added to the queue*Build
the last seven pings received


You can cut off the first few characters of the lines to get shorter output as such:


That would cut off the first 19 characters and give you everything from 20 to the end of the line (-).

cut up till INFO, WARN, etc.
cut up till the component name
cut up till the message

Site running on a free Atlassian Confluence Open Source Project License granted to OSS. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators