Skip to content

Commit 25db971

Browse files
authored
darwinosl: options update for OSE #5547 (#255)
2 parents f334aef + 4d50711 commit 25db971

File tree

4 files changed

+30
-34
lines changed

4 files changed

+30
-34
lines changed
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/_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)