Posts tagged mongodb

MongoDB is web-scale

MongoDB is Web Scale. Lulz, right? Turns out, Mongo is the first NoSQL to nail painless Hadoop and Pig integration…thus becoming the first ‘web scale’ database.

Cache Reheating & MongoDB

Some tips & hints about Cache reheating

We’ve been doing some updates on Find Lunch In - some nice performance improvements and some better Analytics integration. Check it out over at www.findlunchin.co.uk.

We’ve been doing some updates on Find Lunch In - some nice performance improvements and some better Analytics integration. Check it out over at www.findlunchin.co.uk.

Generate a simple report of attacks on your servers from Graylog2 data using MapReduce

Whilst setting up centralised logging for one of our clients clusters, it was noticed that there are sometimes a large number of failed login attempts. Rather than manually checking each one, I’ve written a script using PHP and MongoDB JS MapReduce to aggregate the data and provide a useful report.

The following code will output a CSV report with the columns;

  • Offending IP address
  • Your servers hostname
  • The number of entries which matched

It’s not 100% fool proof, but provides us with a good guide with where to look / block first.

p.s. We also have a slightly modified version which allows checking of a list of IP addresses against successful logins…