You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/_admin-guide/060_Sources/102_OpenTelemetry/000_opentelemetry_source_options.md
+4
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,10 @@ destination {
71
71
72
72
*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.
73
73
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}`.
Copy file name to clipboardExpand all lines: doc/_admin-guide/060_Sources/180_System/README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,10 @@ such messages without losing any information to CIM-aware applications
50
50
|| Note that on Linux, the so-rcvbuf() option of the system() source is automatically set to 8192. |
51
51
|| If the host is running under systemd, {{ site.product.short_name }} reads directly from the systemd journal file using the systemd-journal() source. |
52
52
|| 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));`
||**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.|
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.
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.
Copy file name to clipboardExpand all lines: doc/_admin-guide/090_Global_options/000_Global_options.md
+27-14
Original file line number
Diff line number
Diff line change
@@ -338,7 +338,7 @@ driver.
338
338
339
339
## stats()
340
340
341
-
Available in {{ site.product.short_name }} 4.1 and later versions.
341
+
Available in {{ site.product.short_name }} 4.1 and later versions, introduced by Axoflow.
342
342
343
343
*Description:* The stats() option is an aggregated collection of statistic-related sub-options.
344
344
@@ -358,12 +358,16 @@ options {
358
358
359
359
The following sub-options are available within the stats() option:
360
360
361
-
- freq()
361
+
###freq()
362
362
363
-
| Accepted values:| number|
363
+
| Accepted values:| number (seconds)|
364
364
|Default:| 600|
365
365
366
-
- level()
366
+
*Description:* The period between two STATS messages in seconds. STATS
367
+
are log messages sent by syslog-ng, containing statistics about dropped
368
+
log messages. Set to **0** to disable the STATS messages.
369
+
370
+
### level()
367
371
368
372
| Accepted values:| 0, 1, 2, 3|
369
373
|Default:| 0|
@@ -379,8 +383,16 @@ The following sub-options are available within the stats() option:
379
383
- Level 3 contains detailed statistics based on various message parameters like facility, severity, or tags.
380
384
381
385
**NOTE:** Level 2 and 3 increase the memory requirements and CPU load. For details on message statistics, see Statistics of syslog-ng.
386
+
{: .notice--info}
387
+
388
+
### lifetime()
382
389
383
-
- max-dynamics()
390
+
| Accepted values:| number (seconds)|
391
+
|Default:| N/A|
392
+
393
+
*Description:* Dynamic counters in metrics are pruned after lifetime expires. Note that orphaned counters are not pruned (you can prune them by running `syslog-ng-ctl stats --remove-orphans`)
394
+
395
+
### max-dynamics()
384
396
385
397
| Accepted values:| number|
386
398
|Default:| N/A|
@@ -392,27 +404,28 @@ The following sub-options are available within the stats() option:
392
404
If this option is not used, dynamic counters are not limited. This can be useful in cases where you are extremely interested in dynamic counters, and use these statistics extensively.
393
405
394
406
 **CAUTION:** In some cases, there might be even millions of dynamic counters.
407
+
{: .notice--warning}
395
408
396
409
-**Limited dynamic counter clusters:**
397
410
398
-
To limit dynamic counters, enter a number, and only a maximum of <number> counters will be registered in the statistics.
411
+
To limit dynamic counters, enter a number, and only a maximum of \<number\> counters will be registered in the statistics.
399
412
400
413
In practice, this means dynamic counter clusters. A program name produces one dynamic counter cluster, that can include several counters, such as processed, stamp, and so on.
401
414
402
415
**Example: Limiting dynamic counter clusters 1:**
403
416
404
-
If stats-max-dynamics() is set to 1, and 2 programs send messages, only one of these programs will be tracked in the dynamic counters, but it will have more than one counters.
405
-
417
+
If max-dynamics() is set to 1, and 2 programs send messages, only one of these programs will be tracked in the dynamic counters, but it will have more than one counters.
406
418
407
419
**Example: Limiting dynamic counter clusters 2:**
408
420
409
-
If you have 500 clients, and set stats-max-dynamics() to 1000, you will have enough number of counters reserved for these clients, but at the same time, you limit the use of your resources and therefore protect your system from being overloaded.
421
+
If you have 500 clients, and set max-dynamics() to 1000, you will have enough number of counters reserved for these clients, but at the same time, you limit the use of your resources and therefore protect your system from being overloaded.
410
422
411
423
-**No dynamic counters:**
412
424
413
425
To disable dynamic counters completely, set the value of this option to 0. This is the recommended value if statistics are not used, or if dynamic counters are irrelevant (for example, the number of logs arriving from programs).
414
426
415
-
**NOTE:** If a lower value is set to stats-max-dynamics() (or, any limiting value, if this option has not been configured before) and {{ site.product.short_name }} is restarted, the changes are only applied after stats-freq() time has passed. That is, the previously allocated dynamic clusters are only removed after this time.
427
+
**NOTE:** If a lower value is set to max-dynamics() (or, any limiting value, if this option has not been configured before) and {{ site.product.short_name }} is restarted, the changes are only applied after freq() time has passed. That is, the previously allocated dynamic clusters are only removed after this time.
428
+
{: .notice--info}
416
429
417
430
## so-passcred()
418
431
@@ -442,19 +455,19 @@ Possible values:
442
455
443
456
## stats-freq() (DEPRECATED)
444
457
445
-
This is a deprecated legacy option. Use the stats() option.
458
+
This is a deprecated legacy option. Use stats(freq()) instead.
446
459
447
460
## stats-level() (DEPRECATED)
448
461
449
-
This is a deprecated legacy option. Use the stats() option.
462
+
This is a deprecated legacy option. Use stats(level()) instead.
450
463
451
464
## stats-max-dynamics() (DEPRECATED)
452
465
453
-
This is a deprecated legacy option. Use the stats() option.
466
+
This is a deprecated legacy option. Use stats(max-dynamics()) instead.
454
467
455
468
## sync() or sync-freq() (DEPRECATED)
456
469
457
-
This is a deprecated legacy option. Use the stats() option.
Copy file name to clipboardExpand all lines: doc/_admin-guide/110_Template_and_rewrite/000_Customize_message_format/004_Macros_of_syslog-ng.md
+1
Original file line number
Diff line number
Diff line change
@@ -503,6 +503,7 @@ following macros are available in {{ site.product.short_name }} version 3.9 and
503
503
- .tls.x509_o: The value of the Organization field.
504
504
505
505
- .tls.x509_ou: The value of the Organization Unit field.
506
+
- .tls.x509_fp: The key fingerprint of the peer, when the trusted-key() option is used. Available in {{ site.product.short_name }} 4.8 and later versions.
0 commit comments