On Tue, May 8, 2018 at 8:17 PM, Baptiste <bed...@gmail.com> wrote:

> Hi All, Thierry,
>
> I'm trying to use the converter 'table_http_req_cnt()' from a Lua script,
> but I'm not successful and so I wonder how I'm supposed to use the
> converter class (txn.c:<converter>)...
>
> The documentation misses an example:
> https://www.arpalert.org/src/haproxy-lua-api/1.8/index.
> html#converters-class
>
> Like for the fetches class:
> https://www.arpalert.org/src/haproxy-lua-api/1.8/index.html#fetches-class
>
> Any help would be appreciated. (HAProxy 1.8, HTTP action context, where I
> want to pass a string to the converter table_http_req_cnt to read some
> data from my table).
>
> Baptiste
>


Replying to myself with the solution: the sample must be set as the first
argument when calling the converter.
IE: local myvar = txn.c:table_http_req_cnt(<sample>,<table name>)

Hope this helps.

Baptiste

Reply via email to