Merge ~kwmonroe/graylog-snap:master into ~canonical-is-sa/graylog-snap:master

Proposed by Kevin W Monroe
Status: Merged
Approved by: Junien F
Approved revision: 1628ea9b195a65bf9c01733322149297ec7a3bb0
Merged at revision: e417d0c9e4378f984d6a641afbd80a6abebe3590
Proposed branch: ~kwmonroe/graylog-snap:master
Merge into: ~canonical-is-sa/graylog-snap:master
Diff against target: 461 lines (+167/-97)
3 files modified
log4j2.xml (+0/-2)
server.conf (+164/-92)
snapcraft.yaml (+3/-3)
Reviewer Review Type Date Requested Status
Junien F Approve
Stuart Bishop (community) Approve
Canonical IS SAs Pending
Review via email: mp+365894@code.launchpad.net

Commit message

update to 3.0-latest

Description of the change

Graylog 3 is needed to facilitate rich Kubernetes logging (logs annotated with k8s pods/containers/labels/etc). I've tested this with CDK using graylog from the 2.5.1 snap and manually upgrading the system with the deb and config changes in this MP.

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
Haw Loeung (hloeung) :
Revision history for this message
Haw Loeung (hloeung) :
Revision history for this message
Kevin W Monroe (kwmonroe) wrote :

Bug 1824708 has more details about the caveats of this upgrade. We may need to work out snap build changes prior to merging this. That is, create and maintain tracks for v2 and v3 for users that do no wish to make the jump to this new major version.

Revision history for this message
Stuart Bishop (stub) wrote :

LGTM.

Does server.conf need to exist in this branch, or can it be pulled at build time from the graylog package?

review: Approve
Revision history for this message
Junien F (axino) wrote :

