Splunk Tesla Modular Input v1.1

Overview

This is a Splunk modular input add-on for polling your Tesla Vehicle data from the My Tesla API.

The following unofficial API reference was utilised : http://docs.timdorr.apiary.io/

Dependencies

Setup

Activation Key

You require an activation key to use this App. Visit http://www.baboonbones.com/#activation to obtain a non-expiring key

Authentication

Authentication is with your My Tesla credentials , plain text email and password, matching the owner's login information for https://my.teslamotors.com/user/login.

A client ID and secret are also required.

The current client ID and secret are available here : http://pastebin.com/fX6ejAHd

You can setup up your My Tesla username and password in each pre defined stanza via SplunkWeb.

Or you can edit SPLUNKHOME/etc/apps/teslata/default/inputs.conf directly and set the username and password in the parent tesla stanza so that all child stanzas inherit your username and password.

Data Source Types

By default the following data is requested and returned in JSON format :

There are default stanzas setup for each of these.

Aside from "Vehicle List" . all of the other stanzas take a vehicle id which you can set via SplunkWeb.

If you have more than 1 vehicle , you can clone the default stanzas and setup your other vehicle id(s).

Note : the "Vehicle ID" is actually the "ID" in the vehicle list... NOT the "vehicleid". Ex: "{"response":[{"id":48.............25,"vehicleid":14...26," the correct parameter is the FIRST number.

Index

By default , data will go into the "tesla" index

Custom Response Handlers

You can provide your own custom Response Handler. This is a Python class that you should add to the SPLUNKHOME/etc/apps/teslata/bin/responsehandlers.py module.

You can then declare this class name and any parameters in the Tesla Input setup page.

Logging

Any log entries/errors will get written to SPLUNK_HOME/var/log/splunk/splunkd.log

These are also searchable in Splunk : index=_internal error tesla.py

Troubleshooting

Contact

www.baboonbones.com