go-graylog
Graylog API client and mock server for Golang and terraform provider for Graylog.
Supported APIs
Graylog provides very various APIs so we can't support all of them yet.
Please check the following godoc's Client methods.
https://godoc.org/github.com/suzuki-shunsuke/go-graylog/client
Example - client and mock server
Mock Server CLI tool
Download a binary from the release page.
$ graylog-mock-server --help
graylog-mock-server - Run Graylog mock server.
USAGE:
graylog-mock-server [options]
VERSION:
0.1.0
OPTIONS:
--port value port number. If you don't set this option, a free port is assigned and the assigned port number is outputed to the console when the mock server runs.
--log-level value the log level of logrus which the mock server uses internally. (default: "info")
--data value data file path. When the server runs data of the file is loaded and when data of the server is changed data is saved at the file. If this option is not set, no data is loaded and saved.
--help, -h show help
--version, -v print the version
Terraform provider
Supported Graylog version
We support the following versions.
We use the graylog's official Docker Image for development.
Support of Graylog v3
Use client.NewClientV3
instead of client.NewClient
.
In the terraform provider, please set the variable api_version
to v3
.
Contribution
See CONTRIBUTING.md .
See also
License
MIT