Skip to content

Commit 630aacf

Browse files
Merge branch 'master' into doc-unix-dgram
2 parents 198c117 + 7f7688f commit 630aacf

File tree

16 files changed

+118
-22
lines changed

16 files changed

+118
-22
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ concurrency:
2929
jobs:
3030
# Build job
3131
build:
32-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-22.04
3333
steps:
3434
- name: Checkout
3535
uses: actions/checkout@v4
@@ -105,7 +105,7 @@ jobs:
105105
environment:
106106
name: github-pages
107107
url: ${{ steps.deployment.outputs.page_url }}
108-
runs-on: ubuntu-latest
108+
runs-on: ubuntu-22.04
109109
needs: build
110110
steps:
111111
- name: Deploy to GitHub Pages

_data/external_links.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,11 @@ gh-es:
608608
url: https://github.com/syslog-ng/syslog-ng/tree/master/scl/elasticsearch
609609
title: [ "Elasticsearch configuration snippet on GitHub" ]
610610

611+
gh-es-ds:
612+
id: gh-es-ds
613+
url: https://github.com/syslog-ng/syslog-ng/blob/master/scl/elasticsearch/elastic-datastream.conf
614+
title: [ "Elasticsearch datastream configuration snippet on GitHub" ]
615+
611616
gh-fortigate:
612617
id: gh-fortigate
613618
url: https://github.com/syslog-ng/syslog-ng/blob/master/scl/fortigate/fortigate.conf
@@ -796,6 +801,11 @@ ebpf:
796801
url: https://ebpf.io/
797802
title: [ "Extended Berkeley Packet Filter" ]
798803

804+
elastic-ds:
805+
id: elastic-ds
806+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html
807+
title: [ "Elasticsearch data streams" ]
808+
799809
gcp-ser:
800810
id: gcp-ser
801811
url: https://cloud.google.com/iam/docs/service-account-overview
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
## headers()
2+
3+
| Type: | arrow list|
4+
|Default:| empty|
5+
6+
Available in syslog-ng OSE 4.8 and later versions.
7+
8+
*Description:* Adds custom gRPC headers to each RPC call. Currently only static header names and values are supported.
9+
10+
```config
11+
headers(
12+
"organization" => "org-name"
13+
"stream-name" => "org-stream"
14+
)
15+
```
16+
17+
> *Copyright © 2024 Axoflow*

doc/_admin-guide/060_Sources/102_OpenTelemetry/000_opentelemetry_source_options.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ destination {
7171

7272
*Description:* This option configures the upper limit of in-flight gRPC requests per worker. It is advisd to set this value in the range of 10s or 100s when there are a high number of clients sending simultaneously. In an optimzed solution, the number of `workers()` and `concurrent-requests()` is greater than or equal to the number of clients. However, this can cause an increase in memory usage.
7373

74+
## keep-hostname()
75+
76+
The `syslog-ng-otlp()` and `opentelemetry()` sources ignore this option and use the hostname from the message as the `${HOST}`.
77+
7478
## log-fetch-limit()
7579

7680
| Type:| number|

doc/_admin-guide/060_Sources/175_syslog-otlp/000_otlp_source_options.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,9 @@ source {
129129

130130
{% include doc/admin-guide/options/host-override.md %}
131131

132-
{% include doc/admin-guide/options/keep-hostname.md %}
132+
## keep-hostname()
133+
134+
The `syslog-ng-otlp()` and `opentelemetry()` sources ignore this option and use the hostname from the message as the `${HOST}`.
133135

134136
{% include doc/admin-guide/options/keep-timestamp.md %}
135137

doc/_admin-guide/060_Sources/180_System/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ such messages without losing any information to CIM-aware applications
5050
| | Note that on Linux, the so-rcvbuf() option of the system() source is automatically set to 8192. |
5151
| | If the host is running under systemd, {{ site.product.short_name }} reads directly from the systemd journal file using the systemd-journal() source. |
5252
| | If the kernel of the host is version 3.5 or newer, and /dev/kmsg is seekable, {{ site.product.short_name }} will use that instead of /proc/kmsg, using the multi-line-mode(indented), keep-timestamp(no), and the format(linux-kmsg)options. |
53-
| | If {{ site.product.short_name }} is running in a jail or a Linux Container (LXC), it will not read from the /dev/kmsg or /proc/kmsg files. |
53+
| |If {{ site.product.short_name }} is running in a jail or a Linux Container (LXC), it will not read from the `/dev/kmsg` or `/proc/kmsg` files.
54+
| |With systemd: `systemd-journal();`
55+
| |Without systemd, on kernel 3.5 or newer: `unix-dgram("/dev/log"); file("/dev/kmsg" program-override("kernel") flags(kernel) format("linux-kmsg") keep-timestamp(no));`
56+
| |Without systemd, on kernels older than 3.5: `unix-dgram("/dev/log"); file("/proc/kmsg" program-override("kernel") flags(kernel) keep-timestamp(no));`
5457
| macOS | file("/var/log/system.log" follow-freq(1)); |
5558
| | **NOTE:** Starting with version 3.7, the {{ site.product.short_name }} system() driver automatically extracts the msgid from the message (if available), and stores it in the .solaris.msgid macro. To extract the msgid from the message without using the system()driver, use the **extract-solaris-msgid()** parser. You can find the exact source of the Solaris parser on GitHub.|
5659
| NetBSD | unix-dgram("/var/run/log"); |
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: 'elasticsearch-datastream: Elasticsearch data streams'
3+
short_title: elasticsearch-datastream
4+
id: adm-dest-es-datastream
5+
description: >-
6+
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.
7+
---
8+
9+
**Declaration**
10+
11+
```config
12+
destination d_elastic_data_stream {
13+
elasticsearch-datastream(
14+
url("https://elastic-endpoint:9200/my-data-stream/_bulk")
15+
user("elastic")
16+
password("ba253DOn434Tc0pY22OI")
17+
);
18+
};
19+
```
20+
21+
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.
22+
23+
## Prerequisites
24+
25+
* An account for Elasticsearch datastreams with a username and a password.
26+
27+
## Options
28+
29+
Elasticsearch datastream is an HTTP based driver, hence it utilizes the HTTP destination options.
30+
31+
> *Copyright © 2024 Axoflow*

doc/_admin-guide/070_Destinations/045_Google_bigQuery/000_bigquery_dest_options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Available in {{ site.product.short_name }} 4.5 and later versions.
4444

4545
{% include doc/admin-guide/options/frac-digits.md %}
4646

47+
{% include doc/admin-guide/options/headers-gRPC.md %}
48+
4749
{% include doc/admin-guide/options/hook.md %}
4850

4951
{% include doc/admin-guide/options/keep-alive.md %}

doc/_admin-guide/070_Destinations/125_Loki/001_Loki_options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ destination {
6868

6969
{% include doc/admin-guide/options/channel-args.md %}
7070

71+
{% include doc/admin-guide/options/headers-gRPC.md %}
72+
7173
{% include doc/admin-guide/options/gRPC-keep-alive.md %}
7274

7375
## labels()

doc/_admin-guide/070_Destinations/157_OpenTelemetry/000_opentelemetry-destination-options.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,6 @@ Available in syslog-ng OSE 4.5 and later versions.
7575

7676
*Description:* This option enables compression in gRPC requests. Currently, only the deflate compression method is supported.
7777

78+
{% include doc/admin-guide/options/headers-gRPC.md %}
79+
7880
{% include doc/admin-guide/options/workers.md %}

0 commit comments

Comments
 (0)