You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "kayx23 (via GitHub)" <gi...@apache.org> on 2023/04/11 02:43:03 UTC

[GitHub] [apisix] kayx23 commented on issue #9284: docs: populate default `log_format` for logging plugins

kayx23 commented on issue #9284:
URL: https://github.com/apache/apisix/issues/9284#issuecomment-1502611367

   ## info that might be useful
   
   In `/apisix/utils/log-util.lua`: 
   
   ```
   local _M = {}
   _M.metadata_schema_log_format = {
       type = "object",
       default = {
           ["host"] = "$host",
           ["@timestamp"] = "$time_iso8601",
           ["client_ip"] = "$remote_addr",
       },
   }
   ```
   
   @soulbird mentioned the default format should be the same as the one available in metadata


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org