Archive for

Loading log4j configuration from a file

Yesterday I needed to make log4j load its configuration from a specific file outside the classpath. Sounds simple enough and according to the docs all you need to do is setup an environment variable called log4j.configuration. The tricky part, which is easy to miss, is that the path needs to be given as a URI, … Continue reading

Analysing access logs using R

Recently I was analysing a bunch of access logs searching for some tricky to find bug and found out that R may be quite handy in such a situation. So let’s take a look at a quick analysis of access logs written in Common Log Format. Each line of an access log file looks like … Continue reading