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.
- Host: GitHub
- URL: https://github.com/sysulq/lua-resty-fluent
- Owner: sysulq
- License: mit
- Created: 2014-05-22T12:13:48.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-23T03:31:43.000Z (about 12 years ago)
- Last Synced: 2025-02-13T04:47:22.337Z (over 1 year ago)
- Language: Lua
- Homepage:
- Size: 137 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()
';
```