Skip to content

Log consistently using Syslog over TCP #23

Closed

Description

@jcjones

For central logging we will want to reduce the use of stdout / stderr and prefer RFC 5424 syslogging over TCP. Logging should follow a consistent format so that we can write a Logstash grok rule to decode important details.

The remote logging server should be specified by hostname via the command line.

It appears that the Go syslog package supports syslog over UDP and TCP.

Activity

  1. grawity commented on Mar 12, 2015

    @grawity

    On the other hand, talking TCP directly means the program can't take advantage of various security & reliability features that dedicated syslog daemons (rsyslog, syslog-ng) already implement, like TLS encryption for the network forwarding...

  2. jcjones commented on Mar 13, 2015

    @jcjones
    ContributorAuthor

    It does indeed. Preferably it should be configurable how we want to transmit the log data, though in my initial use case direct submission is the only practical way out of the jail.

  3. jcjones commented on Mar 21, 2015

    @jcjones
    ContributorAuthor

    Due to some infrastructure changes, it's feasible now to reach rsyslog running on the host. I'm pretty tempted to discard the JSON-logging and instead use helper classes to serialize JSON whenever needed.

    There is also a need for the helper to insert an easily-grok-able "AUDIT" flag of some sort to indicate that this message is to meet our CPS audit requirements, and thus be subject to extended retention.

  4. added 2 commits that reference this issue on Mar 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions