Skip to content

Commit 5652622

Browse files
authored
Merge branch 'master' into add-new-log-rotation-method
2 parents 7b587a0 + 05fe450 commit 5652622

File tree

9 files changed

+77
-64
lines changed

9 files changed

+77
-64
lines changed

.github/ISSUE_TEMPLATE/10-doc-issue.md renamed to .github/ISSUE_TEMPLATE/10-doc-issue-bug.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
name: 📚 Documentation issue
3-
about: Use this template for reporting an issue in the documentation.
2+
name: 📚 Documentation bug
3+
about: Use this template for reporting a bug in the documentation.
44
title: ''
5-
labels: 'documentation'
5+
labels: [documentation, bug]
66
assignees: ''
77

88
---
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: 📚 Documentation enhancements
3+
about: Use this template for sending an enhancement request for the documentation.
4+
title: ''
5+
labels: [documentation, enhancement]
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
*******************
12+
PLEASE TAKE CARE!!!
13+
*******************
14+
15+
This is a syslog-ng documentation related ONLY request.
16+
17+
For creating issue request related to the syslog-ng application, use
18+
19+
https://github.com/syslog-ng/syslog-ng/issues/new/choose
20+
21+
-->
22+
23+
## What section you wish to enhance
24+
<!-- Which section of the documentation needs enhancement? Please include a link to it, if that is possible. -->
25+
26+
## Description of the problem
27+
<!-- What would you like to add, do differently, etc. in the documentation? -->
28+
29+
## Proposed solution
30+
<!-- How would you correct/enhance it? -->

.github/ISSUE_TEMPLATE/20-doc-building-bug-report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: 📚 Documentation building bug report
33
about: Use this template for reporting a bug related to building the documentation.
44
title: ''
5-
labels: bug
5+
labels: 'bug'
66
assignees: ''
77

88
---

_includes/doc/admin-guide/notes/kafka-c.md

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**NOTE:** The deprecated `{{ include.old }}()` option is an alias for the `{{ include.new }}()` option, retained for compatibility with earlier {{ site.product.short_name }} versions, but it may be removed at any time without further notice!
2+
{: .notice--info}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## log-fetch-delay()
2+
3+
|Type:| integer|
4+
|Default:| `10000`|
5+
6+
*Description:* Sets the time {{ site.product.short_name }} waits between reading and sending log messages. The unit of this parameter is a fraction of a second, where `wait_time = 1 second / <defined value>`. For example, setting it to `1` results in approximately one log being read/sent per second, while `1000000` means a delay of only 1 microsecond between read/write attempts. The maximum value of this parameter is `1000000`.
7+
8+
**NOTE:** Increasing the value of this parameter (which reduces the delay time) can improve log feed performance, but it may also increase system load.
9+
{: .notice--info}
10+
11+
{% include doc/admin-guide/options/deprecated-options.md old='fetch-delay' new='log-fetch-delay' %}
12+
13+
## log-fetch-retry-delay()
14+
15+
|Type:| integer|
16+
|Default:| `1`|
17+
18+
*Description:* Controls how many seconds {{ site.product.short_name }} remains idle before checking for new logs, in case no new logs were read during the previous check.
19+
20+
{% include doc/admin-guide/options/deprecated-options.md old='fetch-retry-delay' new='log-fetch-retry-delay' %}

doc/_admin-guide/060_Sources/085_macOS/000_darwin_oslog_options.md

Lines changed: 6 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: darwin-oslog() source options
33
id: adm-src-darw-osl-opt
44
description: >-
5-
The `darwin-oslog()` source is based on the native OSLog Framework to read logs from the local store of the unified logging system on darwin OSes. The {{ site.product.short_name }} `system()` source automatically uses this new source on darwin platforms if the `darwinosl` plugin is available. This plugin is available only on macOS 10.15 Catalina and later versions. The 10.15 version is the first to support the OSLog API.
5+
The `darwin-oslog()` source is based on the native OSLog Framework to read logs from the local store of the unified logging system on Darwin OSes. The {{ site.product.short_name }} `system()` source automatically uses this new source on Darwin platforms if the `darwinosl` plugin is available. This plugin is available only on macOS 10.15 Catalina and later versions. The 10.15 version is the first to support the OSLog API.
66
---
77

