> For the complete documentation index, see [llms.txt](https://docs.bluefletch.com/bluefletch-enterprise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bluefletch.com/bluefletch-enterprise/product-guides/support-application-1/sa-6/features/events-to-splunk.md).

# Events to Splunk

A Support Application 6 feature that sends event data directly from the device to Splunk.

## Overview

Events to Splunk sends event data directly from the device to Splunk, in addition to or instead of the default BFE/EMS backend. By default, Splunk forwarding is disabled.

## User Guide

To configure Events to Splunk, complete the following steps:

1. Set `useSplunk` to true to enable sending events to Splunk in addition to the EMS backend.
2. Set `splunkUrl` to the host and port of your Splunk HTTP Event Collector.
3. Set `splunkAuthToken` to the auth token defined in your Splunk Event Collector.
4. Set `splunkApiPath` to the API path appended to `splunkUrl` (e.g. services/collector/raw).
5. Optionally configure `splunkSource`, `splunkSourceType`, and `ignoreSSLCerts` as needed.

## Configuration

### Enabling Splunk Forwarding

To enable sending events to Splunk in addition to the EMS backend, set `useSplunk` to `true`:

```json
"bfSupportAgent": {
"useSplunk": true
}
```

### Configuring the Splunk Endpoint

Set `splunkUrl` to the host and port of the Splunk HTTP Event Collector, and `splunkApiPath` to the API path appended to it:

```json
"bfSupportAgent": {
"useSplunk": true,
"splunkUrl": "https://splunk.example.com:8088",
"splunkApiPath": "services/collector/raw"
}
```

### Configuring the Splunk Auth Token

Set `splunkAuthToken` to the auth token defined in the Splunk Event Collector:

```json
"bfSupportAgent": {
"useSplunk": true,
"splunkAuthToken": "your-splunk-token"
}
```

### Configuring Splunk Source and Source Type

Optionally set `splunkSource` and `splunkSourceType` to override the Splunk source and sourcetype fields:

```json
"bfSupportAgent": {
"useSplunk": true,
"splunkSource": "bluefletch-sa6",
"splunkSourceType": "bluefletch:event"
}
```

### Configuring SSL Certificate Handling

To ignore SSL certificate issues during Splunk event posting, set `ignoreSSLCerts` to `true`:

```json
"bfSupportAgent": {
"useSplunk": true,
"ignoreSSLCerts": true
}
```

This table provides the settings for the Events to Splunk feature.

| Configuration      | Type    | Default | Description                                                     |
| ------------------ | ------- | ------- | --------------------------------------------------------------- |
| `useSplunk`        | Boolean | false   | Enables sending events to Splunk in addition to the EMS backend |
| `splunkUrl`        | String  | -       | Host/port of the Splunk HTTP Event Collector                    |
| `splunkAuthToken`  | String  | -       | Auth token defined in the Splunk Event Collector                |
| `splunkSource`     | String  | -       | Optional Splunk source field override                           |
| `splunkSourceType` | String  | -       | Optional Splunk sourcetype field override                       |
| `splunkApiPath`    | String  | -       | API path appended to splunkUrl, e.g. services/collector/raw     |
| `ignoreSSLCerts`   | Boolean | false   | Ignore SSL certificate issues during Splunk event posting       |

### Error Handling

| Scenario                                                   | Expected behavior                                                                     | Recovery                                                         |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `splunkUrl/splunkAuthToken` missing while `useSplunk=true` | Splunk POST fails/is skipped (event still delivered to EMS backend if that succeeded) | Fix configuration; no automatic retry specific to Splunk         |
| Splunk endpoint unreachable                                | Logged failure; does not affect the primary EMS backend delivery, which happens first | N/A - Splunk forwarding is fire-and-forget after primary success |
| SSL certificate error                                      | Request fails unless `ignoreSSLCerts=true`                                            | Set `ignoreSSLCerts` or fix the certificate                      |

### Troubleshooting&#x20;

If you encounter issues with Events to Splunk, check the following:

#### **Events are not appearing in Splunk.**

Resolution Steps:&#x20;

1. Verify that useSplunk is set to true in the effective configuration (visible in Advanced Tools → Config Viewer).
2. Confirm that splunkUrl, splunkAuthToken, and splunkApiPath are all populated.
3. Check whether the primary EMS backend send is succeeding. Splunk forwarding only happens after a successful primary send.
4. Check Support Application logs for the Splunk POST response code.

## Putting It All Together

For the example described above, the full configuration for the Events to Splunk feature is as follows:

```json
"bfSupportAgent": {
 "useSplunk": true,
 "splunkUrl": "https://splunk.example.com:8088",
 "splunkAuthToken": "your-splunk-token",
 "splunkSource": "bluefletch-sa6",
 "splunkSourceType": "bluefletch:event",
 "splunkApiPath": "services/collector/raw",
 "ignoreSSLCerts": false
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.bluefletch.com/bluefletch-enterprise/product-guides/support-application-1/sa-6/features/events-to-splunk.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
