LogExporter​Log​Exporter

Export logs to Splunk

This task is designed to send logs to Splunk.

yaml
type: "io.kestra.plugin.ee.splunk.LogExporter"

Ship logs to Splunk

yaml
id: log_shipper
namespace: company.team

triggers:
  - id: daily
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "@daily"

tasks:
  - id: log_export
    type: io.kestra.plugin.ee.core.log.LogShipper
    logLevelFilter: INFO
    batchSize: 1000
    lookbackPeriod: P1D
    logExporters:
      - id: SplunkLogExporter
        type: io.kestra.plugin.ee.splunk.LogExporter
        host: https://prd-p-2auzd.splunkcloud.com:8088
        token: be90f0b4-3bf7-4afd-9d0f-c4ec26c59e38
Properties

Splunk host

Url of the Splunk host to export logs to

Validation RegExp ^[a-zA-Z0-9][a-zA-Z0-9_-]*
Min length 1

Splunk token

Token used to authenticate to Splunk API

Default 1000

The chunk size for every bulk request.

The http client configuration

Default Kestra

Log source

The source of the logs

Format duration

The time allowed to establish a connection to the server before failing.

Default PT5M
Format duration

The time allowed for a read connection to remain idle before closing it.

The password for HTTP basic authentication.

The username for HTTP basic authentication.

Default false

If true, allow a failed response code (response code >= 400)

SubType integer

List of response code allowed for this request

The authentification to use.

Default UTF-8

The default charset for the request.

Default true

Whether redirects should be followed automatically.

SubType string
Possible Values
REQUEST_HEADERSREQUEST_BODYRESPONSE_HEADERSRESPONSE_BODY

The enabled log.

The proxy configuration.

The SSL request options

The timeout configuration.

The address of the proxy server.

The password for proxy authentication.

The port of the proxy server.

Default DIRECT
Possible Values
DIRECTHTTPSOCKS

The type of proxy to use.

The username for proxy authentication.

Whether to disable checking of the remote SSL certificate.

Only applies if no trust store is configured. Note: This makes the SSL connection insecure and should only be used for testing. If you are using a self-signed certificate, set up a trust store instead.

The token for bearer token authentication.