shihuncl commented on issue #12381:
URL: https://github.com/apache/apisix/issues/12381#issuecomment-3050744173

   > If you have changed code, you should bring it up, as it helps to 
troubleshoot the problem, and it is not 100% sure that they are not related.
   elasticsearch-logger.lua:
   local os_date = os.date 
   local function get_logger_entry(conf, ctx)
        local index_name = conf.field.index .. "-" .. os_date("%Y-%m-%d")
       local entry = log_util.get_log_entry(plugin_name, conf, ctx)
       return core.json.encode({
               create = {
                   _index = index_name,
                   _type = conf.field.type
               }
           }) .. "\n" ..
           core.json.encode(entry) .. "\n"
   end
   


-- 
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-unsubscr...@apisix.apache.org

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

Reply via email to