monkeyDluffy6017 commented on code in PR #10764:
URL: https://github.com/apache/apisix/pull/10764#discussion_r1444148591
##########
docs/en/latest/plugins/error-log-logger.md:
##########
@@ -69,6 +69,12 @@ NOTE: `encrypt_fields = {"clickhouse.password"}` is also
defined in the schema,
This Plugin supports using batch processors to aggregate and process entries
(logs/data) in a batch. This avoids the need for frequently submitting the
data. The batch processor submits data every `5` seconds or when the data in
the queue reaches `1000`. See [Batch
Processor](../batch-processor.md#configuration) for more information or setting
your custom configuration.
+### Example of default log format
+
+```text
+["2024/01/06 16:04:30 [warn] 11786#9692271: *1 [lua] plugin.lua:205: load():
new plugins: {\"error-log-logger\":true}, context:
init_worker_by_lua*","\n","2024/01/06 16:04:30 [warn] 11786#9692271: *1 [lua]
plugin.lua:255: load_stream(): new plugins:
{\"limit-conn\":true,\"ip-restriction\":true,\"syslog\":true,\"mqtt-proxy\":true},
context: init_worker_by_lua*","\n"]
+```
Review Comment:
Could you format this with json?
##########
docs/en/latest/plugins/loggly.md:
##########
@@ -53,6 +53,12 @@ This Plugin supports using batch processors to aggregate and
process entries (lo
To generate a Customer token, go to `<your assigned
subdomain>/loggly.com/tokens` or navigate to Logs > Source setup > Customer
tokens.
+### Example of default log format
+
+```text
+<10>1 2024-01-06T06:50:51.739Z 127.0.0.1 apisix 58525 - [token-1@41058
tag=\"apisix\"]
{\"service_id\":\"\",\"server\":{\"version\":\"3.7.0\",\"hostname\":\"localhost\"},\"apisix_latency\":100.99985313416,\"request\":{\"url\":\"http://127.0.0.1:1984/opentracing\",\"headers\":{\"content-type\":\"application/x-www-form-urlencoded\",\"user-agent\":\"lua-resty-http/0.16.1
(Lua)
ngx_lua/10025\",\"host\":\"127.0.0.1:1984\"},\"querystring\":{},\"uri\":\"/opentracing\",\"size\":155,\"method\":\"GET\"},\"response\":{\"headers\":{\"content-type\":\"text/plain\",\"server\":\"APISIX/3.7.0\",\"transfer-encoding\":\"chunked\",\"connection\":\"close\"},\"size\":141,\"status\":200},\"route_id\":\"1\",\"latency\":103.99985313416,\"upstream_latency\":3,\"client_ip\":\"127.0.0.1\",\"upstream\":\"127.0.0.1:1982\",\"start_time\":1704523851634}
+```
Review Comment:
ditto
--
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]