LUA to read Haproxy logs and write into Redis

I have deployed a Haproxy with LUA module on a Ubuntu VPS and it is working to authenticate client requests and doing forward proxy as expected. I want to make LUA to read haproxy logs and save into Redis server. Any idea how to achieve this.