sysadmin (2)

Introducing htail, a new debugging companion

September 28, 2015Blog

Modern software development usually involves a lot of moving parts. If you work on a web application, you might interact with: a reverse proxy, a web server, an application server, a relational database, a key-value store, and so on.

When a problem arises, the debugging procedure starts. You follow your intuition and start searching where you think the problem lays in. Usually, it’s not where you think it is, but somewhere else. What if you could have a view on your whole system while reproducing your issue? You might get the chance to see in one obscure log file where the problem lays.

After falling in this situation so many times, I decided to build a simple tool in order to read all my log files. It’s called htail and it’s available right now.

By firing up htail, you get your most common log files in your terminal or your browser window. It’s damn useful.

Installation and usage are described in the github page.


4 steps to follow when creating a new Rudder category

September 23, 2015Blog

When you want to add a custom technique to Rudder, you might want to create your own category directory.

To do so:

  • Create your directory in /var/rudder/configuration-repository/techniques/
cd /var/rudder/configuration-repository/techniques
mkdir foobar
cat > foobar/category.xml <<EOF
<xml><name>My Foobar Category</name><description>My Foobar Category is Awesome</description></xml>
EOF
  • Commit it in the underlying git repository
git add foobar
git commit -m "Add foobar category"
  • Reload the technique library
curl -s -f -k "https://localhost/rudder/api/techniqueLibrary/reload"
  • Check the error log in /var/log/rudder/webapp
tail /var/log/rudder/webapp/$(date +%Y_%m_%d).*