Skip to main content

Discard

Forward

Synopsis

Creates a target that discards all incoming log messages.

Schema

- id: <numeric>
name: <string>
description: <string>
type: discard
tags: <string[]>
pipelines: <pipeline[]>
status: <boolean>

Configuration

The following are the minimum requirements to define the target.

FieldRequiredDefaultDescription
idY-Unique identifier
nameY-Target name
descriptionN-Optional description
typeY-Must be discard
tagsN-Optional tags
pipelinesN-Optional post-processor pipelines
statusNtrueEnable/disable the target

Details

This target accepts any log data, but does not store or forward it. It is useful for development, benchmarking and load testing data ingestion without storage overhead, and debugging pipeline configurations.

warning

Data sent to this target is permanently lost and cannot be recovered.

Examples

The configuration for discarding logs:

Creating a discard target...

- id: 1
name: debug_discard
type: discard