This is on Debian 11
I am trying to get Wazuh-Indexer working with Graylog using this…
as a general guide.
These instructions were created using previous versions of everything so I have ben trying to use the more updated packages.
Wazuh-Indexer 4.4.1-1
MongoDB 6.0.5
Graylog 5.0.7-1
Wazuh-indexer is supposed to be forked from ElasticSearch and Wazuh 4x in particular is using OpenSearch 2.6, So I figured using the installation guide for Graylog 5.0 should work…and it has to a point. However Graylog is not yet accessible. Systemctl shows it is running but /var/log/graylog-server/server.log shows:
2023-05-05T16:03:24.036-03:00 INFO [VersionProbe] Elasticsearch is not available. Retry #147
2023-05-05T16:03:29.039-03:00 ERROR [VersionProbe] Unable to retrieve version from Elasticsearch node: unexpected end of stream on http://xx.xx.xx.xx:9200/… - \n not found: limit=0 content=….
I found a tidbit that suggested commenting out the “compatibility.override_main_response_version: true” line in /etc/wazuh-indexer/opensearch.yml but then the log just shows:
2023-05-05T16:07:15.187-03:00 ERROR [VersionProbe] Unable to retrieve version from Elasticsearch node: unexpected end of stream on http://xx.xx.xx.xx:9200/… - \n not found: limit=0 content=….
2023-05-05T16:07:15.187-03:00 INFO [VersionProbe] Elasticsearch is not available. Retry #2
In either case the Graylog web interface is not accessible.
the /etc/graylog/server/server.conf:
is_leader = true
node_id_file = /etc/graylog/server/node-id
password_secret = Randomized
root_username = admin
root_password_sha2 =Randomized
root_timezone = America/Halifax
bin_dir = /usr/share/graylog-server/bin
data_dir = /var/lib/graylog-server
plugin_dir = /usr/share/graylog-server/plugin
http_bind_address = xx.xx.xx.xx:9000
http_publish_uri = http://xx.xx.xx.xx:9000/
stream_aware_field_types=false
elasticsearch_hosts = http://graylog:####@xx.xx.xx.xx: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
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
lb_recognition_period_seconds = 3
mongodb_uri = mongodb://localhost/graylog
mongodb_max_connections = 1000
and the /etc/wazuh-indexer/opensearch.yml
network.host: “xx.xx.xx.xx”
node.name: “host.fakedom.jk”
cluster.initial_master_nodes:
- “host.fakedom.jk”
discovery.seed_hosts:- “xx.xx.xx.xx”
node.max_local_storage_nodes: “1”
path.data: /var/lib/wazuh-indexer
path.logs: /var/log/wazuh-indexer
bootstrap.memory_lock: true
plugins.security.ssl.http.pemcert_filepath: /etc/wazuh-indexer/certs/cerificate.pem
plugins.security.ssl.http.pemkey_filepath: /etc/wazuh-indexer/certs/certificate-key.pem
plugins.security.ssl.http.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.transport.pemcert_filepath: /etc/wazuh-indexer/certs/certificate.pem
plugins.security.ssl.transport.pemkey_filepath: /etc/wazuh-indexer/certs/certificare-key.pem
plugins.security.ssl.transport.pemtrustedcas_filepath: /etc/wazuh-indexer/certs/root-ca.pem
plugins.security.ssl.http.enabled: true
plugins.security.ssl.transport.enforce_hostname_verification: false
plugins.security.ssl.transport.resolve_hostname: false
plugins.security.authcz.admin_dn:
- “xx.xx.xx.xx”
- “CN=admin,OU=Wazuh,O=Wazuh,L=California,C=US”
plugins.security.check_snapshot_restore_write_privileges: true
plugins.security.enable_snapshot_restore_privilege: true
plugins.security.nodes_dn: - “CN=host,fakedom.jk,OU=Wazuh,O=Wazuh,L=California,C=US”
plugins.security.restapi.roles_enabled: - “all_access”
- “security_rest_api_access”
plugins.security.system_indices.enabled: true
plugins.security.system_indices.indices: [“.plugins-ml-model”, “.plugins-ml-task”, “.opendistro-alerting-config”, “.opendistro-alerting-alert*”, “.opendistro-anomaly-results*”, “.opendistro-anomaly-detector*”, “.opendistro-anomaly-checkpoints”, “.opendistro-anomaly-detection-state”, “.opendistro-reports-", ".opensearch-notifications-”, “.opensearch-notebooks”, “.opensearch-observability”, “.opendistro-asynchronous-search-response*”, “.replication-metadata-store”]
Anyone with any thoughts? Any other information needed to help?
BTW this is the first time I have tried anything like this…not a Linux newbie but far from an expert either. Also a little more comfortable with Ubuntu but the stack walkthrough specified Debian and when I started having trouble one of the things I did was restart using Debian 11 instead.