child2d opened a new issue, #9852:
URL: https://github.com/apache/apisix/issues/9852
### Description
hi,
my elasticsearch-logger plugin has been added to the route while i want to
add @timestamp to the log.
here is my elasticsearch-logger, it looks good. plenty of useful log field
generated from logger.
```json
// elasticsearch-logger-plugin
"elasticsearch-logger": {
"include_req_body": true,
"name": "elasticsearch-logger",
"ssl_verify": true,
"retry_delay": 1,
"max_retry_count": 0,
"timeout": 10,
"field": {
"index": "access_log"
},
"batch_max_size": 1000,
"inactive_timeout": 5,
"buffer_duration": 60,
"endpoint_addr": "http://foo:9200"
}
```
question is if i add log_format `{"@timestamp": "$time_iso8601"}` to the
plugin metadata, those log field will be lost.
I don't want to manually configure many configuration items into metadata
because it's too cumbersome.
How can I reuse the original log fields?
from elasticsearch log i found `start_time`, can it be configure to iso
datetime format?
### Environment
- APISIX version (run `apisix version`): 3.1.0
- Operating system (run `uname -a`): Linux apisix 4.19.91-26.al7.x86_64 #1
SMP x86_64 GNU/Linux which is a k8s pod
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
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]