Skip to content

Commit 407a427

Browse files
added datanode.conf to config library
Signed-off-by: William Trelawny <william.trelawny@graylog.com>
1 parent fe19b47 commit 407a427

File tree

1 file changed

+159
-0
lines changed

1 file changed

+159
-0
lines changed
Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
#####################################
2+
# GRAYLOG DATANODE CONFIGURATION FILE
3+
#####################################
4+
#
5+
# This is the Graylog DataNode configuration file. The file has to use ISO 8859-1/Latin-1 character encoding.
6+
# Characters that cannot be directly represented in this encoding can be written using Unicode escapes
7+
# as defined in https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.3, using the \u prefix.
8+
# For example, \u002c.
9+
#
10+
# * Entries are generally expected to be a single line of the form, one of the following:
11+
#
12+
# propertyName=propertyValue
13+
# propertyName:propertyValue
14+
#
15+
# * White space that appears between the property name and property value is ignored,
16+
# so the following are equivalent:
17+
#
18+
# name=Stephen
19+
# name = Stephen
20+
#
21+
# * White space at the beginning of the line is also ignored.
22+
#
23+
# * Lines that start with the comment characters ! or # are ignored. Blank lines are also ignored.
24+
#
25+
# * The property value is generally terminated by the end of the line. White space following the
26+
# property value is not ignored, and is treated as part of the property value.
27+
#
28+
# * A property value can span several lines if each line is terminated by a backslash (‘\’) character.
29+
# For example:
30+
#
31+
# targetCities=\
32+
# Detroit,\
33+
# Chicago,\
34+
# Los Angeles
35+
#
36+
# This is equivalent to targetCities=Detroit,Chicago,Los Angeles (white space at the beginning of lines is ignored).
37+
#
38+
# * The characters newline, carriage return, and tab can be inserted with characters \n, \r, and \t, respectively.
39+
#
40+
# * The backslash character must be escaped as a double backslash. For example:
41+
#
42+
# path=c:\\docs\\doc1
43+
#
44+
45+
# The auto-generated node ID will be stored in this file and read after restarts. It is a good idea
46+
# to use an absolute file path here if you are starting Graylog DataNode from init scripts or similar.
47+
node_id_file = /etc/graylog/datanode/node-id
48+
49+
# location of your data-node configuration files - put additional files like manually created certificates etc. here
50+
config_location = /etc/graylog/datanode
51+
52+
# You MUST set a secret to secure/pepper the stored user passwords here. Use at least 64 characters.
53+
# Generate one by using for example: pwgen -N 1 -s 96
54+
# ATTENTION: This value must be the same on all Graylog and Datanode nodes in the cluster.
55+
# Changing this value after installation will render all user sessions and encrypted values in the database invalid. (e.g. encrypted access tokens)
56+
password_secret = rwBCJ9ULJrHfcHrO1bnh7IXISq9Kwgzn2QR1cDHAABN0g3LnIpYJRT2BhyDOP65v8uZn0Ph4yFUuOztc4sUtdNub4FMPzyqS
57+
58+
# The default root user is named 'admin'
59+
#root_username = admin
60+
61+
# You MUST specify a hash password for the root user (which you only need to initially set up the
62+
# system and in case you lose connectivity to your authentication backend)
63+
# This password cannot be changed using the API or via the web interface. If you need to change it,
64+
# modify it in this file.
65+
# Create one by using for example: echo -n yourpassword | shasum -a 256
66+
# and put the resulting hash value into the following line
67+
root_password_sha2 =
68+
69+
# connection to MongoDB, shared with the Graylog server
70+
# See https://docs.mongodb.com/manual/reference/connection-string/ for details
71+
mongodb_uri = mongodb://localhost/graylog
72+
73+
#### HTTP bind address
74+
#
75+
# The network interface used by the Graylog DataNode to bind all services.
76+
#
77+
# bind_address = 0.0.0.0
78+
79+
#### Hostname
80+
#
81+
# if you need to specify the hostname to use (because looking it up programmatically gives wrong results)
82+
# hostname =
83+
84+
#### HTTP port
85+
#
86+
# The port where the DataNode REST api is listening
87+
#
88+
# datanode_http_port = 8999
89+
90+
#### HTTP publish URI
91+
#
92+
# This configuration should be used if you want to connect to this Graylog DataNode's REST API and it is available on
93+
# another network interface than $http_bind_address,
94+
# for example if the machine has multiple network interfaces or is behind a NAT gateway.
95+
# http_publish_uri =
96+
97+
#### OpenSearch HTTP port
98+
#
99+
# The port where OpenSearch HTTP is listening on
100+
#
101+
# opensearch_http_port = 9200
102+
103+
#### OpenSearch transport port
104+
#
105+
# The port where OpenSearch transports is listening on
106+
#
107+
# opensearch_transport_port = 9300
108+
109+
#### OpenSearch node name config option
110+
#
111+
# use this, if your node name should be different from the hostname that's found by programmatically looking it up
112+
#
113+
# node_name =
114+
115+
#### OpenSearch discovery_seed_hosts config option
116+
#
117+
# if you're not using the automatic data node setup and want to create a cluster, you have to setup the discovery seed hosts
118+
#
119+
# opensearch_discovery_seed_hosts =
120+
121+
#### OpenSearch initial_manager_nodes config option
122+
#
123+
# if you're not using the automatic data node setup and want to create a cluster, you have to setup the initial manager nodes
124+
# make sure to remove this setting after the cluster has formed
125+
#
126+
# initial_cluster_manager_nodes =
127+
128+
#### OpenSearch folders
129+
#
130+
# set these if you need OpenSearch to be located in a special place or want to include an existing version
131+
#
132+
# Root directory of the used opensearch distribution
133+
opensearch_location = /usr/share/graylog-datanode/dist
134+
135+
opensearch_config_location = /var/lib/graylog-datanode/opensearch/config
136+
opensearch_data_location = /var/lib/graylog-datanode/opensearch/data
137+
opensearch_logs_location = /var/log/graylog-datanode/opensearch
138+
139+
#### OpenSearch Certificate bundles for transport and http layer security
140+
#
141+
# if you're not using the automatic data node setup, you can manually configure your SSL certificates
142+
# transport_certificate = datanode-transport-certificates.p12
143+
# transport_certificate_password = password
144+
# http_certificate = datanode-http-certificates.p12
145+
# http_certificate_password = password
146+
147+
#### OpenSearch log buffers size
148+
#
149+
# the number of lines from stderr and stdout of the OpenSearch process that are buffered inside the DataNode for logging etc.
150+
#
151+
# process_logs_buffer_size = 500
152+
153+
#### OpenSearch JWT token usage
154+
#
155+
# communication between Graylog and OpenSearch is secured by JWT. These are the defaults used for the token usage
156+
# adjust them, if you have special needs.
157+
#
158+
# indexer_jwt_auth_token_caching_duration = 60s
159+
# indexer_jwt_auth_token_expiration_duration = 180s

0 commit comments

Comments
 (0)