https://github.com/dalee/udp-web-logger
Dead simple udp logger with web ui
https://github.com/dalee/udp-web-logger
logger udp udp-logger
Last synced: about 1 year ago
JSON representation
Dead simple udp logger with web ui
- Host: GitHub
- URL: https://github.com/dalee/udp-web-logger
- Owner: Dalee
- License: mit
- Created: 2017-10-02T23:55:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-15T18:31:53.000Z (almost 8 years ago)
- Last Synced: 2025-04-10T20:50:45.863Z (over 1 year ago)
- Topics: logger, udp, udp-logger
- Language: Go
- Size: 26.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UDP Web Logger
[](https://travis-ci.org/Dalee/udp-web-logger)
[](https://codecov.io/gh/Dalee/udp-web-logger)
## Requirements
- Go 1.10
## Why
The very common use case is when your applications use `syslog` as a transport for the logs.
In staging / production you can set up `ELK` stack with `logstash` parsing pattern like:
```
<%{POSINT:syslog_pri}>%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:syslog_message}
```
But during developing the whole `ELK` stack is not needed mostly. That's where this logger comes in. Cool thing is that
you can embed this daemon into a `Vagrant` box.
## Usage
```
$ UDP_LISTEN="127.0.0.1:10110" WEB_LISTEN="127.0.0.1:10100" ./udp-web-logger --help
Usage: udp-web-logger [options]
Options:
--udp-read-buffer-size size of buffer to read incoming UDP packet into. Default: 4096.
--max-messages maximum amount of messages to keep. Default: 50.
--help prints this message.
Env:
UDP_LISTEN - address to listen UDP on. Default: 127.0.0.1:9010.
WEB_LISTEN - address to listen HTTP on. Default: 127.0.0.1:9000.
```
## Links
https://github.com/Dalee/elk-playground
https://github.com/Dalee/node-logger
https://github.com/Dalee/monolog-syslog3164