Recent Posts
Search Quassel Logs
6. January, 2014
I use quassel as my IRC client. Before that, I used irssi , and before that I used XChat and a bouncer, all in the name of not missing anything that happens on IRC. Arguably this is all a bit silly, since not that much actually important happens on IRC, and in any case if you miss it, you can just ask someone else to fill you in. But nevertheless, I find staying on all the time worth the hassle of finding the right client and currently I find quassel to be the best solution — it has a proper UI unlike irssi, so it's easy on the eye and has keyboard shortcuts, etc; it doesn't require a nasty bouncer with all the ugly scrollback that entails; it's actively maintained; and it has a decent Android client.
But the disadvantage is that, after accumulating all of those lovely logs, it's really hard to search through them. Traditional clients save their logs to text files on your hard drive and you can just search them with any text editor or more usually, grep
. But quassel's logs are stored in a database and crafting the correct SQL query by hand every time is a pain, and crucially quassel currently has no means of searching logs that aren't loaded from within the client. You can use the PHP-based quasselsuche but that requires installation and going through webpages and such, and I wanted a lighter solution. In-client log searching is a long-term feature request for quassel that's sure to be implemented at some point, but until then, enter quasselgrep!
quasselgrep
is a command-line tool in the spirit of grep
which allows you to easily search quassel's logs. Documentation is available on the github page/in the README and should be fairly easy to follow, but in brief: You run quasselgrep
on the server where quasselcore is running (or through an SSH tunnel), either running queries directly, or in server mode so quasselgrep
clients can connect to it — useful if you're hosting a multi-user quasselcore.
An example query would be:
$ quasselgrep -b #quassel -n Fish-Face -t yesterday quassel
Which searches the channel #quassel for lines by me, sent yesterday, where I mentioned quassel.
quasselgrep
is still under development and needs bugs finding and features adding, but should be quite serviceable. Please report/comment on the github page!