+1

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision e417d0c9e4378f984d6a641afbd80a6abebe3590

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/log4j2.xml b/log4j2.xml
index 743bce0..0c322f2 100644
--- a/log4j2.xml
+++ b/log4j2.xml
@@ -22,8 +22,6 @@
22 <Logger name="org.elasticsearch.script" level="warn"/>22 <Logger name="org.elasticsearch.script" level="warn"/>
23 <!-- Disable messages from the version check -->23 <!-- Disable messages from the version check -->
24 <Logger name="org.graylog2.periodical.VersionCheckThread" level="off"/>24 <Logger name="org.graylog2.periodical.VersionCheckThread" level="off"/>
25 <!-- Suppress crazy byte array dump of Drools -->
26 <Logger name="org.drools.compiler.kie.builder.impl.KieRepositoryImpl" level="warn"/>
27 <!-- Silence chatty natty -->25 <!-- Silence chatty natty -->
28 <Logger name="com.joestelmach.natty.Parser" level="warn"/>26 <Logger name="com.joestelmach.natty.Parser" level="warn"/>
29 <!-- Silence Kafka log chatter -->27 <!-- Silence Kafka log chatter -->
diff --git a/server.conf b/server.conf
index 02790fb..0c0bf78 100644
--- a/server.conf
+++ b/server.conf
@@ -73,102 +73,110 @@ root_password_sha2 = ROOT_PASSWORD
73# Default is UTC73# Default is UTC
74#root_timezone = UTC74#root_timezone = UTC
7575
76# Set the bin directory here (relative or absolute)
77# This directory contains binaries that are used by the Graylog server.
78# Default: bin
79bin_dir = /snap/graylog/current/usr/share/graylog-server/bin
80
81# Set the data directory here (relative or absolute)
82# This directory is used to store Graylog server state.
83# Default: data
84data_dir = /var/snap/graylog/common
85
76# Set plugin directory here (relative or absolute)86# Set plugin directory here (relative or absolute)
77plugin_dir = /snap/graylog/current/usr/share/graylog-server/plugin87plugin_dir = /snap/graylog/current/usr/share/graylog-server/plugin
7888
79# REST API listen URI. Must be reachable by other Graylog server nodes if you run a cluster.89###############
80# When using Graylog Collectors, this URI will be used to receive heartbeat messages and must be accessible for all collectors.90# HTTP settings
81rest_listen_uri = http://0.0.0.0:9001/api/91###############
92
93#### HTTP bind address
94#
95# The network interface used by the Graylog HTTP interface.
96#
97# This network interface must be accessible by all Graylog nodes in the cluster and by all clients
98# using the Graylog web interface.
99#
100# If the port is omitted, Graylog will use port 9000 by default.
101#
102# Default: 127.0.0.1:9000
103http_bind_address = 127.0.0.1:9000
104#http_bind_address = [2001:db8::1]:9000
82105
83# REST API transport address. Defaults to the value of rest_listen_uri. Exception: If rest_listen_uri106#### HTTP publish URI
84# is set to a wildcard IP address (0.0.0.0) the first non-loopback IPv4 system address is used.107#
85# If set, this will be promoted in the cluster discovery APIs, so other nodes may try to connect on108# The HTTP URI of this Graylog node which is used to communicate with the other Graylog nodes in the cluster and by all
86# this address and it is used to generate URLs addressing entities in the REST API. (see rest_listen_uri)109# clients using the Graylog web interface.
87# You will need to define this, if your Graylog server is running behind a HTTP proxy that is rewriting110#
88# the scheme, host name or URI.111# The URI will be published in the cluster discovery APIs, so that other Graylog nodes will be able to find and connect to this Graylog node.
89# This must not contain a wildcard address (0.0.0.0).112#
90#rest_transport_uri = http://192.168.1.1:9000/api/113# This configuration setting has to be used if this Graylog node is available on another network interface than $http_bind_address,
114# for example if the machine has multiple network interfaces or is behind a NAT gateway.
115#
116# If $http_bind_address contains a wildcard IPv4 address (0.0.0.0), the first non-loopback IPv4 address of this machine will be used.
117# This configuration setting *must not* contain a wildcard address!
118#
119# Default: http://$http_bind_address/
120#http_publish_uri = http://192.168.1.1:9000/
91121
92# Enable CORS headers for REST API. This is necessary for JS-clients accessing the server directly.122#### External Graylog URI
123#
124# The public URI of Graylog which will be used by the Graylog web interface to communicate with the Graylog REST API.
125#
126# The external Graylog URI usually has to be specified, if Graylog is running behind a reverse proxy or load-balancer
127# and it will be used to generate URLs addressing entities in the Graylog REST API (see $http_bind_address).
128#
129# When using Graylog Collector, this URI will be used to receive heartbeat messages and must be accessible for all collectors.
130#
131# This setting can be overriden on a per-request basis with the "X-Graylog-Server-URL" HTTP request header.
132#
133# Default: $http_publish_uri
134#http_external_uri =
135
136#### Enable CORS headers for HTTP interface
137#
138# This is necessary for JS-clients accessing the server directly.
93# If these are disabled, modern browsers will not be able to retrieve resources from the server.139# If these are disabled, modern browsers will not be able to retrieve resources from the server.
94# This is enabled by default. Uncomment the next line to disable it.140# This is enabled by default. Uncomment the next line to disable it.
95#rest_enable_cors = false141#http_enable_cors = false
96142
97# Enable GZIP support for REST API. This compresses API responses and therefore helps to reduce143#### Enable GZIP support for HTTP interface
144#
145# This compresses API responses and therefore helps to reduce
98# overall round trip times. This is enabled by default. Uncomment the next line to disable it.146# overall round trip times. This is enabled by default. Uncomment the next line to disable it.
99#rest_enable_gzip = false147#http_enable_gzip = false
100148
101# Enable HTTPS support for the REST API. This secures the communication with the REST API with149# The maximum size of the HTTP request headers in bytes.
102# TLS to prevent request forgery and eavesdropping. This is disabled by default. Uncomment the150#http_max_header_size = 8192
103# next line to enable it.
104#rest_enable_tls = true
105151
106# The X.509 certificate chain file in PEM format to use for securing the REST API.152# The size of the thread pool used exclusively for serving the HTTP interface.
107#rest_tls_cert_file = /path/to/graylog.crt153#http_thread_pool_size = 16
108154
109# The PKCS#8 private key file in PEM format to use for securing the REST API.155################
110#rest_tls_key_file = /path/to/graylog.key156# HTTPS settings
157################
111158
112# The password to unlock the private key used for securing the REST API.159#### Enable HTTPS support for the HTTP interface
113#rest_tls_key_password = secret160#
161# This secures the communication with the HTTP interface with TLS to prevent request forgery and eavesdropping.
162#
163# Default: false
164#http_enable_tls = true
114165
115# The maximum size of the HTTP request headers in bytes.166# The X.509 certificate chain file in PEM format to use for securing the HTTP interface.
116#rest_max_header_size = 8192167#http_tls_cert_file = /path/to/graylog.crt
168
169# The PKCS#8 private key file in PEM format to use for securing the HTTP interface.
170#http_tls_key_file = /path/to/graylog.key
117171
118# The maximal length of the initial HTTP/1.1 line in bytes.172# The password to unlock the private key used for securing the HTTP interface.
119#rest_max_initial_line_length = 4096173#http_tls_key_password = secret
120174
121# The size of the thread pool used exclusively for serving the REST API.
122#rest_thread_pool_size = 16
123175
124# Comma separated list of trusted proxies that are allowed to set the client address with X-Forwarded-For176# Comma separated list of trusted proxies that are allowed to set the client address with X-Forwarded-For
125# header. May be subnets, or hosts.177# header. May be subnets, or hosts.
126#trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128178#trusted_proxies = 127.0.0.1/32, 0:0:0:0:0:0:0:1/128
127179
128# Enable the embedded Graylog web interface.
129# Default: true
130#web_enable = false
131
132# Web interface listen URI.
133# Configuring a path for the URI here effectively prefixes all URIs in the web interface. This is a replacement
134# for the application.context configuration parameter in pre-2.0 versions of the Graylog web interface.
135web_listen_uri = http://127.0.0.1:9000/
136
137# Web interface endpoint URI. This setting can be overriden on a per-request basis with the X-Graylog-Server-URL header.
138# Default: $rest_transport_uri
139#web_endpoint_uri =
140
141# Enable CORS headers for the web interface. This is necessary for JS-clients accessing the server directly.
142# If these are disabled, modern browsers will not be able to retrieve resources from the server.
143#web_enable_cors = false
144
145# Enable/disable GZIP support for the web interface. This compresses HTTP responses and therefore helps to reduce
146# overall round trip times. This is enabled by default. Uncomment the next line to disable it.
147#web_enable_gzip = false
148
149# Enable HTTPS support for the web interface. This secures the communication of the web browser with the web interface
150# using TLS to prevent request forgery and eavesdropping.
151# This is disabled by default. Uncomment the next line to enable it and see the other related configuration settings.
152#web_enable_tls = true
153
154# The X.509 certificate chain file in PEM format to use for securing the web interface.
155#web_tls_cert_file = /path/to/graylog-web.crt
156
157# The PKCS#8 private key file in PEM format to use for securing the web interface.
158#web_tls_key_file = /path/to/graylog-web.key
159
160# The password to unlock the private key used for securing the web interface.
161#web_tls_key_password = secret
162
163# The maximum size of the HTTP request headers in bytes.
164#web_max_header_size = 8192
165
166# The maximal length of the initial HTTP/1.1 line in bytes.
167#web_max_initial_line_length = 4096
168
169# The size of the thread pool used exclusively for serving the web interface.
170#web_thread_pool_size = 16
171
172# List of Elasticsearch hosts Graylog should connect to.180# List of Elasticsearch hosts Graylog should connect to.
173# Need to be specified as a comma-separated list of valid URIs for the http ports of your elasticsearch nodes.181# Need to be specified as a comma-separated list of valid URIs for the http ports of your elasticsearch nodes.
174# If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that182# If one or more of your elasticsearch hosts require authentication, include the credentials in each node URI that
@@ -242,6 +250,9 @@ web_listen_uri = http://127.0.0.1:9000/
242#250#
243# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these251# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these
244# to your previous 1.x settings so they will be migrated to the database!252# to your previous 1.x settings so they will be migrated to the database!
253# This configuration setting is only used on the first start of Graylog. After that,
254# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
255# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
245rotation_strategy = count256rotation_strategy = count
246257
247# (Approximate) maximum number of documents in an Elasticsearch index before a new index258# (Approximate) maximum number of documents in an Elasticsearch index before a new index
@@ -250,6 +261,9 @@ rotation_strategy = count
250#261#
251# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these262# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these
252# to your previous 1.x settings so they will be migrated to the database!263# to your previous 1.x settings so they will be migrated to the database!
264# This configuration setting is only used on the first start of Graylog. After that,
265# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
266# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
253elasticsearch_max_docs_per_index = 20000000267elasticsearch_max_docs_per_index = 20000000
254268
255# (Approximate) maximum size in bytes per Elasticsearch index on disk before a new index is being created, also see269# (Approximate) maximum size in bytes per Elasticsearch index on disk before a new index is being created, also see
@@ -258,6 +272,9 @@ elasticsearch_max_docs_per_index = 20000000
258#272#
259# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these273# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these
260# to your previous 1.x settings so they will be migrated to the database!274# to your previous 1.x settings so they will be migrated to the database!
275# This configuration setting is only used on the first start of Graylog. After that,
276# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
277# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
261#elasticsearch_max_size_per_index = 1073741824278#elasticsearch_max_size_per_index = 1073741824
262279
263# (Approximate) maximum time before a new Elasticsearch index is being created, also see280# (Approximate) maximum time before a new Elasticsearch index is being created, also see
@@ -273,6 +290,9 @@ elasticsearch_max_docs_per_index = 20000000
273#290#
274# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these291# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these
275# to your previous 1.x settings so they will be migrated to the database!292# to your previous 1.x settings so they will be migrated to the database!
293# This configuration setting is only used on the first start of Graylog. After that,
294# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
295# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
276#elasticsearch_max_time_per_index = 1d296#elasticsearch_max_time_per_index = 1d
277297
278# Disable checking the version of Elasticsearch for being compatible with this Graylog release.298# Disable checking the version of Elasticsearch for being compatible with this Graylog release.
@@ -286,6 +306,9 @@ elasticsearch_max_docs_per_index = 20000000
286#306#
287# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these307# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these
288# to your previous 1.x settings so they will be migrated to the database!308# to your previous 1.x settings so they will be migrated to the database!
309# This configuration setting is only used on the first start of Graylog. After that,
310# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
311# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
289elasticsearch_max_number_of_indices = 20312elasticsearch_max_number_of_indices = 20
290313
291# Decide what happens with the oldest indices when the maximum number of indices is reached.314# Decide what happens with the oldest indices when the maximum number of indices is reached.
@@ -295,11 +318,17 @@ elasticsearch_max_number_of_indices = 20
295#318#
296# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these319# ATTENTION: These settings have been moved to the database in 2.0. When you upgrade, make sure to set these
297# to your previous 1.x settings so they will be migrated to the database!320# to your previous 1.x settings so they will be migrated to the database!
321# This configuration setting is only used on the first start of Graylog. After that,
322# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
323# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
298retention_strategy = delete324retention_strategy = delete
299325
300# How many Elasticsearch shards and replicas should be used per index? Note that this only applies to newly created indices.326# How many Elasticsearch shards and replicas should be used per index? Note that this only applies to newly created indices.
301# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these327# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these
302# to your previous settings so they will be migrated to the database!328# to your previous settings so they will be migrated to the database!
329# This configuration setting is only used on the first start of Graylog. After that,
330# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
331# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
303elasticsearch_shards = 4332elasticsearch_shards = 4
304elasticsearch_replicas = 0333elasticsearch_replicas = 0
305334
@@ -307,6 +336,9 @@ elasticsearch_replicas = 0
307#336#
308# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these337# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these
309# to your previous settings so they will be migrated to the database!338# to your previous settings so they will be migrated to the database!
339# This configuration setting is only used on the first start of Graylog. After that,
340# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
341# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
310elasticsearch_index_prefix = graylog342elasticsearch_index_prefix = graylog
311343
312# Name of the Elasticsearch index template used by Graylog to apply the mandatory index mapping.344# Name of the Elasticsearch index template used by Graylog to apply the mandatory index mapping.
@@ -314,6 +346,9 @@ elasticsearch_index_prefix = graylog
314#346#
315# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these347# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these
316# to your previous settings so they will be migrated to the database!348# to your previous settings so they will be migrated to the database!
349# This configuration setting is only used on the first start of Graylog. After that,
350# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
351# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
317#elasticsearch_template_name = graylog-internal352#elasticsearch_template_name = graylog-internal
318353
319# Do you want to allow searches with leading wildcards? This can be extremely resource hungry and should only354# Do you want to allow searches with leading wildcards? This can be extremely resource hungry and should only
@@ -331,6 +366,9 @@ allow_highlighting = false
331#366#
332# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these367# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these
333# to your previous settings so they will be migrated to the database!368# to your previous settings so they will be migrated to the database!
369# This configuration setting is only used on the first start of Graylog. After that,
370# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
371# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
334elasticsearch_analyzer = standard372elasticsearch_analyzer = standard
335373
336# Global request timeout for Elasticsearch requests (e. g. during search, index creation, or index time-range374# Global request timeout for Elasticsearch requests (e. g. during search, index creation, or index time-range
@@ -352,6 +390,11 @@ elasticsearch_analyzer = standard
352# Default: 1h390# Default: 1h
353#index_ranges_cleanup_interval = 1h391#index_ranges_cleanup_interval = 1h
354392
393# Time interval for the job that runs index field type maintenance tasks like cleaning up stale entries. This doesn't
394# need to run very often.
395# Default: 1h
396#index_field_type_periodical_interval = 1h
397
355# Batch size for the Elasticsearch output. This is the maximum (!) number of messages the Elasticsearch output398# Batch size for the Elasticsearch output. This is the maximum (!) number of messages the Elasticsearch output
356# module will get at once and write to Elasticsearch in a batch call. If the configured batch size has not been399# module will get at once and write to Elasticsearch in a batch call. If the configured batch size has not been
357# reached within output_flush_interval seconds, everything that is available will be flushed at once. Remember400# reached within output_flush_interval seconds, everything that is available will be flushed at once. Remember
@@ -375,8 +418,20 @@ output_fault_penalty_seconds = 30
375processbuffer_processors = 5418processbuffer_processors = 5
376outputbuffer_processors = 3419outputbuffer_processors = 3
377420
421# The following settings (outputbuffer_processor_*) configure the thread pools backing each output buffer processor.
422# See https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadPoolExecutor.html for technical details
423
424# When the number of threads is greater than the core (see outputbuffer_processor_threads_core_pool_size),
425# this is the maximum time in milliseconds that excess idle threads will wait for new tasks before terminating.
426# Default: 5000
378#outputbuffer_processor_keep_alive_time = 5000427#outputbuffer_processor_keep_alive_time = 5000
428
429# The number of threads to keep in the pool, even if they are idle, unless allowCoreThreadTimeOut is set
430# Default: 3
379#outputbuffer_processor_threads_core_pool_size = 3431#outputbuffer_processor_threads_core_pool_size = 3
432
433# The maximum number of threads to allow in the pool
434# Default: 30
380#outputbuffer_processor_threads_max_pool_size = 30435#outputbuffer_processor_threads_max_pool_size = 30
381436
382# UDP receive buffer size for all message inputs (e. g. SyslogUDPInput).437# UDP receive buffer size for all message inputs (e. g. SyslogUDPInput).
@@ -469,6 +524,7 @@ lb_recognition_period_seconds = 3
469mongodb_uri = mongodb://localhost/graylog524mongodb_uri = mongodb://localhost/graylog
470525
471# Authenticate against the MongoDB server526# Authenticate against the MongoDB server
527# '+'-signs in the username or password need to be replaced by '%2B'
472#mongodb_uri = mongodb://grayloguser:secret@localhost:27017/graylog528#mongodb_uri = mongodb://grayloguser:secret@localhost:27017/graylog
473529
474# Use a replica set instead of a single host530# Use a replica set instead of a single host
@@ -484,22 +540,30 @@ mongodb_max_connections = 1000
484# http://api.mongodb.com/java/current/com/mongodb/MongoOptions.html#threadsAllowedToBlockForConnectionMultiplier540# http://api.mongodb.com/java/current/com/mongodb/MongoOptions.html#threadsAllowedToBlockForConnectionMultiplier
485mongodb_threads_allowed_to_block_multiplier = 5541mongodb_threads_allowed_to_block_multiplier = 5
486542
487# Drools Rule File (Use to rewrite incoming log messages)
488# See: http://docs.graylog.org/en/2.1/pages/drools.html
489#rules_file = /etc/graylog/server/rules.drl
490543
491# Email transport544# Email transport
492#transport_email_enabled = false545#transport_email_enabled = false
493#transport_email_hostname = mail.example.com546#transport_email_hostname = mail.example.com
494#transport_email_port = 587547#transport_email_port = 587
495#transport_email_use_auth = true548#transport_email_use_auth = true
496#transport_email_use_tls = true
497#transport_email_use_ssl = true
498#transport_email_auth_username = you@example.com549#transport_email_auth_username = you@example.com
499#transport_email_auth_password = secret550#transport_email_auth_password = secret
500#transport_email_subject_prefix = [graylog]551#transport_email_subject_prefix = [graylog]
501#transport_email_from_email = graylog@example.com552#transport_email_from_email = graylog@example.com
502553
554# Encryption settings
555#
556# ATTENTION:
557# Using SMTP with STARTTLS *and* SMTPS at the same time is *not* possible.
558
559# Use SMTP with STARTTLS, see https://en.wikipedia.org/wiki/Opportunistic_TLS
560#transport_email_use_tls = true
561
562# Use SMTP over SSL (SMTPS), see https://en.wikipedia.org/wiki/SMTPS
563# This is deprecated on most SMTP services!
564#transport_email_use_ssl = true
565
566
503# Specify and uncomment this if you want to include links to the stream in your stream alert mails.567# Specify and uncomment this if you want to include links to the stream in your stream alert mails.
504# This should define the fully qualified base url to your web interface exactly the same way as it is accessed by your users.568# This should define the fully qualified base url to your web interface exactly the same way as it is accessed by your users.
505#transport_email_web_interface_url = https://graylog.example.com569#transport_email_web_interface_url = https://graylog.example.com
@@ -520,14 +584,30 @@ mongodb_threads_allowed_to_block_multiplier = 5
520#http_write_timeout = 10s584#http_write_timeout = 10s
521585
522# HTTP proxy for outgoing HTTP connections586# HTTP proxy for outgoing HTTP connections
587# ATTENTION: If you configure a proxy, make sure to also configure the "http_non_proxy_hosts" option so internal
588# HTTP connections with other nodes does not go through the proxy.
589# Examples:
590# - http://proxy.example.com:8123
591# - http://username:password@proxy.example.com:8123
523#http_proxy_uri =592#http_proxy_uri =
524593
594# A list of hosts that should be reached directly, bypassing the configured proxy server.
595# This is a list of patterns separated by ",". The patterns may start or end with a "*" for wildcards.
596# Any host matching one of these patterns will be reached through a direct connection instead of through a proxy.
597# Examples:
598# - localhost,127.0.0.1
599# - 10.0.*,*.example.com
600#http_non_proxy_hosts =
601
525# Disable the optimization of Elasticsearch indices after index cycling. This may take some load from Elasticsearch602# Disable the optimization of Elasticsearch indices after index cycling. This may take some load from Elasticsearch
526# on heavily used systems with large indices, but it will decrease search performance. The default is to optimize603# on heavily used systems with large indices, but it will decrease search performance. The default is to optimize
527# cycled indices.604# cycled indices.
528#605#
529# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these606# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these
530# to your previous settings so they will be migrated to the database!607# to your previous settings so they will be migrated to the database!
608# This configuration setting is only used on the first start of Graylog. After that,
609# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
610# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
531#disable_index_optimization = true611#disable_index_optimization = true
532612
533# Optimize the index down to <= index_optimization_max_num_segments. A higher number may take some load from Elasticsearch613# Optimize the index down to <= index_optimization_max_num_segments. A higher number may take some load from Elasticsearch
@@ -535,6 +615,9 @@ mongodb_threads_allowed_to_block_multiplier = 5
535#615#
536# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these616# ATTENTION: These settings have been moved to the database in Graylog 2.2.0. When you upgrade, make sure to set these
537# to your previous settings so they will be migrated to the database!617# to your previous settings so they will be migrated to the database!
618# This configuration setting is only used on the first start of Graylog. After that,
619# index related settings can be changed in the Graylog web interface on the 'System / Indices' page.
620# Also see http://docs.graylog.org/en/2.3/pages/configuration/index_model.html#index-set-configuration.
538#index_optimization_max_num_segments = 1621#index_optimization_max_num_segments = 1
539622
540# The threshold of the garbage collection runs. If GC runs take longer than this threshold, a system notification623# The threshold of the garbage collection runs. If GC runs take longer than this threshold, a system notification
@@ -550,18 +633,7 @@ mongodb_threads_allowed_to_block_multiplier = 5
550# The default cache time for dashboard widgets. (Default: 10 seconds, minimum: 1 second)633# The default cache time for dashboard widgets. (Default: 10 seconds, minimum: 1 second)
551#dashboard_widget_default_cache_time = 10s634#dashboard_widget_default_cache_time = 10s
552635
553# Automatically load content packs in "content_packs_dir" on the first start of Graylog.
554#content_packs_loader_enabled = true
555
556# The directory which contains content packs which should be loaded on the first start of Graylog.
557content_packs_dir = /snap/graylog/current/usr/share/graylog-server/contentpacks
558
559# A comma-separated list of content packs (files in "content_packs_dir") which should be applied on
560# the first start of Graylog.
561# Default: empty
562content_packs_auto_load = grok-patterns.json
563
564# For some cluster-related REST requests, the node must query all other nodes in the cluster. This is the maximum number636# For some cluster-related REST requests, the node must query all other nodes in the cluster. This is the maximum number
565# of threads available for this. Increase it, if '/cluster/*' requests take long to complete.637# of threads available for this. Increase it, if '/cluster/*' requests take long to complete.
566# Should be rest_thread_pool_size * average_cluster_size if you have a high number of concurrent users.638# Should be http_thread_pool_size * average_cluster_size if you have a high number of concurrent users.
567proxied_requests_thread_pool_size = 32639proxied_requests_thread_pool_size = 32
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 23a5b23..f46a0af 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -1,5 +1,5 @@
1name: graylog1name: graylog
2version: 2.5.12version: 3.0.1
3summary: Graylog server snap, https://www.graylog.org/3summary: Graylog server snap, https://www.graylog.org/
4description: |4description: |
5 Graylog is a full-featured log management system allowing for centralized5 Graylog is a full-featured log management system allowing for centralized
@@ -25,8 +25,8 @@ parts:
25 graylog-repository:25 graylog-repository:
26 plugin: nil26 plugin: nil
27 build: |27 build: |
28 wget https://packages.graylog2.org/repo/packages/graylog-2.5-repository_latest.deb28 wget https://packages.graylog2.org/repo/packages/graylog-3.0-repository_latest.deb
29 dpkg -i graylog-2.5-repository_latest.deb29 dpkg -i graylog-3.0-repository_latest.deb
30 apt update30 apt update
31 build-packages:31 build-packages:
32 - wget32 - wget

Subscribers

People subscribed via source and target branches