Splunk Steam for Real-Time Latte Analytics

Industries Matthias Maier

As my fellow coffee lovers may know, Monday 1st October was International Coffee Day - and what better way to honour it than with a blog post on Splunking my coffee machine? You see, I drink a lot coffee, so thought that a little self control wouldn’t hurt! Can you count how many cups you drink a day? Even the ones you mindlessly grab from the coffee machine because you’re so deep into your work - or is that just me?

Good For Monitoring Java Beans

Sure - I don’t have a super expensive, latest model coffee machine, with retina display, running on Linux connected via WiFi. I have an “analog” coffee machine. No ethernet cable or wireless, so thankfully I don’t need to patch and update firmware (sorry, I’m a security geek after all!). However, it still makes awesome coffee, and the best thing about it is the built-in mill, ensuring a fresh cup every time!

Good For Monitoring Java Beans - Adapter!

I invested 37 Euro and bought an Equip Wireless Plug from Edimax, which features an energy meter and connects to my WiFi.

The decision for this particular adapter was due to someone’s review mentioning that it is possible to access and control the device via rest. Someone also posted handy script samples on github of how to do so.

I installed this into my Splunk instance at home using the Rest API Modular Input app and configured a new input, immediately pulling in events every five seconds, as instructed:

I think the same scenario of analog devices is often present in the Industry 4.0 arena - there are old machines that work, but you still need to get some “insight” out of them.

E-vente Analytics

Ok, the data is not strictly from my coffee machine, but from the power plug connected to it. Here’s the energy consumption parameter:

As you can see, I have extracted two value’s; Ampere and Watt. I retrieve those values now every five seconds - day and night!

MTTR - Mean Time To Ristretto

Next, I created a timechart and calculated the used Ampere, as there is a higher consumption if the machine is on and running. So you can see already a clear trend; five cups of coffee from the morning of May 2nd to lunch is a typical home office day. You can also see that on the next day I was apparently more alert, and reduced my coffee consumption.

My weekend coffee habits look a little healthier. However, many argue that coffee is healthy - so I’ll let you be the judge! Notice that the Ampere here is up from 200 to 400? This is because alongside my daily espresso habits, my wife always has a cappuccino - but she gets her weekday fix in the office rather than at home.

From Zero To Nero Downtime

Now the fun really starts when we use Splunk to answer key questions, and find interesting correlations. Here are some examples of what we could ask:

Got any more ideas (or coffee-related puns?), let me know! Enjoy your coffee today - cheers and happy Splunking!

Matthias

Related Articles

AI + Quantum in Manufacturing: Bold Predictions, Reality Checks and Real-Life Examples
Industries
8 Minute Read

AI + Quantum in Manufacturing: Bold Predictions, Reality Checks and Real-Life Examples

Meet John, the plant manager, together with Caesar, the manufacturing AI robot, Milo, the quantum watchdog with superposition capabilities, and the rest of the AI + Quantum manufacturing crew of the factory of the future. Read on about bold predictions, reality checks at Hannover Messe and real-life Splunk / Cisco examples of AI + Quantum in manufacturing.
Short Staffed? Try Using SOAR to Augment Your Security Team
Industries
6 Minute Read

Short Staffed? Try Using SOAR to Augment Your Security Team

Splunk's Frank Myers looks at two industries affected by short staffing – higher education and state and local governments – and explains how Splunk SOAR can help.
Technology Modernization Fund: An Opportunity to Upgrade Legacy Capabilities
Industries
2 Minute Read

Technology Modernization Fund: An Opportunity to Upgrade Legacy Capabilities

Federal agencies should seek additional funding for system upgrades and new capabilities from the Technology Modernization Fund. While historically underused, the $1 billion fund can help get agencies off of insecure and inefficient legacy systems and onto state-of-the-art technology, such as cloud and security automation.