Welcome! Log In Create A New Profile

Advanced

Logging a variable set by nginx's Lua module

July 16, 2013 11:26AM
I am trying to use the Lua module in nginx to set a variable ("foo") based on JSON in the body of a request. Then I want to log the value of that variable to the access log.

Like so: https://gist.github.com/danslimmon/17f5bf4736566737cc65

However, nginx won't start with this configuration. It complains thusly: https://gist.github.com/danslimmon/f5f789d8af8bbb06b224

Here is my "nginx -V" output: https://gist.github.com/danslimmon/9ed99c63aa6c04bd1a41/raw/e73bbdfb1c0ead08dd4df80b936dc233542df8bc/gistfile1.txt

Thoughts? Thanks in advance.

Dan Slimmon
Senior Platform Engineer
Exosite
Minneapolis, MN
Subject Author Posted

Logging a variable set by nginx's Lua module

danslimmon July 16, 2013 11:26AM

Re: Logging a variable set by nginx's Lua module

Marcin Deranek July 16, 2013 12:04PM

Re: Logging a variable set by nginx's Lua module

danslimmon July 16, 2013 12:22PM

Re: Logging a variable set by nginx's Lua module

Marcin Deranek July 16, 2013 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 127
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready