Hi all!

I'm already using haproxy to proxy some TCP-connections and also have a
need to rewrite data in TCP stream. Namely convert graphite protocol to
influx line protocol, but that does not mattes.
There is alike functionality for HTTP, which allows to replace or rewrite
its headers, but I have not see something like it for TCP. And I wondering
if it is possible to do without adding additional substances and do it in
context of haproxy. I need to read incoming newline-delimited strings and
forward modified version of them. I can write Lua-code, but not sure how it
should be embedded into haproxy's architecture. The closest I have found is
this examples:
http://article.gmane.org/gmane.comp.web.haproxy/25243/
But that did not helped me much.
Is it possible to solve my task with Lua in haproxy? Can someone help me
with code which wraps main functionality (rewriting)?

Reply via email to