Skip to content

Commit

Permalink
fix: should not remove metadata schema for log format
Browse files Browse the repository at this point in the history
  • Loading branch information
nic-chen committed Sep 30, 2024
1 parent d98d73e commit fad5582
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apisix/utils/log-util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ local lru_log_format = core.lrucache.new({

local _M = {}

_M.metadata_schema_log_format = {
type = "object",
default = {
["host"] = "$host",
["@timestamp"] = "$time_iso8601",
["client_ip"] = "$remote_addr",
},
}


local function get_request_body(max_bytes)
local req_body = req_get_body_data()
Expand Down

0 comments on commit fad5582

Please sign in to comment.