Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/msempere/lua-resty-fluentd

Lua fluentd logger for the ngx_lua based on the cosocket API
https://github.com/msempere/lua-resty-fluentd

Last synced: about 1 month ago
JSON representation

Lua fluentd logger for the ngx_lua based on the cosocket API

Awesome Lists containing this project

README

        

# lua-resty-fluentd
Lua fluentd logger for the ngx_lua based on the cosocket API

## Synopsis

```lua
local fluentd = require "resty.fluentd"
local logger = fluentd:new()

local ok, err = logger:connect("127.0.0.1", 24224)
if not ok then
ngx.say("failed to connect: ", err)
return
end

logger:log("a.test.tag", {"type":"event", "timestamp":12345678})
```

## Install

```
luarocks install lua-resty-fluentd
```