Initial Configuration Settings
During Graylog installation, you are required to assign or update values for several configuration properties in both server.conf
and datanode.conf
before you can start Graylog.
This article lists the essential initial configuration settings for Graylog, which includes the properties you set during installation as well as others you most likely need to set or adjust as soon as your Graylog server is running.
Essential Properties
Property | Description | File | Default |
---|---|---|---|
|
Used for password encryption and salting. Use at least 64 characters. Set the same |
|
None. You must set this value or the server will not start. |
|
|
||
|
Sets your MongoDB connection, including authentication information. See the MongoDB documentation for details. |
|
|
|
Sets the heap memory for OpenSearch. Set this value to half your system memory, up to a max of 31 GB. |
|
|
|
A SHA2 hash of the password you will use for your initial login. |
|
None. You must set this value. |
|
You must specify a hash password for the root user, which you need to initially set up the system and if you lose connectivity to your authentication backend. This password cannot be changed via the API or the web interface. You can modify it only in the
|
||
|
The network interface used by the Graylog HTTP interface. This address and port is used by default in the This network interface must be accessible by all Graylog nodes in the cluster and by all clients using the Graylog web interface. For more information, see The Web Interface. |
|
If you change this value but do not specify a port, Graylog uses port 9000 by default. |
|
Sets the public URI for Graylog, which is used by the Graylog web interface to communicate with the Graylog REST API. The |
|
|
|
These two properties work together to determine how long journal messages are held before they are written to the search backend. We recommend you configure your journal max age setting to 72 hours and the max size to your expected total log volume over a 72-hour period. So, if your expected daily log volume is 30 GB, your max size should be adjusted to 90 GB. |
|
|
|
Sets the node as the leader if you are running more than one instance of the Graylog server. For multi-node architecture, you must designate one All other nodes, which are follower or replica nodes, should be set to |
|
|