icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Spotify Add-On
SHA256 checksum (spotify-add-on_200.tgz) 9267978ce427ceeeb547f5669e74b795e2ec562d531dcc80f2e6cc2cf748ead9
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

Spotify Add-On

Splunk AppInspect Passed
Admins: Please read about Splunk Enterprise 8.0 and the Python 2.7 end-of-life changes and impact on apps and upgradeshere.
Overview
Details
This app allows you to ingest your Spotify data into Splunk to showcase music you're currently listening to, and playlist info if you are listening to a playlist

PLEASE READ THE APP DETAILS FOR INFO ON HOW TO SETUP THIS ADD-ON

This app was developed in association with the following partners for the road trip to conf:
-convergingdata.com
-bigdatabeard.com

Install

1 - First step is to install the TA as normal from splunkbase to your instance.
2 - Go to developers.spotify.com and setup your account for personal developer access.
3 - Create a new client id with a memorable name for you.
4 - You should now have a client id and secret. You now need to go to edit settings and enter the following as a redirect url https://convergingdata.com
5 - Next is to enter to enter the following URL into your web browser and replace <<clientid>> with your client id.
6 - Once complete, you should be able to hit go https://accounts.spotify.com/authorize?client_id=<<clientid>>&response_type=code&scope=user-read-currently-playing&redirect_uri=https://convergingdata.com
7 - If successful you will be redirected to our website (convergingdata.com) and be supplied with a one-shot access code within the url.
8 - Copy the code and enter it into the TA input, along with your key and secret.
9 - For the search head app (COMING SOON) to be fully functional, its advised that you enable both audio features and audio analysis inputs too.

Notes

There are 5 sourcetypes ingested. These are:
- spotify:music:playlist - N.B: THIS HAS AN ISSUE WITH LARGE JSON MESSAGES HITTING THE LIMIT.
- spotify:music:playing
- spotify:music:artist
- spotify:music:audio:analsis
- spotify:music:audio:features

Linkage is typically from spotify:music:playing using item.id to the appropriate fields within the audio sourcetypes.

Searches

Audio analysis showing loudness vs tatum, beat and bar
sourcetype="spotify:music:audio:analysis" track_id=&lt;&lt;trackid type=""&gt;&gt; = "tatum" OR type = "bar" OR type="beat" | chart first(duration) as duration over start by type | append [ search sourcetype="spotify:music:audio:analysis" track_id=&lt;&lt;trackid&gt;&gt; type="segment" | chart first(loudness_start) as db by start] | sort 0 start

Audio feature analysis
index=main sourcetype="spotify:music:audio:features" id=3xdjjKMcMOFgo1eQrfbogM | table * | eval Acousticness = round(acousticness * 100) | eval Danceability = round(danceability * 100) | eval Liveness = round(liveness * 100) | eval Energy = round(energy * 100) | eval Speechiness = round(speechiness * 100) | eval Valence = round(valence * 100) | eval Instrumentalness = round(instrumentalness * 100) | eval temp = "toremove" | table temp Acousticness Danceability Liveness Energy Speechiness Valence Instrumentalness | untable temp Measurement Current | fields - temp | append [search index=main sourcetype=spotify* sourcetype="spotify:music:audio:features" | table * | eval Acousticness = round(acousticness * 100) | eval Danceability = round(danceability * 100) | eval Liveness = round(liveness * 100) | eval Energy = round(energy * 100) | eval Speechiness = round(speechiness * 100) | eval Valence = round(valence * 100) | eval Instrumentalness = round(instrumentalness * 100) | table Acousticness Danceability Liveness Energy Speechiness Valence Instrumentalness | stats min(*) as Minimum_* avg(*) as Average_* max(*) as Maximum_* | untable Measurement field val | rex field=field "(?&lt;field&gt;[^_]+)_(?&lt;measurement&gt;.+)" | xyseries Measurement field val] | stats first(*) as * by Measurement | table Measurement Current Minimum Average Maximum

Release Notes

Version 2.0.0
Sept. 19, 2019

Added further enrichment via extra API calls to audio features, analysis and artist info

28
Installs
72
Downloads
Share Subscribe LOGIN TO DOWNLOAD

Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2019 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.