Hi, we have an ELK stack running (I have no say in which version, which is currently 7.x) to get the logs of our applications running in a Kubernetes cluster all combined in 1 place. The applications are pushing their logs to Logstash.
Logstash's output configuration looks like this:
output {
elasticsearch {
index => "my-test"
hosts => [ "${ES_HOSTS}" ]
user => "${ES_USER}"
password => "${ES_PASSWORD}"
}
}
Logs pushed to logstash do appear in Elasticsearch and are visible in Kibana. We have a Index template configured like this:
{
"template": {
"settings": {
"index": {
"lifecycle": {
"name": "kubernetes_cluster_30-days"
}
}
},
"aliases": {},
"mappings": {}
}
}
The ILM policy kubernetes_cluster_30-days
Is configured (not on 30 days like in the name, but that's for testing) like so:
But I have a feeling the rollover is not happening. We've tried already to use an index with a timestamp in the name, but that doens't rollover either.
I'm sure we're doing something wrong, but we cannot find what. Can you please help us!
Kind regards!