Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        

[rfc5424]: https://tools.ietf.org/html/rfc5424
[lua-resty-logger-socket]: https://github.com/cloudflare/lua-resty-logger-socket
[rsyslog]: http://www.rsyslog.com

Name
====
lua-resty-rfc5424

# lua-resty-rfc5424
This is an implementation of the [RFC5424] in the OpenResty

Table 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