---
title: Keep
slug: telemetry-pipeline/keep
docTags: 
createdAt: 2025-04-21T01:01:21.228Z
---

# Keep Sink

## Overview

The **Keep sink** enables worker to deliver log events to **Keep**, allowing logs to be forwarded to Keep’s alerting and event ingestion endpoints. This sink is designed for environments that require external alert correlation or log-driven incident workflows.

The sink operates in **batch mode**, aggregating log events before transmission to improve delivery efficiency.

## Supported Input Types

- Logs&#x20;

## Prerequisites

Before configuring the Keep sink, ensure the following prerequisites are met:

- A valid **Keep API key** with permission to ingest events&#x20;
- Network connectivity from worker to the Keep endpoint&#x20;
- Upstream worker sources or transforms producing log events&#x20;

## Core Configuration Parameters

### API Key

The API key is used to authenticate worker against the Keep ingestion service.
&#x20;This value must be kept secure and should be managed using environment variables or a secret management system.

### Endpoint

The endpoint defines the HTTP destination where log events are delivered.
&#x20;If not explicitly set, the default Keep event ingestion endpoint is used.

Typical use cases for custom endpoints include:

- Development or staging Keep deployments&#x20;
- Multi-tenant or provider-specific routing&#x20;
- Custom provider identifiers&#x20;

## Event Batching

The Keep sink supports event batching to optimize throughput and reduce request overhead.

Batching behavior can be controlled by:

- Maximum batch size in bytes&#x20;
- Maximum number of events per batch&#x20;
- Maximum time a batch can remain open before being flushed&#x20;

Batching is especially recommended for high-volume log streams.

## Buffering Behavior

The sink supports both **in-memory** and **disk-based** buffering strategies.

### Memory Buffering

- Provides higher performance&#x20;
- Events are lost if the process restarts unexpectedly&#x20;

### Disk Buffering

- Provides higher durability&#x20;
- Buffered events survive restarts and crashes&#x20;
- Recommended for production environments where data loss is unacceptable&#x20;

Buffer limits can be defined to control memory or disk usage and to apply backpressure or dropping behavior when limits are reached.

## Encoding and Field Selection

The Keep sink allows preprocessing of events before transmission:

- Include only specific fields&#x20;
- Exclude sensitive or unnecessary fields&#x20;
- Control timestamp formatting&#x20;

This is useful for:

- Reducing payload size&#x20;
- Removing confidential fields&#x20;
- Aligning log structure with Keep’s event model&#x20;

## Proxy Support

Outbound traffic to Keep can be routed through HTTP or HTTPS proxies.

Proxy configuration supports:

- Separate HTTP and HTTPS proxy endpoints&#x20;
- Host-based proxy bypass rules&#x20;
- Enterprise network and egress control requirements&#x20;

## Request Behavior and Reliability

The sink supports advanced request handling options to improve delivery stability under load or partial failures, including:

- Adaptive request concurrency&#x20;
- Rate limiting&#x20;
- Retry behavior with backoff and jitter&#x20;
- Request timeout control&#x20;

These controls help ensure stable operation when sending events to Keep under variable network or service conditions.

## Typical Use Cases

The Keep sink is commonly used in scenarios such as:

- Forwarding application or infrastructure logs to Keep for alert correlation&#x20;
- Integrating worker-based log pipelines with Keep-driven incident workflows&#x20;
- Centralizing alert-triggering logs from distributed systems&#x20;
- Supporting DevSecOps and SRE monitoring pipelines&#x20;
