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

How to Upgrade Your App to jQuery v3.5 or Newer
Platform
3 Minute Read

How to Upgrade Your App to jQuery v3.5 or Newer

Announcing the migration to jQuery v3.5 from prior versions in Splunk Enterprise, Splunk Cloud and all apps built on the platform. You need to update this to version 3.5+ by August 31, 2021.
What's New: Splunk Enterprise 8.2
Platform
3 Minute Read

What's New: Splunk Enterprise 8.2

Learn about the new capabilities in Splunk Enterprise 8.2! We have focused our development offers across a number of themes: insights, admin productivity, data infrastructure, and performance.
Stream Your AWS Services Metrics to Splunk
Platform
2 Minute Read

Stream Your AWS Services Metrics to Splunk

Amazon Web Services (AWS) recently announced the launch of CloudWatch Metric Streams. Cloudwatch Streams can stream metrics from a number of different AWS resources using Amazon Kinesis Data Firehose to target destinations. What this means for current Splunk customers is they now have the option of either using the Splunk add-on of AWS to poll metrics or to make use of this new service and let Amazon Kinesis Data Firehose push metrics to a Splunk HEC endpoint, and reduce their latency by anywhere between 5 to 10 minutes.
Deep Learning Toolkit 3.5 - Part 2: Change Point Detection, Matrix Profiles and LSTM-based Predictions
Platform
3 Minute Read

Deep Learning Toolkit 3.5 - Part 2: Change Point Detection, Matrix Profiles and LSTM-based Predictions

In the first part of this 2-part-series we talked about recent additions to version 3.5 of the Deep Learning Toolkit for Splunk (DLTK). Here in part 2 we want to explain a few new algorithmic approaches available for time series analysis. These can be especially interesting for anomaly detection and time series prediction.
Splunk App for Amazon Connect: End-to-End(point) Visibility for an Optimal Customer Experience
Platform
2 Minute Read

Splunk App for Amazon Connect: End-to-End(point) Visibility for an Optimal Customer Experience

The Splunk App for Amazon Connect now includes the ability to detect softphone issues at the endpoint and take an action to minimize the impact on customer experience.
Deep Learning Toolkit 3.5 - Part 1: Git, MLflow and Image Updates
Platform
2 Minute Read

Deep Learning Toolkit 3.5 - Part 1: Git, MLflow and Image Updates

Part 1 of this blog series, talks about the latest improvements for model management, code version control and recent image updates of Deep Learning Toolkit for Splunk (DLTK).
Going Live: Splunk Operator for Kubernetes 1.0.0
Platform
3 Minute Read

Going Live: Splunk Operator for Kubernetes 1.0.0

Announcing the general availability of Splunk Operator for Kubernetes 1.0.0, enabling you to quickly and easily deploy Splunk Enterprise on your choice of private or public cloud provider.
Dashboards GA: Introducing Splunk Dashboard Studio
Platform
5 Minute Read

Dashboards GA: Introducing Splunk Dashboard Studio

The Splunk Dashboards app (beta) functionality is now generally available as Splunk Dashboard Studio! This GA release also comes packed with new features, including an enhanced UI for Single Values, Tables, and Choropleth SVG.
What's New in Splunk Cloud Platform
Platform
1 Minute Read

What's New in Splunk Cloud Platform

Splunk Cloud Platform is dedicated to bringing our customers the latest Splunk platform innovations first. This blog series highlights the newest capabilities as they become available. Read on to learn about our latest release, 8.1.2013.