I have a small elk cluster. 2 elastic nodes, 2 data nodes, one of the data node is also master vote only. One Kibana node, 2 logstash nodes. Every node is a single hyper-v VM.
Everything worked nicely until i start configure TLS/SSL communication, base on this tutorial:
the only thing i did different is the beats input plugin in the logstash .conf file. I replaced it with the udp input plugin, because this used to work before the tls/ssl configuration and i do not use beats. My firewall just sends its logs to the ip adress of my logstashcluster (floating ip) at port 514. Maybe here could be my mistake.
But i started debugging every part of my elk cluster, but i'm stuck now.
Everything seems to be fine, but no new indices are created.
Here are my Configurations
- Frist elastic server (lnxelastic01) .51
elasticsearch.yml
'
network.host: 0.0.0.0
network.publish_host: x.x.x.51
node.name: 192.168.2.51
node.master: true
node.data: false
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 0.0.0.0
network.publish_host: x.x.x.51
discovery.seed_hosts: ["x.x.x.51", "x.x.x.57"]
cluster.initial_master_nodes: ["x.x.x.51", "x.x.x.57"]
xpack.security.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.key: certs/lnxelastic01.key
xpack.security.http.ssl.certificate: certs/lnxelastic01.crt
xpack.security.http.ssl.certificate_authorities: certs/ca.crt
xpack.security.transport.ssl.key: certs/lnxelastic01.key
xpack.security.transport.ssl.certificate: certs/lnxelastic01.crt
xpack.security.transport.ssl.certificate_authorities: certs/ca.crt
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: 93%
cluster.routing.allocation.disk.watermark.high: 95%
'
-
- elastic server (lnxelastic02) .57
'
elasticsearch.yml
cluster.name: es-cluster
node.name: x.x.x.57
node.master: true
node.data: false
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 0.0.0.0
network.publish_host: x.x.x.57
discovery.seed_hosts: ["x.x.x.51", "x.x.x.57"]
cluster.initial_master_nodes: ["x.x.x.51", "x.x.x.57"]
xpack.security.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.key: certs/lnxelastic02.key
xpack.security.http.ssl.certificate: certs/lnxelastic02.crt
xpack.security.http.ssl.certificate_authorities: certs/ca.crt
xpack.security.transport.ssl.key: certs/lnxelastic02.key
xpack.security.transport.ssl.certificate: certs/lnxelastic02.crt
xpack.security.transport.ssl.certificate_authorities: certs/ca.crt
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: 93%
cluster.routing.allocation.disk.watermark.high: 95%
'
- elastic server (lnxelastic02) .57
- tail -f /var/log/elasticsearch/es-cluster.log
'
[2020-10-21T00:00:07,843][INFO ][o.e.c.r.a.AllocationService] [.57] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.monitoring-logstash-7-2020.10.21][0]]]).
[2020-10-21T00:00:09,515][INFO ][o.e.c.m.MetadataCreateIndexService] [.57] [.monitoring-kibana-7-2020.10.21] creating index, cause [auto(bulk api)], templates [.monitoring-kibana], shards [1]/[0]
[2020-10-21T00:00:09,516][INFO ][o.e.c.r.a.AllocationService] [.57] updating number_of_replicas to [1] for indices [.monitoring-kibana-7-2020.10.21]
[2020-10-21T00:00:09,888][INFO ][o.e.c.r.a.AllocationService] [.57] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.monitoring-kibana-7-2020.10.21][0]]]).
[2020-10-21T01:30:00,000][INFO ][o.e.x.m.MlDailyMaintenanceService] [.57] triggering scheduled [ML] maintenance tasks
[2020-10-21T01:30:00,002][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [.57] Deleting expired data
[2020-10-21T01:30:00,003][INFO ][o.e.x.s.SnapshotRetentionTask] [.57] starting SLM retention snapshot cleanup task
[2020-10-21T01:30:00,005][INFO ][o.e.x.s.SnapshotRetentionTask] [.57] there are no repositories to fetch, SLM retention snapshot cleanup task complete
[2020-10-21T01:30:00,022][INFO ][o.e.x.m.a.TransportDeleteExpiredDataAction] [.57] Completed deletion of expired ML data
[2020-10-21T01:30:00,023][INFO ][o.e.x.m.MlDailyMaintenanceService] [.57] Successfully completed [ML] maintenance tasks
' -
- elastic data (lnxelasticdata) .54
'
cluster.name: es-cluster
node.name: x.x.x.54
node.master: false
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
network.host: 0.0.0.0
network.publish_host: x.x.x.54
discovery.seed_hosts: ["x.x.x.51", "x.x.x.57"]
cluster.initial_master_nodes: ["x.x.x.51", "x.x.x.57"]
network.host: 0.0.0.0
network.publish_host: x.x.x..54
xpack.security.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.key: certs/lnxelasticdata.key
xpack.security.http.ssl.certificate: certs/lnxelasticdata.crt
xpack.security.http.ssl.certificate_authorities: certs/ca.crt
xpack.security.transport.ssl.key: certs/lnxelasticdata.key
xpack.security.transport.ssl.certificate: certs/lnxelasticdata.crt
xpack.security.transport.ssl.certificate_authorities: certs/ca.crt
'
- tail -f /var/log/elasticsearch/es-cluster.log
'
[2020-10-20T12:33:45,251][INFO ][o.e.i.s.IndexShard ] [.54] [ilm-history-2-000001][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,257][INFO ][o.e.i.s.IndexShard ] [.54] [.monitoring-es-7-2020.10.17][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,263][INFO ][o.e.i.s.IndexShard ] [.54] [.apm-agent-configuration][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,268][INFO ][o.e.i.s.IndexShard ] [.54] [fortinet-2020.10.13][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,274][INFO ][o.e.i.s.IndexShard ] [.54] [.async-search][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,280][INFO ][o.e.i.s.IndexShard ] [.54] [.monitoring-kibana-7-2020.10.19][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,286][INFO ][o.e.i.s.IndexShard ] [.54] [.monitoring-es-7-2020.10.18][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,321][INFO ][o.e.i.s.IndexShard ] [.54] [fortinet-2020.10.07][0] primary-replica resync completed with 0 operations
[2020-10-20T12:33:45,341][INFO ][o.e.i.s.IndexShard ] [.54] [fortinet-2020.10.12][0] primary-replica resync completed with 0 operations'
-
- elastic data 2 (lnxelasticdata02) .58 (master vote only)
elasticsearch.yml
'
cluster.name: es-cluster
node.name: 192.168.2.58
node.master: true
node.data: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
discovery.seed_hosts: ["192.168.2.51", "192.168.2.57"]
cluster.initial_master_nodes: ["192.168.2.51", "192.168.2.57"]
network.host: 0.0.0.0
discovery.seed_hosts: ["192.168.2.51", "192.168.2.57"]
cluster.initial_master_nodes: ["192.168.2.51", "192.168.2.57"]
xpack.security.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.http.ssl.key: certs/lnxelasticdata02.key
xpack.security.http.ssl.certificate: certs/lnxelasticdata02.crt
xpack.security.http.ssl.certificate_authorities: certs/ca.crt
xpack.security.transport.ssl.key: certs/lnxelasticdata02.key
xpack.security.transport.ssl.certificate: certs/lnxelasticdata02.crt
xpack.security.transport.ssl.certificate_authorities: certs/ca.crt
#-------------- debug -------------------------------------------
#
cluster.routing.allocation.disk.threshold_enabled: true
cluster.routing.allocation.disk.watermark.low: 93%
cluster.routing.allocation.disk.watermark.high: 95%
'
- tail -f /var/log/elasticsearch/es-cluster.log
'
[2020-10-20T12:34:14,684][INFO ][o.e.c.s.ClusterSettings ] [.58] updating [xpack.monitoring.collection.enabled] from [false] to [true]
[2020-10-20T12:34:15,742][INFO ][o.e.x.s.a.TokenService ] [.58] refresh keys
[2020-10-20T12:34:16,542][INFO ][o.e.x.s.a.TokenService ] [.58] refreshed keys
[2020-10-20T12:34:16,602][INFO ][o.e.l.LicenseService ] [.58] license mode [basic] - valid
[2020-10-20T12:34:16,604][INFO ][o.e.x.s.s.SecurityStatusChangeListener] [.58] Active license is now [BASIC]; Security is enabled
[2020-10-20T12:34:16,624][INFO ][o.e.h.AbstractHttpServerTransport] [.58] publish_address {.58:9200}, bound_addresses {[::]:9200}
[2020-10-20T12:34:16,625][INFO ][o.e.n.Node ] [192.168.2.58] started
'