88
**NOTE:** The persistent OSLog store keeps about 7 days of logs on the disk.
@@ -22,25 +22,7 @@ The `darwin-oslog()` source has the following options.
2222
|Type:| boolean|
2323
|Default:| `no`|
2424

25-
*Description:* By default, {{ site.product.short_name }} continues to read the logs from the last remembered position after a restart. If this option is set to `yes`, it always starts reading from the end or beginning of the available log list (depending on the setting of the `go-reverse()` option.
26-
27-
## fetch-delay()
28-
29-
|Type:| integer|
30-
|Default:| `10000`|
31-
32-
*Description:* Sets the time {{ site.product.short_name }} waits between reading and sending log messages. The dimension of this parameter is a fraction of a second, where `wait_time = 1 second / <defined value>`, so setting `1` would result that only about 1 log is sent in each second, and `1000000` means only 1 microsecond is the delay between read/write attempts. The maximum value of this parameter is `1000000`.
33-
34-
**NOTE:** Increasing the value of this parameter (which lowers delay time) can increase log feed performance, but at could increase system load.
35-
{: .notice--info}
36-
37-
38-
## fetch-retry-delay()
39-
40-
|Type:| integer|
41-
|Default:| `1`|
42-
43-
*Description:* Controls how many seconds {{ site.product.short_name }} spends idle before checking for new logs, in case no new logs were read the last time.
25+
*Description:* By default, {{ site.product.short_name }} continues to read the logs from the last remembered position after a restart. If this option is set to `yes`, it always starts reading from the end or beginning of the available log list (depending on the setting of the `go-reverse()` and the `read-old-records()` options.
4426

4527
## go-reverse()
4628

@@ -49,26 +31,20 @@ The `darwin-oslog()` source has the following options.
4931

5032
*Description:* If set to `yes`, the logs are processed in reverse order (latest to oldest).
5133

52-
## log-fetch-limit
53-
54-
**NOTE:** This option is currently disabled due to an OSLog API bug.
55-
{: .notice--info}
56-
57-
|Type:| integer|
58-
|Default:| `0`(unlimited)|
34+
{% include doc/admin-guide/options/log-fetch-delays.md %}
5935

60-
*Description:* The maximum number of messages fetched from a source with a single poll loop. The destination queues might fill up before `flow-control` could stop reading if the defined `log-fetch-limit()` value is too high.
36+
{% include doc/admin-guide/options/log-fetch-limit.md %}
6137

6238
## max-bookmark-distance()
6339

6440
|Type:| integer|
6541
|Default:| `0`(unlimited) [seconds]|
6642

67-
*Description:* The maximum distance in seconds that a bookmark can point backwards. That is, if {{ site.product.short_name }} is stopped for 10 minutes (600 seconds) and `max-bookmark-distance()` is set to `60`, then {{ site.product.short_name }} starts reading the logs from 60 seconds before the startup, missing 9 minutes (540 seconds) worth of logs.
43+
*Description:* The maximum distance in seconds that a bookmark can point backward. That is, if {{ site.product.short_name }} is stopped for 10 minutes (600 seconds) and `max-bookmark-distance()` is set to `60`, then {{ site.product.short_name }} starts reading the logs from 60 seconds before the startup, missing 9 minutes (540 seconds) worth of logs.
6844

6945
## read-old-records()
7046

7147
|Type:| boolean|
7248
|Default:| `no`|
7349

74-
*Description:* If set to yes, {{ site.product.short_name }} starts reading logs starting from the oldest available log when the system starts, or if there are no bookmarks present.
50+
*Description:* If set to yes, {{ site.product.short_name }} starts reading logs from the oldest available entry when the system starts, or if no bookmarks are present.

doc/_admin-guide/070_Destinations/100_Kafka-c/003_Kafka-c_options.md

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ You can specify multiple, comma-separated addresses, demonstrated in the followi
2121
bootstrap-servers("127.0.0.1:2525,remote-server-hostname:6464")
2222
```
2323

24-
{% include doc/admin-guide/notes/kafka-c.md %}
25-
2624
{% include doc/admin-guide/options/batch-lines.md %}
2725

2826
**NOTE:** The {{ site.product.short_name }} configuration accepts this option with
@@ -82,8 +80,6 @@ The programming language accepts this option for better compatibility.
8280

8381
*Description:* You can use this option to set the properties of the kafka producer.
8482

85-
{% include doc/admin-guide/notes/kafka-c.md %}
86-
8783
The {{ site.product.short_name }} kafka destination supports all properties of the
8884
official Kafka producer. For details, see the librdkafka documentation.
8985

@@ -149,6 +145,19 @@ key(\"${PROGRAM}\").
149145

150146
{% include doc/admin-guide/options/local-time-zone.md %}
151147

148+
## message()
149+
150+
| Type:| message template|
151+
|Default:| ${ISODATE} ${HOST} ${MSGHDR}${MSG}\\n|
152+
153+
*Description:* The message as published to Apache Kafka. You can use
154+
templates and template functions (for example, format-json()) to format
155+
the message, for example, template(\"$(format-json \--scope rfc5424
156+
\--exclude DATE \--key ISODATE)\").
157+
158+
For details on formatting messages in JSON format, see
159+
[[format-json|adm-temp-func#format-json]].
160+
152161
{% include doc/admin-guide/options/on-error.md %}
153162

154163
{% include doc/admin-guide/options/persist-name.md %}
@@ -163,8 +172,6 @@ client about the amount of messages sent since the last poll-timeout ().
163172
In case of multithreading, the first {{ site.product.short_name }} worker is responsible for
164173
poll-timeout().
165174

166-
{% include doc/admin-guide/notes/kafka-c.md %}
167-
168175
{% include doc/admin-guide/options/retries.md %}
169176

170177
{% include doc/admin-guide/options/send-time-zone.md %}
@@ -196,19 +203,6 @@ recommends that you set sync-send() to "yes", as this setting
196203
delivers messages to the Kafka client more reliably.
197204
{: .notice--danger}
198205

199-
## message()
200-
201-
| Type:| message template|
202-
|Default:| ${ISODATE} ${HOST} ${MSGHDR}${MSG}\\n|
203-
204-
*Description:* The message as published to Apache Kafka. You can use
205-
templates and template functions (for example, format-json()) to format
206-
the message, for example, template(\"$(format-json \--scope rfc5424
207-
\--exclude DATE \--key ISODATE)\").
208-
209-
For details on formatting messages in JSON format, see
210-
[[format-json|adm-temp-func#format-json]].
211-
212206
{% include doc/admin-guide/options/throttle.md %}
213207

214208
{% include doc/admin-guide/options/time-zone.md %}

doc/_dev-guide/chapter_4/section_2/macos-testing-status/system-source/01_collecting-native-logs.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ For more info, see [oslog](https://developer.apple.com/documentation/oslog?langu
5252
- boolean value, controls if {{ site.product.short_name }} should start reading logs from the oldest
5353
available at first start (or if no bookmark can be found)
5454
- default value: `no`
55-
- `fetch-delay()`
55+
- `log-fetch-delay()`
5656
- integer value, controls how much time {{ site.product.short_name }} should wait between reading/sending
5757
log messages, this is a fraction of a second, where wait_time = 1 second / n, so,
5858
e.g. n=1 means that only about 1 log will be read and sent in each second,
@@ -61,13 +61,11 @@ For more info, see [oslog](https://developer.apple.com/documentation/oslog?langu
6161
- Use with care, though lower delay time can increase log feed performance, at the
6262
same time could lead to a heavy system load!
6363
- default value: `10 000`
64-
- `fetch-retry-delay()`
64+
- `log-fetch-retry-delay()`
6565
- integer value, controls how many seconds {{ site.product.short_name }} will wait before a repeated
6666
attempt to read/send once it's out of available logs
6767
- default value: `1`
6868
- `log-fetch-limit()`
69-
- **Warning**: _This option is now disabled due to an [OSLog API bug](https://openradar.appspot.com/radar?id=5597032077066240), once it's fixed it_
70-
_will be enabled again_
7169
- integer value, that limits the number of logs {{ site.product.short_name }} will send in one run
7270
- default value: `0`, which means no limit
7371

0 commit comments

Comments
 (0)