Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/detailyang/lua-resty-rfc5424
This is an implementation of the RFC5424(syslog) in the OpenResty
https://github.com/detailyang/lua-resty-rfc5424
Last synced: 3 months ago
JSON representation
This is an implementation of the RFC5424(syslog) in the OpenResty
- Host: GitHub
- URL: https://github.com/detailyang/lua-resty-rfc5424
- Owner: detailyang
- License: mit
- Created: 2016-11-18T08:00:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-03T05:43:35.000Z (almost 8 years ago)
- Last Synced: 2024-02-15T07:34:56.204Z (9 months ago)
- Language: Lua
- Size: 21.5 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-resty - lua-resty-rfc5424
README
[rfc5424]: https://tools.ietf.org/html/rfc5424
[lua-resty-logger-socket]: https://github.com/cloudflare/lua-resty-logger-socket
[rsyslog]: http://www.rsyslog.comName
====
lua-resty-rfc5424# lua-resty-rfc5424
This is an implementation of the [RFC5424] in the OpenRestyTable of Contents
-----------------
* [Name](#name)
* [Status](#status)
* [Usage](#usage)
* [API](#api)
* [Contributing](#contributing)
* [Author](#author)
* [License](#license)Status
====
[![Build Status](https://travis-ci.org/detailyang/lua-resty-rfc5424.svg?branch=master)](https://travis-ci.org/detailyang/lua-resty-rfc5424)Production Ready
Usage
====
It's recommended to use [lua-resty-logger-socket] and [rsyslog] together:)Production Architecture can be as the following:
![architecture](https://raw.githubusercontent.com/detailyang/lua-resty-rfc5424/master/fixtures/rsyslog.jpg)
API
====encode
---
`syntax: rfc5424.encode(facility, severity, hostname, pid, appname, msg)`This will encode the msg to the rfc5424 format:
Contributing
------------To contribute to lua-resty-rfc5424, clone this repo locally and commit your code on a separate branch.
PS: PR Welcome :rocket: :rocket: :rocket: :rocket:
Author
------> GitHub [@detailyang](https://github.com/detailyang)
License
-------
lua-resty-rfc5424 is licensed under the [MIT] license.[MIT]: https://github.com/detailyang/ybw/blob/master/licenses/MIT