Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _includes/doc/admin-guide/options/deprecated-options.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**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!
{: .notice--info}
20 changes: 20 additions & 0 deletions _includes/doc/admin-guide/options/log-fetch-delays.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
## log-fetch-delay()

|Type:| integer|
|Default:| `10000`|

*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`.

**NOTE:** Increasing the value of this parameter (which reduces the delay time) can improve log feed performance, but it may also increase system load.
{: .notice--info}

{% include doc/admin-guide/options/deprecated-options.md old='fetch-delay' new='log-fetch-delay' %}

## log-fetch-retry-delay()

|Type:| integer|
|Default:| `1`|

*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.

{% include doc/admin-guide/options/deprecated-options.md old='fetch-retry-delay' new='log-fetch-retry-delay' %}
36 changes: 6 additions & 30 deletions doc/_admin-guide/060_Sources/085_macOS/000_darwin_oslog_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: darwin-oslog() source options
id: adm-src-darw-osl-opt
description: >-
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.
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.
---

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

*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.

## fetch-delay()

|Type:| integer|
|Default:| `10000`|

*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`.

**NOTE:** Increasing the value of this parameter (which lowers delay time) can increase log feed performance, but at could increase system load.
{: .notice--info}


## fetch-retry-delay()

|Type:| integer|
|Default:| `1`|

*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.
*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.

## go-reverse()

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

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

## log-fetch-limit

**NOTE:** This option is currently disabled due to an OSLog API bug.
{: .notice--info}

|Type:| integer|
|Default:| `0`(unlimited)|
{% include doc/admin-guide/options/log-fetch-delays.md %}

*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.
{% include doc/admin-guide/options/log-fetch-limit.md %}

## max-bookmark-distance()

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

*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.
*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.

## read-old-records()

|Type:| boolean|
|Default:| `no`|

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

Expand Down