Skip to content

A sample project that explores the syslog server, client and Docker syslog log driver.

License

Notifications You must be signed in to change notification settings

ihcsim/syslog-server

Repository files navigation

go-syslog

Codeship Status for ihcsim/syslog-server

This is a sample project where a client is used to send syslog messages to a syslog server. The objective is to explore the Go standard syslog library and the Docker syslog log driver.

The following is a list of syslog API that the client uses to send different message types to the server:

  1. syslog.Alert
  2. syslog.Crit
  3. syslog.Debug
  4. syslog.Emerg
  5. syslog.Err
  6. syslog.Info
  7. syslog.Notice
  8. syslog.Warning

Getting Started

To build and run the syslog server docker container:

$ docker build --rm -t isim/go-syslog .
$ docker run --rm -p 10154:10154 isim/go-syslog

To build and run the client Docker container:

$ docker build --rm -t isim/gosyslog-client .
$ docker run --rm isim/gosyslog-client

The log emitter script can be used to generate a continuous stream of logs that is sent to the syslog server using the Docker syslog log driver.

$ client/emit_logs.sh

LICENSE

Refer the LICENSE file.

About

A sample project that explores the syslog server, client and Docker syslog log driver.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published