Skip to content

Commit

Permalink
Elasticsearch-datastream (#152)
Browse files Browse the repository at this point in the history
Signed-off-by: Zsolt Gyulai (zgyulai) <[email protected]>

Added new elasticsearch-datastream destination.
  • Loading branch information
zsoltgyulai94 authored Feb 4, 2025
2 parents fdad7fa + 5096a60 commit 8343f11
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _data/external_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,11 @@ gh-es:
url: https://github.com/syslog-ng/syslog-ng/tree/master/scl/elasticsearch
title: [ "Elasticsearch configuration snippet on GitHub" ]

gh-es-ds:
id: gh-es-ds
url: https://github.com/syslog-ng/syslog-ng/blob/master/scl/elasticsearch/elastic-datastream.conf
title: [ "Elasticsearch datastream configuration snippet on GitHub" ]

gh-fortigate:
id: gh-fortigate
url: https://github.com/syslog-ng/syslog-ng/blob/master/scl/fortigate/fortigate.conf
Expand Down Expand Up @@ -796,6 +801,11 @@ ebpf:
url: https://ebpf.io/
title: [ "Extended Berkeley Packet Filter" ]

elastic-ds:
id: elastic-ds
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html
title: [ "Elasticsearch data streams" ]

gcp-ser:
id: gcp-ser
url: https://cloud.google.com/iam/docs/service-account-overview
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: 'elasticsearch-datastream: Elasticsearch data streams'
short_title: elasticsearch-datastream
id: adm-dest-es-datastream
description: >-
From {{ site.product.short_name }} 4.8 and later versions, you can send messages and metrics to Elasticsearch data streams to store your log and metrics data as time series data.
---

**Declaration**

```config
destination d_elastic_data_stream {
elasticsearch-datastream(
url("https://elastic-endpoint:9200/my-data-stream/_bulk")
user("elastic")
password("ba253DOn434Tc0pY22OI")
);
};
```

This driver is a reusable configuration snippet configured to send log messages using the http() driver using a template. You can find the Elasticsearch datastream configuration snippet on GitHub.

## Prerequisites

* An account for Elasticsearch datastreams with a username and a password.

## Options

Elasticsearch datastream is an HTTP based driver, hence it utilizes the HTTP destination options.

> *Copyright © 2024 Axoflow*

0 comments on commit 8343f11

Please sign in to comment.