i installed the template on each individual indexer aswell as the ccs one, then restarted each one, the error still appears. Is it a problem that the default template has these index patterns:
Because when installing the template according to the blog post the template is not changed in any way.
The command "
cat /var/log/wazuh-indexer/wazuh-cluster.log" doesnt work on any indexer as i dont have any indexer clusters installed, a single indexer is used in each environment
2024-12-11T06:44:28.176Z INFO instance/beat.go:645 Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat]
2024-12-11T06:44:28.176Z INFO instance/beat.go:653 Beat ID: 5eac6650-6782-4607-a676-3d696f600934
2024-12-11T06:44:28.176Z INFO [index-management] idxmgmt/std.go:184 Set output.elasticsearch.index to 'filebeat-7.10.2' as ILM is enabled.
2024-12-11T06:44:28.177Z INFO eslegclient/connection.go:99 elasticsearch url: https://<indexer>:9200
2024-12-11T06:44:28.190Z INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.10.2
2025-01-08T07:22:51.365Z INFO instance/beat.go:645 Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat]
2025-01-08T07:22:51.366Z INFO instance/beat.go:653 Beat ID: 39af3f11-45d8-4495-b64c-8abadff93530
2025-01-08T07:22:51.366Z INFO [seccomp] seccomp/seccomp.go:124 Syscall filter successfully installed
2025-01-08T07:22:51.366Z INFO [beat] instance/beat.go:981 Beat info {"system_info": {"beat": {"path": {"config": "/etc/filebeat", "data": "/var/lib/filebeat", "home": "/usr/share/filebeat", "logs": "/var/log/filebeat"}, "type": "filebeat", "uuid": "39af3f11-45d8-4495-b64c-8abadff93530"}}}
2025-01-08T07:22:51.366Z INFO [beat] instance/beat.go:990 Build info {"system_info": {"build": {"commit": "aacf9ecd9c494aa0908f61fbca82c906b16562a8", "libbeat": "7.10.2", "time": "2021-01-12T22:10:33.000Z", "version": "7.10.2"}}}
2025-01-08T07:22:51.366Z INFO [beat] instance/beat.go:993 Go runtime info {"system_info": {"go": {"os":"linux","arch":"amd64","max_procs":8,"version":"go1.14.12"}}}
2025-01-08T07:22:51.367Z INFO [beat] instance/beat.go:997 Host info {"system_info": {"host": {"architecture":"x86_64","boot_time":"2024-11-29T10:21:43Z","containerized":false,"name":"hswazuhserver","ip":["
127.0.0.1/8","::1/128","<server>/24","fe80::20c:29ff:fe68:6dd2/64"],"kernel_version":"5.15.0-94-generic","mac":["00:0c:29:68:6d:d2"],"os":{"family":"debian","platform":"ubuntu","name":"Ubuntu","version":"22.04.4 LTS (Jammy Jellyfish)","major":22,"minor":4,"patch":4,"codename":"jammy"},"timezone":"UTC","timezone_offset_sec":0,"id":"092b27f0cecc495ca2f6a10158618b3f"}}}
2025-01-08T07:22:51.367Z INFO [beat] instance/beat.go:1026 Process info {"system_info": {"process": {"capabilities": {"inheritable":null,"permitted":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40"],"effective":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40"],"bounding":["chown","dac_override","dac_read_search","fowner","fsetid","kill","setgid","setuid","setpcap","linux_immutable","net_bind_service","net_broadcast","net_admin","net_raw","ipc_lock","ipc_owner","sys_module","sys_rawio","sys_chroot","sys_ptrace","sys_pacct","sys_admin","sys_boot","sys_nice","sys_resource","sys_time","sys_tty_config","mknod","lease","audit_write","audit_control","setfcap","mac_override","mac_admin","syslog","wake_alarm","block_suspend","audit_read","38","39","40"],"ambient":null}, "cwd": "/", "exe": "/usr/share/filebeat/bin/filebeat", "name": "filebeat", "pid": 544001, "ppid": 1, "seccomp": {"mode":"filter","no_new_privs":true}, "start_time": "2025-01-08T07:22:50.930Z"}}}
2025-01-08T07:22:51.367Z INFO instance/beat.go:299 Setup Beat: filebeat; Version: 7.10.2
2025-01-08T07:22:51.368Z INFO eslegclient/connection.go:99 elasticsearch url: https://<indexer>:9200
2025-01-08T07:22:51.368Z INFO [publisher] pipeline/module.go:113 Beat name: hswazuhserver
2025-01-08T07:22:51.369Z INFO beater/filebeat.go:117 Enabled modules/filesets: wazuh (alerts), ()
2025-01-08T07:22:51.369Z INFO instance/beat.go:455 filebeat start running.
2025-01-08T07:22:51.369Z INFO memlog/store.go:119 Loading data file of '/var/lib/filebeat/registry/filebeat' succeeded. Active transaction id=0
2025-01-08T07:22:51.396Z INFO memlog/store.go:124 Finished loading transaction log file for '/var/lib/filebeat/registry/filebeat'. Active transaction id=2067
2025-01-08T07:22:51.396Z INFO [registrar] registrar/registrar.go:109 States Loaded from registrar: 1
2025-01-08T07:22:51.396Z INFO [crawler] beater/crawler.go:71 Loading Inputs: 1
2025-01-08T07:22:51.396Z INFO log/input.go:157 Configured paths: [/var/ossec/logs/alerts/alerts.json]
2025-01-08T07:22:51.396Z INFO [crawler] beater/crawler.go:141 Starting input (ID: 9132358592892857476)
2025-01-08T07:22:51.396Z INFO [crawler] beater/crawler.go:108 Loading and starting Inputs completed. Enabled inputs: 1
2025-01-08T07:22:51.396Z INFO log/harvester.go:302 Harvester started for file: /var/ossec/logs/alerts/alerts.json
2025-01-08T07:22:52.397Z INFO [publisher_pipeline_output] pipeline/output.go:143 Connecting to backoff(elasticsearch(https://<indexer>:9200))
2025-01-08T07:22:52.397Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2025-01-08T07:22:52.397Z INFO [publisher] pipeline/retry.go:223 done
2025-01-08T07:22:52.408Z INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.10.2
2025-01-08T07:22:52.408Z INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.10.2
2025-01-08T07:22:52.409Z INFO template/load.go:97 Template wazuh already exists and will not be overwritten.
2025-01-08T07:22:52.409Z INFO [index-management] idxmgmt/std.go:298 Loaded index template.
2025-01-08T07:22:52.411Z INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(elasticsearch(https://<indexer>:9200)) established
2025-01-09T00:00:02.544Z INFO log/harvester.go:302 Harvester started for file: /var/ossec/logs/alerts/alerts.json
2025-01-09T00:05:07.757Z INFO log/harvester.go:333 File is inactive: /var/ossec/logs/alerts/alerts.json. Closing because close_inactive of 5m0s reached.
2025-01-10T00:00:04.162Z INFO log/harvester.go:302 Harvester started for file: /var/ossec/logs/alerts/alerts.json
2025-01-10T00:05:08.108Z INFO log/harvester.go:333 File is inactive: /var/ossec/logs/alerts/alerts.json. Closing because close_inactive of 5m0s reached.
2025-01-10T10:05:40.809Z ERROR [elasticsearch] elasticsearch/client.go:224 failed to perform any bulk index operations: Post "https://<indexer>:9200/_bulk": dial tcp <indexer>:9200: connect: connection refused
2025-01-10T10:05:40.809Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2025-01-10T10:05:40.809Z INFO [publisher] pipeline/retry.go:223 done
2025-01-10T10:05:42.392Z ERROR [publisher_pipeline_output] pipeline/output.go:180 failed to publish events: Post "https://<indexer>:9200/_bulk": dial tcp <indexer>:9200: connect: connection refused
2025-01-10T10:05:42.392Z INFO [publisher_pipeline_output] pipeline/output.go:143 Connecting to backoff(elasticsearch(https://<indexer>:9200))
2025-01-10T10:05:42.392Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2025-01-10T10:05:42.393Z INFO [publisher] pipeline/retry.go:223 done
2025-01-10T10:05:44.969Z ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(elasticsearch(https://<indexer>:9200)): Get "https://<indexer>:9200": dial tcp <indexer>:9200: connect: connection refused
2025-01-10T10:05:44.969Z INFO [publisher_pipeline_output] pipeline/output.go:145 Attempting to reconnect to backoff(elasticsearch(https://<indexer>:9200)) with 1 reconnect attempt(s)
2025-01-10T10:05:44.969Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2025-01-10T10:05:44.969Z INFO [publisher] pipeline/retry.go:223 done
2025-01-10T10:05:51.959Z ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(elasticsearch(https://<indexer>:9200)): Get "https://<indexer>:9200": dial tcp <indexer>:9200: connect: connection refused
2025-01-10T10:05:51.959Z INFO [publisher_pipeline_output] pipeline/output.go:145 Attempting to reconnect to backoff(elasticsearch(https://<indexer>:9200)) with 2 reconnect attempt(s)
2025-01-10T10:05:51.959Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2025-01-10T10:05:51.960Z INFO [publisher] pipeline/retry.go:223 done
2025-01-10T10:06:05.243Z ERROR [publisher_pipeline_output] pipeline/output.go:154 Failed to connect to backoff(elasticsearch(https://<indexer>:9200)): 503 Service Unavailable: OpenSearch Security not initialized.
2025-01-10T10:06:05.244Z INFO [publisher_pipeline_output] pipeline/output.go:145 Attempting to reconnect to backoff(elasticsearch(https://<indexer>:9200)) with 3 reconnect attempt(s)
2025-01-10T10:06:05.244Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2025-01-10T10:06:05.244Z INFO [publisher] pipeline/retry.go:223 done
2025-01-10T10:06:05.579Z INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.10.2
2025-01-10T10:06:05.589Z INFO template/load.go:97 Template wazuh already exists and will not be overwritten.
2025-01-10T10:06:05.589Z INFO [index-management] idxmgmt/std.go:298 Loaded index template.
2025-01-10T10:06:05.591Z INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(elasticsearch(https://<indexer>:9200)) established
2024-12-11T06:39:46.111Z INFO instance/beat.go:645 Home path: [/usr/share/filebeat] Config path: [/etc/filebeat] Data path: [/var/lib/filebeat] Logs path: [/var/log/filebeat]
2024-12-11T06:39:46.111Z INFO instance/beat.go:653 Beat ID: 79df3468-852c-4d08-b616-7cb3134cd5c7
2024-12-11T06:39:46.111Z INFO [index-management] idxmgmt/std.go:184 Set output.elasticsearch.index to 'filebeat-7.10.2' as ILM is enabled.
2024-12-11T06:39:46.112Z INFO eslegclient/connection.go:99 elasticsearch url: https://<indexer>:9200
2024-12-11T06:39:46.139Z INFO [esclientleg] eslegclient/connection.go:314 Attempting to connect to Elasticsearch version 7.10.2
It seems there is a problem with server 2, is it related to the index template issue?