Splunk
View Hive event analytics in Splunk with the Hive Streaming App for Splunk.
The Hive Streaming App for Splunk will be released shortly. Until then, you can send event session updates to your own Splunk with webhooks.
The Hive Streaming App for Splunk provides Hive event dashboards and a hive search command for Splunk Enterprise and Splunk Cloud.
Dashboards
Dashboards read from the INA Data API each time they open. With more than one account, select one with the Account filter.
| Dashboard | Shows |
|---|---|
| Past Event Activity | Event sessions that started in a date range: totals, the number of sessions per reliability rating, ECDN offload over time, and the list of sessions. Opens by default. |
| Current Event Activity | Event sessions running now, largest audience first. Refreshes every 30 seconds. |
| Event Session Details | One event session: its sites, its viewers (lowest reliability first), and reliability by device type, operating system and app. Opens when you select a session on either of the other dashboards. Large sessions load more slowly, because every viewer is loaded. |
Reliability ratings
Reliability scores are shown as ratings. Higher scores are better.
| Score | Rating |
|---|---|
| 4.5 or higher | Excellent |
| 3.5 to 4.4 | Good |
| 2.5 to 3.4 | Fair |
| 1.5 to 2.4 | Poor |
| Below 1.5 | Very poor |
Combined scores for several sessions or viewers are weighted by audience size.
ECDN offload is the share of traffic delivered by ECDN instead of the CDN. Event sessions without a name are shown with their content ID.
Set up
You need an Auth Client for the INA Data API resource, your platform ID and tenant ID, and a Splunk role that can install apps, such as sc_admin in Splunk Cloud.
- Install the app from Apps -> Find More Apps. In a distributed deployment, install it on the search heads. See Splunk's guides for Splunk Cloud and Splunk Enterprise.
- If Splunk connects to the internet through a proxy, configure it under Configuration -> Proxy.
- Under Configuration -> Accounts -> Add, enter the client ID, client secret, platform ID and tenant ID. The app validates them with Hive before saving.
Searches run with the permissions of the user viewing them, so that user's role needs the list_storage_passwords capability. Admin roles include it by default. See roles and capabilities.
If you add more than one account, select one with the Account filter on the dashboards, or add account=<name> to a search. Searches without account= use the first account in alphabetical order.
Search command
| hive data=<sessions|live|sites|viewers> [session=<eventSessionId>] [account=<name>]data= | Returns |
|---|---|
sessions | Event sessions that started in the search's time range |
live | Event sessions running now |
sites | The sites of one event session. With session=live, the sites of every live event session, with eventName and eventReliabilityScore added |
viewers | The viewers of one event session |
The returned fields match the API responses.
Stored data
The app creates an index named hive. Each time an alert runs, the rows it loaded are also written there, so you can search past results with index=hive source=hive:<sessions|live|sites>. Dashboards always read live from the API and do not write to the index. Nothing is fetched in the background: the index only holds what alerts loaded. Each run writes its rows again, so add | dedup eventSessionId when counting. Data is written with collect and does not count against your Splunk license.
Webhooks of type splunk_hec can also write to this index as source=hive:webhook, so events arrive without an alert running. See Webhooks.
To store the results of your own scheduled searches, add | `hive_collect(<data>)` after | hive data=<data>. To write to a different index, edit the hive_collect macro under Settings -> Advanced search -> Search macros (see search macros).
Alerts
The app includes seven alerts, turned off by default. To use one, open Settings -> Searches, reports, and alerts, filter by the app, enable the alert and add an action such as email. Triggered alerts are listed under Activity -> Triggered Alerts. For alerts in general, see Getting started with alerts.
| Alert | Triggers when | Runs |
|---|---|---|
| Hive - Poor reliability in a live event | A live event session has a reliability score below 2.5 | Every 5 minutes, at most once per event session per 30 minutes |
| Hive - Low ECDN offload in a live event | Less than half of a live event session's traffic comes from ECDN | Every 15 minutes, at most once per event session per 30 minutes |
| Hive - Poor event sessions yesterday | Event sessions from the previous day have a reliability score below 2.5 | Daily at 07:00 |
| Hive - Poor reliability and low ECDN offload in a live event | A live event session has a reliability score below 2.5 and less than half of its traffic comes from ECDN | Every 5 minutes, at most once per event session per 30 minutes |
| Hive - One site much worse than its live event | A site with at least 20 viewers scores 1.0 or more below its event session, which points at a local network problem | Every 5 minutes, at most once per site per event session per 30 minutes |
| Hive - Poor reliability and low ECDN offload at a site | A site with at least 20 viewers has a reliability score below 2.5 and less than half of its traffic comes from ECDN | Every 5 minutes, at most once per site per event session per 30 minutes |
| Hive - Poor reliability in known sites of a live event | Viewers at known sites, without unlocated viewers, have a combined reliability score below 2.5 (at least 20 such viewers) | Every 5 minutes, at most once per event session per 30 minutes |
Alerts run on Splunk's schedule, so they work without anyone having the dashboards open. The site alerts call the API once per live event session on each run. Thresholds are part of each alert's search, so you can edit them under Settings -> Searches, reports, and alerts. To create your own, start from a search such as:
| hive data=live
| where reliabilityScore<2.5
| table eventName viewersCount reliabilityScoreTroubleshooting
| Message | Fix |
|---|---|
| "Could not reach Hive" | Configure the proxy under Configuration -> Proxy, then save the account again. |
| "client ID or client secret" | Copy the credentials again from the Hive Streaming Portal, or create a new Auth Client. |
| "can't read data for that platform ID and tenant ID" | Confirm that both IDs belong to this Auth Client. |
| "No Hive Streaming account is set up yet" | Add an account under Configuration -> Accounts. |
| "Your Splunk role can't read the stored Hive Streaming credentials" | Add list_storage_passwords to the role under Settings -> Roles. |
For other issues, contact Hive Support.