Hi Folks ,
I have lot of issue with my ELK Stack . This stack is composed of 3 nodes ( Master , Data , Data ) . Logs are populated with the following errors . When I'm trying to make a transform on an index it's failed , I also see some monitoring indexe with red colors on Kibana .
[2021-06-28T10:20:48,267][WARN ][o.e.x.m.e.l.LocalExporter] [es-node-02] unexpected error while indexing monitoring document
org.elasticsearch.xpack.monitoring.exporter.ExportException: RemoteTransportException[[es-node-03][10.205.224.98:9300][indices:data/write/bulk[s]]]; nested: UnavailableShardsException[[.monitoring-es-7-2021.06.28][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.monitoring-es-7-2021.06.28][0]] containing [index {[.monitoring-es-7-2021.06.28][_doc][lqEhUnoBC2Hhzjs8S-go], source[{"cluster_uuid":"eysukA7-R62aU8RgRgA6uQ","timestamp":"2021-06-28T10:19:11.452Z","interval_ms":10000,"type":"node_stats","source_node":{"uuid":"AZCoXzJVRqilE_-BXdmUnw","host":"10.205.224.114","transport_address":"10.205.224.114:9300","ip":"10.205.224.114","name":"es-node-02","timestamp":"2021-06-28T10:19:11.447Z"},"node_stats":{"node_id":"AZCoXzJVRqilE_-BXdmUnw","node_master":false,"mlockall":false,"indices":{"docs":{"count":2015863},"store":{"size_in_bytes":648557047},"indexing":{"index_total":13,"index_time_in_millis":63,"throttle_time_in_millis":0},"search":{"query_total":38,"query_time_in_millis":258},"query_cache":{"memory_size_in_bytes":0,"hit_count":0,"miss_count":36,"evictions":0},"fielddata":{"memory_size_in_bytes":2328,"evictions":0},"segments":{"count":88,"memory_in_bytes":1559424,"terms_memory_in_bytes":659408,"stored_fields_memory_in_bytes":59504,"term_vectors_memory_in_bytes":0,"norms_memory_in_bytes":26944,"points_memory_in_bytes":0,"doc_values_memory_in_bytes":813568,"index_writer_memory_in_bytes":0,"version_map_memory_in_bytes":219,"fixed_bit_set_memory_in_bytes":113472},"request_cache":{"memory_size_in_bytes":4736,"evictions":0,"hit_count":0,"miss_count":3}},"os":{"cpu":{"load_average":{"1m":6.64,"5m":5.95,"15m":5.96}},"cgroup":{"cpuacct":{"control_group":"/system.slice/elasticsearch.service","usage_nanos":77567141859},"cpu":{"control_group":"/system.slice/elasticsearch.service","cfs_period_micros":100000,"cfs_quota_micros":-1,"stat":{"number_of_elapsed_periods":0,"number_of_times_throttled":0,"time_throttled_nanos":0}},"memory":{"control_group":"/system.slice/elasticsearch.service","limit_in_bytes":"9223372036854771712","usage_in_bytes":"36011626496"}}},"process":{"open_file_descriptors":494,"max_file_descriptors":65535,"cpu":{"percent":37}},"jvm":{"mem":{"heap_used_in_bytes":353281920,"heap_used_percent":1,"heap_max_in_bytes":34359738368},"gc":{"collectors":{"young":{"collection_count":5,"collection_time_in_millis":201},"old":{"collection_count":0,"collection_time_in_millis":0}}}},"thread_pool":{"generic":{"threads":4,"queue":0,"rejected":0},"get":{"threads":0,"queue":0,"rejected":0},"management":{"threads":4,"queue":0,"rejected":0},"search":{"threads":13,"queue":0,"rejected":0},"watcher":{"threads":0,"queue":0,"rejected":0},"write":{"threads":0,"queue":0,"rejected":0}},"fs":{"total":{"total_in_bytes":214643507200,"free_in_bytes":40383897600,"available_in_bytes":40383897600},"io_stats":{"total":{"operations":889,"read_operations":100,"write_operations":789,"read_kilobytes":50356,"write_kilobytes":5291}}}}}]}]]];
at org.elasticsearch.xpack.monitoring.exporter.local.LocalBulk.lambda$throwExportException$2(LocalBulk.java:126) ~[x-pack-monitoring-7.13.2.jar:7.13.2]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
Caused by: org.elasticsearch.transport.RemoteTransportException: [es-node-03][10.205.224.98:9300][indices:data/write/bulk[s]]
Caused by: org.elasticsearch.action.UnavailableShardsException: [.monitoring-es-7-2021.06.28][0] primary shard is not active Timeout: [1m], request: [BulkShardRequest [[.monitoring-es-7-2021.06.28][0]] containing [index {[.monitoring-es-7-2021.06.28][_doc][lqEhUnoBC2Hhzjs8S-go], source[{"cluster_uuid":"eysukA7-R62aU8RgRgA6uQ","timestamp":"2021-06-28T10:19:11.452Z","interval_ms":10000,"type":"node_stats","source_node":{"uuid":"AZCoXzJVRqilE_-BXdmUnw","host":"10.205.224.114","transport_address":"10.205.224.114:9300","ip":"10.205.224.114","name":"es-node-02","timestamp":"2021-06-28T10:19:11.447Z"},"node_stats":{"node_id":"AZCoXzJVRqilE_-BXdmUnw","node_master":false,"mlockall":false,"indices":{"docs":{"count":2015863},"store":{"size_in_bytes":648557047},"indexing":{"index_total":13,"index_time_in_millis":63,"throttle_time_in_millis":0},"search":{"query_total":38,"query_time_in_millis":258},"query_cache":{"memory_size_in_bytes":0,"hit_count":0,"miss_count":36,"evictions":0},"fielddata":{"memory_size_in_bytes":2328,"evictions":0},"segments":{"count":88,"memory_in_bytes":1559424,"terms_memory_in_bytes":659408,"stored_fields_memory_in_bytes":59504,"term_vectors_memory_in_bytes":0,"norms_memory_in_bytes":26944,"points_memory_in_bytes":0,"doc_values_memory_in_bytes":813568,"index_writer_memory_in_bytes":0,"version_map_memory_in_bytes":219,"fixed_bit_set_memory_in_bytes":113472},"request_cache":{"memory_size_in_bytes":4736,"evictions":0,"hit_count":0,"miss_count":3}},"os":{"cpu":{"load_average":{"1m":6.64,"5m":5.95,"15m":5.96}},"cgroup":{"cpuacct":{"control_group":"/system.slice/elasticsearch.service","usage_nanos":77567141859},"cpu":{"control_group":"/system.slice/elasticsearch.service","cfs_period_micros":100000,"cfs_quota_micros":-1,"stat":{"number_of_elapsed_periods":0,"number_of_times_throttled":0,"time_throttled_nanos":0}},"memory":{"control_group":"/system.slice/elasticsearch.service","limit_in_bytes":"9223372036854771712","usage_in_bytes":"36011626496"}}},"process":{"open_file_descriptors":494,"max_file_descriptors":65535,"cpu":{"percent":37}},"jvm":{"mem":{"heap_used_in_bytes":353281920,"heap_used_percent":1,"heap_max_in_bytes":34359738368},"gc":{"collectors":{"young":{"collection_count":5,"collection_time_in_millis":201},"old":{"collection_count":0,"collection_time_in_millis":0}}}},"thread_pool":{"generic":{"threads":4,"queue":0,"rejected":0},"get":{"threads":0,"queue":0,"rejected":0},"management":{"threads":4,"queue":0,"rejected":0},"search":{"threads":13,"queue":0,"rejected":0},"watcher":{"threads":0,"queue":0,"rejected":0},"write":{"threads":0,"queue":0,"rejected":0}},"fs":{"total":{"total_in_bytes":214643507200,"free_in_bytes":40383897600,"available_in_bytes":40383897600},"io_stats":{"total":{"operations":889,"read_operations":100,"write_operations":789,"read_kilobytes":50356,"write_kilobytes":5291}}}}}]}]]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.retryBecauseUnavailable(TransportReplicationAction.java:884) ~[elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase.doRun(TransportReplicationAction.java:734) ~[elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:26) ~[elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.action.support.replication.TransportReplicationAction$ReroutePhase$2.onTimeout(TransportReplicationAction.java:844) ~[elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.cluster.ClusterStateObserver$ContextPreservingListener.onTimeout(ClusterStateObserver.java:324) ~[elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.cluster.ClusterStateObserver$ObserverClusterStateListener.onTimeout(ClusterStateObserver.java:241) ~[elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.cluster.service.ClusterApplierService$NotifyTimeout.run(ClusterApplierService.java:590) ~[elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:673) ~[elasticsearch-7.13.2.jar:7.13.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) ~[?:?]
at java.lang.Thread.run(Thread.java:831) ~[?:?]
[2021-06-28T10:20:48,277][WARN ][o.e.x.m.MonitoringService] [es-node-02] monitoring execution failed
org.elasticsearch.xpack.monitoring.exporter.ExportException: failed to flush export bulks
at org.elasticsearch.xpack.monitoring.exporter.ExportBulk$Compound.lambda$doFlush$0(ExportBulk.java:110) [x-pack-monitoring-7.13.2.jar:7.13.2]
at org.elasticsearch.action.ActionListener$1.onFailure(ActionListener.java:142) [elasticsearch-7.13.2.jar:7.13.2]
at org.elasticsearch.xpack.monitoring.exporter.local.LocalBulk.throwExportException(LocalBulk.java:133) [x-pack-monitoring-7.13.2.jar:7.13.2]
at org.elasticsearch.xpack.monitoring.exporter.local.LocalBulk.lambda$doFlush$0(LocalBulk.java:109) [x-pack-monitoring-7.13.2.jar:7.13.2]
Can you please help me to resolve this issue