LogDNA

LogDNA Output

Overview

This plugin has been designed to output logs to LogDNA.

Configuration

LogDNA

Send your logs to LogDNA

api_key (string, required)

LogDNA Api key

app (string, optional)

Application name

buffer (*Buffer, optional)

Buffer

hostname (string, required)

Hostname

ingester_domain (string, optional)

Custom Ingester URL, Optional

Default: https://logs.logdna.com

ingester_endpoint (string, optional)

Custom Ingester Endpoint, Optional

Default: /logs/ingest

request_timeout (string, optional)

HTTPS POST Request Timeout, Optional. Supports s and ms Suffices

Default: 30 s

slow_flush_log_threshold (string, optional)

The threshold for chunk flush performance check. Parameter type is float, not time, default: 20.0 (seconds) If chunk flush takes longer time than this threshold, Fluentd logs a warning message and increases the fluentd_output_status_slow_flush_count metric.

tags (string, optional)

Comma-Separated List of Tags, Optional

Example LogDNA filter configurations

apiVersion: logging.banzaicloud.io/v1beta1
kind: Output
metadata:
  name: logdna-output-sample
spec:
  logdna:
    api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxx
    hostname: logging-operator
    app: my-app
    tags: web,dev
    ingester_domain https://logs.logdna.com
    ingester_endpoint /logs/ingest

Fluentd config result:

<match **>

	@type logdna
	@id test_logdna
	api_key xxxxxxxxxxxxxxxxxxxxxxxxxxy
	app my-app
	hostname logging-operator

</match>