I installed mongodb, opensearch and graylog on Ubuntu. In a VM intended as a single “all-in-one” GrayLog-server
All application seems to run, however when trying to do an initial GrayLog setup, the first screen of setup shows that Graylog does not see the data node (No data nodes have been found). A fatal problem of course.
I have no idea why, I can just remark that most of the documentation is related to elasticsearch.
I sincerely hope someone understand why the datanode is not recognised and what to do to fix that.
Louis
Configuration info (relevant / changed settings)
>> mongod.conf <<
Where and how to store data.
storage:
dbPath: /var/lib/mongodb
engine:
wiredTiger:
where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
network interfaces
net:
port: 27017
bindIp: 127.0.0.1
how the process runs
processManagement:
timeZoneInfo: /usr/share/zoneinfo
>> opensearch.yml <<
cluster.name: graylog
node.name: graylog-data-node
path.logs: /var/log/opensearch
network.host: 0.0.0.0
discovery.type: single_node <<<< System Does not start with this setting !!
cluster.initial_cluster_manager_nodes: [“graylog-data-node”]
action.auto_create_index: false
plugins.security.disabled: true
>> graylog server.conf <<
is_leader = true
node_id_file = /etc/graylog/server/node-id
password_secret =
root_username = admin
root_password_sha2 =
root_timezone = Europe/Amsterdam
bin_dir = /usr/share/graylog-server/bin
data_dir = /var/lib/graylog-server
plugin_dir = /usr/share/graylog-server/plugin
http_bind_address = 192.168.x.y:9000
stream_aware_field_types=false
disabled_retention_strategies = none
allow_leading_wildcard_searches = false
allow_highlighting = false
output_batch_size = 500
output_flush_interval = 1
output_fault_count_threshold = 5
output_fault_penalty_seconds = 30
processbuffer_processors = 5 (to high for my machine, but unchanged for now)
outputbuffer_processors = 3 (to high for my machine, but unchanged for now)
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
lb_recognition_period_seconds = 3
mongodb_uri = mongodb://localhost/graylog
mongodb_max_connections = 250
**>>>>>>> Installed Software <<<<<<<< **
louisb@graylog:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
louisb@graylog:~$
louisb@graylog:~$ dpkg -l | grep -E “.(opensearch|graylog|mongo).”
ii graylog-5.2-repository 1-2 all Package to install Graylog 5.2 GPG key and repository
ii graylog-server 5.2.0-7 amd64 Graylog server
ii mongodb-database-tools 100.9.0 amd64 mongodb-database-tools package provides tools for working with the MongoDB server:
ii mongodb-mongosh 2.0.2 amd64 MongoDB Shell CLI REPL Package
ii mongodb-org 6.0.11 amd64 MongoDB open source document-oriented database system (metapackage)
ii mongodb-org-database 6.0.11 amd64 MongoDB open source document-oriented database system (metapackage)
ii mongodb-org-database-tools-extra 6.0.11 amd64 Extra MongoDB database tools
ii mongodb-org-mongos 6.0.11 amd64 MongoDB sharded cluster query router
ii mongodb-org-server 6.0.11 amd64 MongoDB database server
ii mongodb-org-shell 6.0.11 amd64 MongoDB shell client
ii mongodb-org-tools 6.0.11 amd64 MongoDB tools
ii opensearch 2.11.0 amd64 An open source distributed and RESTful search engine