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

https://github.com/sysulq/lua-resty-fluent

A simple fluent client based on openresty.
https://github.com/sysulq/lua-resty-fluent

Last synced: about 1 year ago
JSON representation

A simple fluent client based on openresty.

Awesome Lists containing this project

README

          

Name
================

This is a simple fluent client based on openresty.

Synopsis
================

```
location / {
content_by_lua '
local fluent = require "fluent"
f = fluent:new()
local ok ,err = f:connect("127.0.0.1", 8888)
if not ok then
ngx.say("failed to connect: ", err)
return
end

local ok, err = f:post("test","This is a test data")
if not ok then
ngx.say("failed to connect: ", err)
return
end

f:close()
';
```