Hi, I'm currently using the ELK stack, and I'm running into this problem quite often. My Logstash config file is looking like this:
input {
file{
path => "/home/me/logs/*.log"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
grok {
match => [
"message", "%{TIMESTAMP_ISO8601:timestamp}\s+(?<typeOfMessage>(\w+))%{GREEDYDATA:message}
]
}
date{
match => ["timestamp", "ISO8601"]
}
}
output {
elasticsearch{
hosts => ["localhost:9200"]
}
}
My problem is that when changing the content of the folder, I refresh the index pattern, and sometimes even restart the services, but the data won't update, even when the previous files were deleted. The tail of my ES log is looking like this:
[2019-05-17T14:49:31,607][INFO ][o.e.l.LicenseService ] [mikael-IPMH110G] license [41ec273f-73ab-466c-a1c0-d6632204e344] mode [basic] - valid
[2019-05-17T14:49:31,623][INFO ][o.e.g.GatewayService ] [mikael-IPMH110G] recovered [3] indices into cluster_state
[2019-05-17T14:49:32,072][INFO ][o.e.c.r.a.AllocationService] [mikael-IPMH110G] Cluster health status changed from [RED] to [YELLOW] (reason: [shards started [[logstash-2019.05.16-000001][0], [.kibana_1][0]] ...]).
[2019-05-17T14:49:33,776][INFO ][o.e.c.m.MetaDataIndexTemplateService] [mikael-IPMH110G] adding template [.management-beats] for index patterns [.management-beats]
[2019-05-17T14:50:01,575][INFO ][o.e.c.r.a.DiskThresholdMonitor] [mikael-IPMH110G] low disk watermark [85%] exceeded on [xY9SrtBKRbyW6z1vAjR9QQ][mikael-IPMH110G][/var/lib/elasticsearch/nodes/0] free: 3.3gb[12%], replicas will not be assigned to this node
[2019-05-17T14:50:31,741][INFO ][o.e.c.r.a.DiskThresholdMonitor] [mikael-IPMH110G] low disk watermark [85%] exceeded on [xY9SrtBKRbyW6z1vAjR9QQ][mikael-IPMH110G][/var/lib/elasticsearch/nodes/0] free: 3.3gb[12%], replicas will not be assigned to this node
[2019-05-17T14:51:01,809][INFO ][o.e.c.r.a.DiskThresholdMonitor] [mikael-IPMH110G] low disk watermark [85%] exceeded on [xY9SrtBKRbyW6z1vAjR9QQ][mikael-IPMH110G][/var/lib/elasticsearch/nodes/0] free: 3.3gb[12%], replicas will not be assigned to this node
[2019-05-17T14:51:31,819][INFO ][o.e.c.r.a.DiskThresholdMonitor] [mikael-IPMH110G] low disk watermark [85%] exceeded on [xY9SrtBKRbyW6z1vAjR9QQ][mikael-IPMH110G][/var/lib/elasticsearch/nodes/0] free: 3.3gb[12%], replicas will not be assigned to this node
[2019-05-17T14:52:01,825][INFO ][o.e.c.r.a.DiskThresholdMonitor] [mikael-IPMH110G] low disk watermark [85%] exceeded on [xY9SrtBKRbyW6z1vAjR9QQ][mikael-IPMH110G][/var/lib/elasticsearch/nodes/0] free: 3.3gb[12%], replicas will not be assigned to this node
But for my understanding, at 85% the data should still update, right?
Is there anything else I should do so the data update?