This is a short hands-on tutorial on creating TCPWebLog RPM packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL).

TCPWebLog is a Free Open Source Software system designed to collect and aggregate Web logs (i.e. Apache and Varnish) from multiple GNU/Linux computers running on a Cloud. For more information please read the blog post: TCPWebLog – Collecting and Aggregating Web Logs on the Cloud.

NOTE: The commands on this guide were tested on both CentOS 6.2 and Scientific Linux 6.2 (2.6.32-220.17.1.el6.x86_64) virtual machines.

To build the RPM packages we first need a set an RPM development environment as described on the article: How to set up a build environment for RPM packages on Enterprise Linux.

Once the development environment is correctly setup, login as makerpm user and download the TCPWebLog sources:

$ cd ~
$ git clone git://

Copy the SPEC files and source files to rpmbuild dir:

$ cd ~/TCPWebLog
$ export SUVER=$(cat VERSION)

$ cd ~/TCPWebLog/client
$ cp tcpweblog_client.spec ~/rpmbuild/SPECS/
$ tar -zcvf ~/rpmbuild/SOURCES/tcpweblog_client-$SUVER.tar.gz  *

$ cd ~/TCPWebLog/server
$ cp tcpweblog_server.spec ~/rpmbuild/SPECS/
$ tar -zcvf ~/rpmbuild/SOURCES/tcpweblog_server-$SUVER.tar.gz  *

Create the RPMs:

$ cd ~/rpmbuild/SPECS/
$ rpmbuild -ba tcpweblog_client.spec
$ rpmbuild -ba tcpweblog_server.spec

The RPMs are now located at ~/rpmbuild/RPMS/$(uname -m)

For installation and configuration instructions, please read TCPWebLog – Collecting and Aggregating Web Logs on the Cloud.

Nicola Asuni Systems Engineer

Nicola focused on designing, building and integrating the backend for our application platforms, including automatic deployment, monitoring and backups.