# Send messages to Elasticsearch data streams

Starting with version 4.8.0, AxoSyslog can send messages and metrics to [Elasticsearch data streams](<https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html>) to store your log and metrics data as time series data.

Minimal configuration:
```
 
    @include "scl.conf"
    # ...
    
    destination d_elastic_data_stream {
      elasticsearch-datastream(
        url("https://elastic-endpoint:9200/my-data-stream/_bulk")
        user("elastic")
        password("ba253DOn434Tc0pY22OI")
      );
    };
    
```

This driver is actually a reusable configuration snippet configured to send log messages using the `http()` driver using a template. You can find the source of this configuration snippet on [GitHub](<https://github.com/axoflow/axosyslog/blob/master/scl/elasticsearch/elastic-datastream.conf>).

## Prerequisites

Username and password for an account that can send data to Elasticsearch data streams.

## Options

Usually you just set the `url()`, `user()`, and `password()` options.

Since this destination is based on the `http()` destination, you can use the [options of the `http()` destination](../../docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/index.md) if needed.

Last modified January 14, 2026: [Fix type keyword in frontmatter (2c54f5f)](<https://github.com/axoflow/axosyslog-core-docs/commit/2c54f5f2b98d4f14096313e9b73f5d169d659346>)