Splunking F1: Part One

Here at Splunk, we are always on the lookout for new and exciting sources of data to get our hands on. When an opportunity to demonstrate Splunk to a prominent Formula One team came along, it really motivated us to search for a relevant data set to tailor the value of Splunk. The suggestion of Formula One racing simulators came from a conversation with an exemplary individual who I will refer to as Dave. Dave, a keen Formula One enthusiast, had identified a new capability in the F1 2016 PS4 game. After discovering telemetry data could be sent via UDP to third party applications, Dave had embarked on a personal project to consume and analyse this data in Splunk.

How it works

Racing simulators have evolved considerably in recent years, adding real-world variables such as fuel usage, damage, tyre properties, suspension settings and more. F1 2016 introduced the feature to expose such metrics via UDP to external devices such as D-BOX, motion platforms, steering wheels and LED devices. The game can be configured to broadcast real-time telemetry data every tenth of a second - equivalent to that of a real-world F1 car - to the local network subnet, or to send UDP traffic to a specific host and port. Each UDP packet sent includes a char array containing the telemetry data in binary format. Splunk as a machine data platform is well equipped to take advantage of the plethora of data on offer, thus providing the basis for an exciting new analytics project.

Any data can be brought into Splunk, but it needs to be in a textual, human readable format for us to comprehend it. To intercept and decode the UDP traffic, we implemented a simple Splunk modular input to listen on a socket, unpack the char array, reformat the data as CSV, and write it to Splunk via the Python SDK. CSV is particularly efficient as it minimises the raw event size and Splunk can easily learn the context of the dataset.

We were able to save significant time and effort by using the Splunk Add-on Builder. The tool helps developers configure data inputs, create a setup page, and ensure adherence to best practices, rather than having to manually edit and manage Splunk configuration files. When building modular inputs, it provides a series of helper classes which further simplify the effort involved.

All in all, including the copious amounts of "testing" of the F1 2016 game, we completed the data ingestion component of the project within a day. We will be publishing the TA on Splunkbase in the near future; in the meantime the source is available on Github.

Splunk Live! F1 Challenge London

As with many types of data in Splunk, you typically find that the same data can be used in a variety of different ways, and for different audiences - each use case defined by the lens we place on the data. Our project commenced as a straightforward demonstration of real-time ingestion of the F1 telemetry data, with a sequence of dashboards to analyse the race data. The opportunity then presented itself to use the F1 data for a different purpose at this year's SplunkLive! London and Paris events.

Stay tuned for part two of this blog to discover how the data unravelled the unlikely event of a tie at SplunkLive! London.

SplunkLive f1 challenge leaderboard

----------------------------------------------------
Thanks!
Jon Varley

Related Articles

Access the Cloud Monitoring Console from Anywhere
Platform
2 Minute Read

Access the Cloud Monitoring Console from Anywhere

Have you ever wanted to check the status of your Splunk Cloud Platform deployment but can't easily access your laptop? We've got you covered — the Cloud Monitoring Console is now available on Spunk Mobile.
Empower Your Organization with Splunk On the Go
Platform
2 Minute Read

Empower Your Organization with Splunk On the Go

Get an overview of Splunk Mobile, learn about new Splunk Mobile features, and find out how easy it is to build dashboards for Splunk Mobile.
Go with your Data Flow - Improve your Machine Learning Pipelines
Platform
3 Minute Read

Go with your Data Flow - Improve your Machine Learning Pipelines

How do you organize the data flow in Splunk Enterprise or Splunk Cloud? Splunker Philipp Drieger shares typical data pipeline patterns that will help you improve your existing or future machine learning workflows with MLTK or DLTK.
Dashboard Studio Tips: What's New in 8.2.2106
Platform
2 Minute Read

Dashboard Studio Tips: What's New in 8.2.2106

You asked, we answered. The Dashboard Studio release in Splunk Cloud Platform 8.2.2106 comes with improvements requested by you: UI to add data sources to inputs, hiding the Edit or Open in Search buttons, a brand new markdown visualization, and more!
Deep Learning Toolkit 3.6 - Automated Machine Learning, Random Cut Forests, Time Series Decomposition, and Sentiment Analysis
Platform
3 Minute Read

Deep Learning Toolkit 3.6 - Automated Machine Learning, Random Cut Forests, Time Series Decomposition, and Sentiment Analysis

We’re excited to share that the Deep Learning Toolkit App for Splunk (DLTK) is now available in version 3.6 for Splunk Enterprise and Splunk Cloud. Read all about the updates here.
Introducing Splunk Federated Search
Platform
3 Minute Read

Introducing Splunk Federated Search

We’re excited to share that the Splunk Federated Search is now generally available starting in Splunk Cloud Platform 8.1.2103 and Splunk Enterprise 8.2! Get an introduction to Federated Search and see how you can enjoy a unified search experience across your data ecosystem.
Cyclical Statistical Forecasts and Anomalies – Part 5
Platform
5 Minute Read

Cyclical Statistical Forecasts and Anomalies – Part 5

When your datasets are far from simple, your anomaly detection techniques must evolve to scale with the growing complexity. In this blog, you will learn various ways to take your anomaly detection to the next level no matter the complexity of your data.
Dashboard Studio: Dashboard Customization Made Easy
Platform
4 Minute Read

Dashboard Studio: Dashboard Customization Made Easy

Learn more about Splunk Dashboard Studio, a new and intuitive dashboard-building experience, with native capabilities for customizing layout or colors, and adding images or text boxes.
Removing Python® 2 from New Splunk Cloud and Splunk Enterprise Releases Starting Fall 2021
Platform
3 Minute Read

Removing Python® 2 from New Splunk Cloud and Splunk Enterprise Releases Starting Fall 2021

Python 2 will be removed from all new Splunk Cloud and Splunk Enterprise releases starting Fall 2021. Learn how to confirm full Python 3 app readiness for confidence in migrations.