doesn't work because redis cannot be used in log_by_lua
https://github.com/agentzh/lua-resty-redis#limitations