Yilialinn commented on code in PR #13271:
URL: https://github.com/apache/apisix/pull/13271#discussion_r3122488836


##########
docs/en/latest/plugins/elasticsearch-logger.md:
##########
@@ -40,21 +40,22 @@ The `elasticsearch-logger` Plugin pushes request and 
response logs in batches to
 | Name          | Type    | Required | Default                     | 
Description                                                  |
 | ------------- | ------- | -------- | --------------------------- | 
------------------------------------------------------------ |
 | endpoint_addrs  | array[string] | True     |                             | 
Elasticsearch API endpoint addresses. If multiple endpoints are configured, 
they will be written randomly.            |
-| field         | object   | True     |                             | 
Elasticsearch `field` configuration.                          |
-| field.index   | string  | True     |                             | 
Elasticsearch [_index 
field](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index-field.html#mapping-index-field).
 |
+| field         | object   | True     |                             | 
Elasticsearch field configuration.                          |
+| field.index   | string  | True     |                             | 
Elasticsearch [_index 
field](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-index-field.html#mapping-index-field).
 Supports the configuration of a [lua time 
format](https://www.lua.org/pil/22.1.html) in curly brackets to include the 
current date, such as `service-{%Y-%m-%d}`. |
+| field.type    | string  | False    |                             | 
Elasticsearch [_type 
field](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-type-field.html#mapping-type-field).
 |
 | log_format | object | False    |                             | Custom log 
format 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 
variables](http://nginx.org/en/docs/varindex.html) can be referenced by 
prefixing with `$`. |
-| auth          | array   | False    |                             | 
Elasticsearch 
[authentication](https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html)
 configuration. |
-| auth.username | string  | True     |                             | 
Elasticsearch 
[authentication](https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html)
 username. |
-| auth.password | string  | True     |                             | 
Elasticsearch 
[authentication](https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html)
 password. |
-| headers | object  | False     |                             | Custom headers 
to send with requests as key-value pairs. For example: `{"Authorization": 
"Bearer token", "X-API-Key": "key"}`. |
+| auth          | object   | False    |                             | 
Elasticsearch 
[authentication](https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html)
 configuration. |
+| auth.username | string  | False     |                             | 
Elasticsearch 
[authentication](https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html)
 username. |
+| auth.password | string  | False     |                             | 
Elasticsearch 
[authentication](https://www.elastic.co/guide/en/elasticsearch/reference/current/setting-up-authentication.html)
 password. The secret is encrypted with AES before being stored in etcd. |

Review Comment:
   
https://github.com/apache/apisix/blob/5ca64d18b03db3deda73098ca030f6f33d33a678/apisix/plugins/elasticsearch-logger.lua#L54-L67



-- 
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]

Reply via email to