Kong Splunk Log

Third Party

Send logs to Splunk

Configure the Kong Splunk Log plugin to forward request logs to a Splunk instance.

Prerequisites

Environment variables

  • SPLUNK_ENDPOINT: The Splunk collector endpoint. For example, https://hec-splunk.company.com/services/collector.

  • SPLUNK_TOKEN: Your Splunk access token.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: kong-splunk-log
    config:
      splunk_endpoint: ${{ env "DECK_SPLUNK_ENDPOINT" }}
      splunk_access_token: ${{ env "DECK_SPLUNK_TOKEN" }}
      method: POST
      content_type: application/json
      timeout: 10000
      retry_count: 5
      queue_size: 20
      flush_timeout: 30
      keepalive: 60000
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!