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
**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!
*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' %}
Copy file name to clipboardExpand all lines: doc/_admin-guide/060_Sources/085_macOS/000_darwin_oslog_options.md
+6-30Lines changed: 6 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: darwin-oslog() source options
3
3
id: adm-src-darw-osl-opt
4
4
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.
6
6
---
7
7
8
8
**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.
22
22
|Type:| boolean|
23
23
|Default:|`no`|
24
24
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.
44
26
45
27
## go-reverse()
46
28
@@ -49,26 +31,20 @@ The `darwin-oslog()` source has the following options.
49
31
50
32
*Description:* If set to `yes`, the logs are processed in reverse order (latest to oldest).
51
33
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 %}
59
35
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 %}
61
37
62
38
## max-bookmark-distance()
63
39
64
40
|Type:| integer|
65
41
|Default:|`0`(unlimited) [seconds]|
66
42
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.
68
44
69
45
## read-old-records()
70
46
71
47
|Type:| boolean|
72
48
|Default:|`no`|
73
49
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.
0 commit comments