Skip to Content
Hive Streaming
Integrations

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.

DashboardShows
Past Event ActivityEvent 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 ActivityEvent sessions running now, largest audience first. Refreshes every 30 seconds.
Event Session DetailsOne 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.

ScoreRating
4.5 or higherExcellent
3.5 to 4.4Good
2.5 to 3.4Fair
1.5 to 2.4Poor
Below 1.5Very 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.

  1. 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.
  2. If Splunk connects to the internet through a proxy, configure it under Configuration -> Proxy.
  3. 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
sessionsEvent sessions that started in the search's time range
liveEvent sessions running now
sitesThe sites of one event session. With session=live, the sites of every live event session, with eventName and eventReliabilityScore added
viewersThe 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.

AlertTriggers whenRuns
Hive - Poor reliability in a live eventA live event session has a reliability score below 2.5Every 5 minutes, at most once per event session per 30 minutes
Hive - Low ECDN offload in a live eventLess than half of a live event session's traffic comes from ECDNEvery 15 minutes, at most once per event session per 30 minutes
Hive - Poor event sessions yesterdayEvent sessions from the previous day have a reliability score below 2.5Daily at 07:00
Hive - Poor reliability and low ECDN offload in a live eventA live event session has a reliability score below 2.5 and less than half of its traffic comes from ECDNEvery 5 minutes, at most once per event session per 30 minutes
Hive - One site much worse than its live eventA site with at least 20 viewers scores 1.0 or more below its event session, which points at a local network problemEvery 5 minutes, at most once per site per event session per 30 minutes
Hive - Poor reliability and low ECDN offload at a siteA site with at least 20 viewers has a reliability score below 2.5 and less than half of its traffic comes from ECDNEvery 5 minutes, at most once per site per event session per 30 minutes
Hive - Poor reliability in known sites of a live eventViewers 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 reliabilityScore

Troubleshooting

MessageFix
"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.

On this page