On 3/4/21 12:22 PM, Mihaly Zachar wrote:
Sorry, the above might be misunderstood.

I would like to log from the frontend, because some timer values are available only there. So I know that I can send log from the Lua script using core.log() but I need to have the information in the frontend.
If you use Lua for action or service (i.e. you have txn object readily available in the script), you can use txn:set_var(name, value) to communicate stuff back to regular HAProxy layer, and then log the value of the variable with rest of the stuff.

Best regards,
--
Adis Nezirovic
Software Engineer
HAProxy Technologies - Powering your uptime!
375 Totten Pond Road, Suite 302 | Waltham, MA 02451, US
+1 (844) 222-4340 | https://www.haproxy.com

Reply via email to