Commit 55b8a69b authored by Jose Diaz-Gonzalez's avatar Jose Diaz-Gonzalez

Added information on generating an ssl certificate

Also added recommendations on where to place the files on disk
parent 7109522e
......@@ -135,6 +135,19 @@ The config file is documented further up in this file.
number of these may be specified. I use them to set fields like `type` and
other custom attributes relevant to each log.
### Generating an ssl certificate
Logstash supports all certificates, including self-signed certificates. To generate a certificate, you can run the following command:
$ openssl req -x509 -batch -nodes -newkey rsa:2048 -keyout lumberjack.key -out lumberjack.crt
This will generate a key at `lumberjack.key` and the certificate at `lumberjack.crt`. Both the server that is running lumberjack as well as the logstash instances receiving logs will require these files on disk to verify the authenticity of messages.
Recommended file locations:
- certificates: `/etc/pki/tls/certs`
- keys: `/etc/pki/tls/private`
## Use with logstash
In logstash, you'll want to use the [lumberjack]( input, something like:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment