nic-6443 commented on code in PR #13826:
URL: https://github.com/apache/apisix/pull/13826#discussion_r3782303587
##########
docs/en/latest/plugins/loggly.md:
##########
@@ -74,6 +74,7 @@ You can also configure the Plugin through Plugin metadata.
The following configu
| protocol | string | False | "syslog" | [ "syslog" ,
"http", "https" ] | Protocol in which the logs are sent to Loggly.
|
| log_format | object | False | nil |
| Log format declared as key-value pairs in JSON. Values support
strings and nested objects (up to five levels deep; deeper fields are
truncated). Within strings, [APISIX](../apisix-variable.md) or
[NGINX](http://nginx.org/en/docs/varindex.html) variables can be referenced by
prefixing with `$`. |
| log_format_extra | object | False | |
| Extra log fields **added on top of** the default log entry,
keeping every default field instead of replacing them (unlike `log_format`).
Same value syntax as `log_format`. Ignored when `log_format` is set. |
+| max_pending_entries | integer | False | 16384 | | Maximum number of entries
waiting to be processed. New entries are discarded while the backlog exceeds
this, which stops a slow or unreachable log server from growing the worker's
memory without bound. See [Batch
Processor](../batch-processor.md#limiting-the-backlog) for the memory a backlog
of this size costs. |
Review Comment:
Fixed — `>= 1` added here and in the zh version, plus `sls-logger`'s zh
table which had the same blank cell.
##########
docs/zh/latest/plugins/loggly.md:
##########
@@ -68,6 +68,7 @@ description: API 网关 Apache APISIX loggly 插件可用于将日志转发到 S
| timeout | integer | 否 | 5000 |
| 发送数据请求超时时间(以毫秒为单位)。 |
| protocol | string | 否 | "syslog" | [ "syslog", "http",
"https" ] | 将日志发送到 Loggly 的协议。 |
| log_format | object | 否 | nil |
| 日志格式以 JSON 的键值对声明。值支持字符串和嵌套对象(最多五层,超出部分将被截断)。字符串中可通过在前面加上 `$` 来引用
[APISIX 变量](../../../en/latest/apisix-variable.md) 或 [NGINX
内置变量](http://nginx.org/en/docs/varindex.html)。 |
+| max_pending_entries | integer | 否 | 16384 | |
待处理条目数的上限。积压超过该值后新条目会被丢弃,避免日志服务变慢或不可达时 worker 内存无限增长。该上限对应的内存开销参见
[批处理器](../batch-processor.md#限制积压条目数)。 |
Review Comment:
Fixed — `>= 1` added here, in the English version, and in the `sls-logger`
zh table which had the same blank cell.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]