A structured logger for Fluentd (OpenResty/ngx_lua)
Lua
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
lua-resty-fluent-logger.rockspec
resty_fluent.lua

README.md

lua-resty-fluent-logger

A client for Fluentd. Using nginx cosocket API.

Installation

$ luarocks install lua-resty-fluent-logger

Usage

-- Require
local resty_fluent = require('resty_fluent')

-- Initialize
local logger = resty_fluent.new({
  host = "127.0.0.1",
  port = 24224,
})

-- Post
logger:post('td.db.table', {
  column = 'data',
})

Licence

GPL v3

Author