Description
go-audit is an alternative to the auditd daemon that ships with many Linux distributions. The author built it after creating an audisp plugin that converted audit logs to JSON, and it is written in Go, which the README describes as a type-safe, performant language. Its goals are to be safe, fast and never block when it can avoid it, to output JSON, and to support pluggable pipelines that write to syslog, a local file, Graylog2 or standard output, with additional outputs easy to add. It connects to the Linux kernel through netlink. 14 or later, then clone the repository, build the binary and copy it wherever you like. The project includes Make targets for unit tests, coverage reports and benchmarks, and the contrib folder has examples for running it as a proper service. An example configuration file is included. The FAQ covers two common points. If the logs show a no buffer space available error, the system is producing audit data faster than go-audit reads it, so you can increase the receive buffer or reduce the amount of audit data.…
Highlights
- Alternative to the auditd daemon
- JSON output for audit events
- Pluggable pipelines to syslog, files, Graylog2 or stdout
- Connects to the kernel via netlink
- Service examples and example config
Ratings & Reviews
No ratings yet
Be the first to rate Go Audit.
People also visit

golang-samber-slog
Structured logging extensions for Golang using samber/slog-**** packages
Go Audit FAQ
What is go-audit?
An alternative to the auditd daemon for collecting Linux audit events, written in Go and outputting JSON.
Is it free?
Yes. It is open source and hosted on GitHub.
What do I need to build it?
Go 1.14 or later, then clone the repository, build the binary and copy it where you want.
Where can it send logs?
To syslog, a local file, Graylog2 or stdout, and the README says more outputs are easy to add.
What does the no buffer space error mean?
The system is generating audit data faster than go-audit can receive it. The FAQ suggests increasing socket_buffer.receive or reducing the audit load.
How do I run it as a service?
The contrib folder has examples for running go-audit as a service on your machine.
What are the best Go Audit alternatives?
Popular alternatives to Go Audit include Logbull, Lynis and Logz.io. See all Go Audit alternatives



