Archive for the ‘Uncategorized’ Category

AWS Elastic Beanstalk remove health checks from Apache logs.

June 5, 2018

We running a PHP web application using AWS Elastic Beanstalk. Been looking at improving our monitoring using CloudWatch logs. Unfortunately the logs are polluted by our health checks originating from our ELB.

Here’s a quick guide on how to stop this.

Using the .ebextensions add the following file into your project (If you haven’t heard about EB extensions, read here.):


mode: “000644”
owner: root
group: root
content: |
SetEnvIf Request_URI “^/elb-health-check\.php$” dontlog
SetEnvIf Remote_Addr “127\.0\.0\.1” dontlog
SetEnvIf Remote_Addr “::1” dontlog

command: sed -i.bak ‘s+CustomLog “logs/access_log” combined.*+CustomLog “logs/access_log” combined env=!dontlog+’ /etc/httpd/conf/httpd.conf
command: apachectl configtest
command: service httpd restart

Change the health check URL in the Request_URI, my health check is at /elb-health-check.php. Then simply eb deploy and you should have a clearer view of your logs. 😀

Articles that helped:

AWS ELB in Apache logs

Apache Logs in AWS

View at


AWS Summit Notes

July 12, 2016


What a great first AWS Summit on African soil!

2016-07-12 08.14.29

Even had the honour of getting a quick pic with the legend himself 🙂

What a massive turn out as well! 600+ people turned up. Never knew the interest in AWS was this big in Cape Town.

We had great talks from Mix telematics on how they manage 66TB data.


2016-07-12 09.39.48

How Jumo world came to trust AWS security in the unsecured lending space. Some points I took with me were around compliance reporting. Which I might need in the future.

Other key points of discussion were ECS and their Lambda service. Lambda shows real promise in the Micro Services space. The Serverless Architecture demo was great. Non technical, but reducing the cost of running a website from $4000 to $13. Really got a lot of oohs and aahs.

There was a voice deploy demo using Amazon Echo. The backend was powered by AWS Lambda. It in turn triggered a CodeDeploy job to update code using a voice command. Some cool shit!

2016-07-12 16.28.59.jpg

Werner ended the day off with a talk on Machine Learning (Kudos for his AVB t-shirt and red chucks). Discussing how Machine Learning has become the differentiator in some spheres of business.

2016-07-12 21.22.43

All in all it turned out to be a good day. We even had some time to mingle over a beer or 6 and exceptional wines from Saronsberg 🙂

AWS Summit Cape Town

July 11, 2016


Yes you heard correct! AWS Summit is coming to little old Cape Town! The heart of South Africa. Probably the home of EC2 and a few other services. Not to mention a great place for developers to work,live and play. 🙂

If you haven’t already registered, it might not be to late.

Dr. Werner Vogels will be the keynote speaker. That should get you there by itself. Him being the CTO of Amazon and all. 😉

Looking forward to hear some cool announcements pertaining to Africa. Maybe an edge location in the making?

AWS re:Invent 2016

July 6, 2016

The dates have been set! Time for the largest gathering of AWS users in the world. If you are lucky to attend this year, there’s a few things that you should know before going.

Book the closest hotel.

That would be the Venetian. As it all goes down there. Second choice would be the Mirage. The Encore/Wynn are very classy hotels, but they are quite a walk away from the Venetian.

Arrive early.

Try and be there a day early. So you can adjust to the weather etc. And the side-effects of jet lag.

Don’t try and walk!

Everything is damn far from everything. Rather jump on a bus and walk from the nearest stop. You can get a 3 day bus pass instead. +-$22. Money well spent.

Get connected.

Get yourself a sim card for your phone. There’s wireless in the Venetian, but not all places outside are free. Install the official app to stay in touch with conference activities.

Nothing good happens after 12.

If you would like to partake in the majority of events, get back to your room by 12. (That’s my age talking) Always have a coupling with you. Good to have buddies nearby.


It’s year end. And if you looking for bargains, there are bargains to be had. Mainly off The Strip though. You might even decide to pack light, and get there a day early to shop for some jean pants and the like 🙂


Use Tripadvisor to see what’s cool to do in the area, if you have spare time. There’s a ton of stuff to do! (Besides the obvious! 😉

Related Links:


Hello WordPress

May 19, 2016

And so it begins…