Hi,
My graylog server was enabled in http but when I configured in https it enabled for 1s and disabled after. I see in my logs and I see that I am told to increase the message_log_max. I did this but it is still disabled.
Thx for your help!
dpkg -l | grep -E β.(elasticsearch|graylog|mongo|java).β
ii ca-certificates-java 20190909 all Common CA certificates (JKS keystore)
ii elasticsearch-oss 7.10.2 amd64 Distributed RESTful search engine built for the cloud
ii graylog-4.3-repository 1-6 all Package to install Graylog 4.3 GPG key and repository
ii graylog-server 4.3.8-1 all Graylog server
ii graylog-sidecar 1.2.0-1 amd64 Graylog collector sidecar
ii graylog-sidecar-repository 1-2 all Package to install Graylog Sidecar GPG key and repository
ii java-common 0.72build2 all Base package for Java runtimes
ii mongodb-database-tools 100.6.0 amd64 mongodb-database-tools package provides tools for working with the MongoDB server:
ii mongodb-mongosh 1.6.0 amd64 MongoDB Shell CLI REPL Package
ii mongodb-org 6.0.2 amd64 MongoDB open source document-oriented database system (metapackage)
ii mongodb-org-database 6.0.2 amd64 MongoDB open source document-oriented database system (metapackage)
ii mongodb-org-database-tools-extra 6.0.2 amd64 Extra MongoDB database tools
ii mongodb-org-mongos 6.0.2 amd64 MongoDB sharded cluster query router
ii mongodb-org-server 6.0.2 amd64 MongoDB database server
ii mongodb-org-shell 6.0.2 amd64 MongoDB shell client
ii mongodb-org-tools 6.0.2
This my server.conf:
is_leader = true
node_id_file = /etc/graylog/server/node-id
password_secret = WNJQ0jsf3lnqS2PVhECKi3vVUbHdjgDg93SfaF6vsMFfd5x1wsseSSOLaUCL9faQTSkoEmjiWQkO2Cgrrc2MzMpP1YzUd1DO
root_username = ad
root_password_sha2 = a757fb1f3d4bb65716a0725707dd28563e47472a2539c307185d7b759d611d68
root_timezone = Europe/Paris
bin_dir = /usr/share/graylog-server/bin
data_dir = /var/lib/graylog-server
plugin_dir = /usr/share/graylog-server/plugin
http_bind_address =graylog-server:9000
http_enable_tls = true
http_tls_cert_file = /etc/ssl/certs/graylog/cert.pem
http_tls_key_file = /etc/ssl/certs/graylog/pkcs8-encrypted.pem
http_tls_key_password = secret
elasticsearch_hosts = http://127.0.0.1:9200
rotation_strategy = count
elasticsearch_max_docs_per_index = 20000000
elasticsearch_max_number_of_indices = 20
retention_strategy = delete
elasticsearch_shards = 4
elasticsearch_replicas = 0
elasticsearch_index_prefix = graylog
allow_leading_wildcard_searches = false
allow_highlighting = false
elasticsearch_analyzer = standard
elasticsearch_index_optimization_timeout = 1h
output_batch_size = 500
output_flush_interval = 1
output_fault_count_threshold = 5
output_fault_penalty_seconds = 30
processbuffer_processors = 5
outputbuffer_processors = 3
processor_wait_strategy = blocking
ring_size = 65536
inputbuffer_ring_size = 65536
inputbuffer_processors = 2
inputbuffer_wait_strategy = blocking
message_journal_enabled = true
message_journal_dir = /var/lib/graylog-server/journal
message_journal_max_size = 100gb
lb_recognition_period_seconds = 3
mongodb_uri = mongodb://localhost:27017/graylog
mongodb_max_connections = 1000
mongodb_threads_allowed_to_block_multiplier = 5
http_connect_timeout = 10s
disable_native_system_stats_collector = true
proxied_requests_thread_pool_size = 32
β graylog-server.service - Graylog server
Loaded: loaded (/lib/systemd/system/graylog-server.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Fri 2023-01-27 15:56:01 UTC; 8s ago
Docs: http://docs.graylog.org/
Process: 134980 ExecStart=/usr/share/graylog-server/bin/graylog-server (code=exited, status=1/FAILURE)
Main PID: 134980 (code=exited, status=1/FAILURE)
CPU: 3.288s
janv. 27 15:56:01 srvlog systemd[1]: graylog-server.service: Consumed 3.288s CPU time.
This my elastisearch.yml:
root@srvlog:/etc/ssl/certs/graylog# cat /etc/elasticsearch/elasticsearch.yml | egrep -v "^\s*(#|$)"
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
network.host: 127.0.0.1
http.port: 9200
cluster.name: graylog
action.auto_create_index: false
discovery.type: single-node
β elasticsearch.service - Elasticsearch
Loaded: loaded (/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2023-01-27 09:32:25 UTC; 6h ago
Docs: https://www.elastic.co
Main PID: 98272 (java)
Tasks: 52 (limit: 4575)
Memory: 1.3G
CPU: 3min 57.602s
CGroup: /system.slice/elasticsearch.service
ββ98272 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.e>
janv. 27 09:32:09 srvlog systemd[1]: Starting Elasticsearch...
janv. 27 09:32:25 srvlog systemd[1]: Started Elasticsearch.
β mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset: enabled)
Active: active (running) since Thu 2022-11-03 15:24:09 UTC; 2 months 24 days ago
Docs: https://docs.mongodb.org/manual
Main PID: 36618 (mongod)
Memory: 181.6M
CPU: 3h 14min 52.287s
CGroup: /system.slice/mongod.service
ββ36618 /usr/bin/mongod --config /etc/mongod.conf
nov. 03 15:24:09 srvlog systemd[1]: Started MongoDB Database Server.