Stepping Out of the Usual

Whenever I find it the hardest to stick with a book as I challenge myself to read more to improve my writing, other mediums would always be my alternative. Lately, I’ve been hoarding quite a number…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Splunk Your Health

Export, Input Analyse and Visualise your Apple Health Data with Splunk

The amount of data an individual or company generates everyday is growing exponentially, and with it, the complexity of analysing this data. This article aims to demonstrate one of many use-cases of Splunk as a data analysis tool. I will explain the process of exporting health data from from Apple’s Health App and, then analysing and visualising this on Splunk

Splunk is a software platform used to search, analyse and visualise the machine-generated data gathered from websites, applications, sensors and devices.

Apple Health App

Health App is the iOS health informatics mobile app used to track the user’s health and physical metrics such as steps taken, body weight, heart weight and mood. The app works by collecting data from smart wearbles, phones and other third-party data sources authorised by the user. For the purposes of this article I will be using my iPhone which collects data from itself and my Apple Watch.

Although the Health App already displays some visualisations about the data collected; it is very generic and may not answer specific questions such as:

These are all interesting questions which I hope to answer using my data and Splunk so let’s get started.

To export the Health data open the Health App on your phone

and you should see the following output

The script has now completed the conversion and you should see many .CSV files in the original directory. You can have a look at any of these but we will be focusing on StepCount.csv

Select the StepCount.csv to analyse

New Index:Select Settings > indexes > New index

New App:Select Apps > Manage Apps > Create App

Select Settings > Add Data (icon) > Upload > Select File

Next > Change timestamp > Advanced >

SPL used for Splunk Search.

My first step with the iPhone was 13:23 on 10th August 2017. Historic moment
Change visualisation to Punchard (Click on find more visualizations)

There are many ways to improve this project below are some of the improvements that can be made

When it comes to analysing your data; the sky is the limit. You can answer specific questions about your daily habits and make improvements in your life and ,along with this, you can track your goals and keep yourself accountable.

Add a comment

Related posts:

What is Service Discovery in Microservices?

Before the advent of Microservices architecture, Monolithic architecture was predominant across the web. As seen from the picture above, lets us assume that this is the Monolith application that runs…

GreatScott! Asks Should You DIY or Buy a MIDI Launchpad?

In the world of hobbyist electronics and other devices, you’ll often come upon a situation where you can either buy something, or making it yourself. Depending on the value of your time and…

Revisiting the Possible Ted Bundy Murders in New Jersey

In light of the recent Netflix special “Conversations with a Killer: The Ted Bundy Tapes,” Garden State Press was reminded of two mid-summer Jersey Shore murders in 1969. The four part series was…