diff --git a/config/_default/menus/main.en.yaml b/config/_default/menus/main.en.yaml index a835a18c00d..7ccaff42184 100644 --- a/config/_default/menus/main.en.yaml +++ b/config/_default/menus/main.en.yaml @@ -6844,7 +6844,7 @@ menu: identifier: observability_pipelines_socket weight: 421 - name: Splunk HEC - url: observability_pipelines/destinations/splunk_hec + url: observability_pipelines/destinations/splunk_hec/logs/ parent: observability_pipelines_destinations identifier: observability_pipelines_splunk_hec weight: 422 diff --git a/content/en/observability_pipelines/destinations/_index.md b/content/en/observability_pipelines/destinations/_index.md index c06f7f6f54f..b6fbb03d08f 100644 --- a/content/en/observability_pipelines/destinations/_index.md +++ b/content/en/observability_pipelines/destinations/_index.md @@ -62,7 +62,7 @@ These are the available destinations: [16]: /observability_pipelines/destinations/opensearch/ [17]: /observability_pipelines/destinations/sentinelone/ [18]: /observability_pipelines/destinations/socket/ -[19]: /observability_pipelines/destinations/splunk_hec/ +[19]: /observability_pipelines/destinations/splunk_hec/logs/ [20]: /observability_pipelines/destinations/sumo_logic_hosted_collector/ [21]: /observability_pipelines/destinations/syslog/ [22]: /observability_pipelines/destinations/amazon_s3/ diff --git a/content/en/observability_pipelines/destinations/splunk_hec/_index.md b/content/en/observability_pipelines/destinations/splunk_hec/_index.md new file mode 100644 index 00000000000..d59a419fa88 --- /dev/null +++ b/content/en/observability_pipelines/destinations/splunk_hec/_index.md @@ -0,0 +1,5 @@ +--- +title: Splunk HEC +type: multi-code-lang +external_redirect: /observability_pipelines/destinations/splunk_hec/logs/ +--- \ No newline at end of file diff --git a/content/en/observability_pipelines/destinations/splunk_hec.md b/content/en/observability_pipelines/destinations/splunk_hec/logs.md similarity index 85% rename from content/en/observability_pipelines/destinations/splunk_hec.md rename to content/en/observability_pipelines/destinations/splunk_hec/logs.md index ecc720bdac0..7ebaa6fd0b9 100644 --- a/content/en/observability_pipelines/destinations/splunk_hec.md +++ b/content/en/observability_pipelines/destinations/splunk_hec/logs.md @@ -1,14 +1,14 @@ --- title: Splunk HTTP Event Collector (HEC) Destination +description: Learn how to set up the Splunk HEC destination for logs in Observability Pipelines. disable_toc: false -products: -- name: Logs - icon: logs - url: /observability_pipelines/configuration/?tab=logs#pipeline-types +aliases: +- /observability_pipelines/destinations/splunk_hec/ +code_lang: logs +type: multi-code-lang +weight: 1 --- -{{< product-availability >}} - ## Overview Use Observability Pipelines' Splunk HTTP Event Collector (HEC) destination to send logs to Splunk HEC. @@ -63,13 +63,7 @@ Select the **Encoding** in the dropdown menu (**JSON** or **Raw**). {{< tabs >}} {{% tab "Secrets Management" %}} -- Splunk HEC token identifier: - - References the Splunk HEC token for the Splunk indexer. - - The default identifier is `DESTINATION_SPLUNK_HEC_TOKEN`. -- Splunk HEC endpoint URL identifier: - - References the Splunk HTTP Event Collector endpoint your Observability Pipelines Worker sends processed logs to. For example, `https://hec.splunkcloud.com:8088`. - - **Note**: `/services/collector/event` path is automatically appended to the endpoint. - - The default identifier is `DESTINATION_SPLUNK_HEC_ENDPOINT_URL`. +{{% observability_pipelines/splunk_hec_secrets %}} {{% /tab %}} diff --git a/content/en/observability_pipelines/destinations/splunk_hec/metrics.md b/content/en/observability_pipelines/destinations/splunk_hec/metrics.md new file mode 100644 index 00000000000..744a700cd50 --- /dev/null +++ b/content/en/observability_pipelines/destinations/splunk_hec/metrics.md @@ -0,0 +1,96 @@ +--- +title: Splunk HTTP Event Collector (HEC) Destination +description: Learn how to set up the Splunk HEC destination for metrics in Observability Pipelines. +disable_toc: false +code_lang: metrics +type: multi-code-lang +weight: 2 +--- + +## Overview + +Use Observability Pipelines' Splunk HTTP Event Collector (HEC) destination to send metrics to Splunk HEC. + +## Setup + +Configure the Splunk HEC destination when you [set up a pipeline][1]. You can set up a pipeline in the [UI][3], using the [API][4], or with [Terraform][5]. The steps in this section are configured in the UI. + +**Notes**: +- The Splunk index you send your metrics to must be a metrics index. If you send them to an events index, you can't view the metrics in Splunk using any metrics type queries, such as `mcatalog` and `mstats`. +- If you don't attach your index to the Splunk authentication token you are using for Observability Pipelines, you must enter the name of the [index](#splunk-index) when you set up the destination. + +