hello everybody,
I am setting up ILM and I am having an error in kibana dashboards: Saved "field" parameter is now invalid. Please select a new field.
here are the steps that I followed:
Create ILM policy:
PUT _ilm/policy/hot-warm-cold-delete-60days-policy
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_size":"20gb",
"max_age":"30d"
},
"set_priority": {
"priority": 50
}
}
},
"warm": {
"actions": {
"forcemerge": {
"max_num_segments": 1
},
"shrink": {
"number_of_shards": 1
},
"allocate": {
"require": {
"data": "warm"
}
},
"set_priority": {
"priority": 25
}
}
},
"cold": {
"min_age": "30d",
"actions": {
"set_priority": {
"priority": 0
},
"freeze": {},
"allocate": {
"require": {
"data": "cold"
}
}
}
},
"delete": {
"min_age": "60d",
"actions": {
"delete": {}
}
}
}
}
}
Create a template:
PUT _template/winlogbeat
{
"index_patterns": ["winlogbeat-*"],
"settings": {
"number_of_shards": 40,
"number_of_replicas": 1,
"index.lifecycle.name": "hot-warm-cold-delete-60days-policy",
"index.lifecycle.rollover_alias": "winlogbeat"
}
}
Bootstrap the first index:
PUT winlogbeat-000001
{
"aliases": {
"winlogbeat": {
"is_write_index": true
}
}
}
Winlogbeat.yml configuration:
setup.ilm.enabled: auto
setup.ilm.rollover_alias: "winlogbeat"
setup.ilm.pattern: "000001"
setup.ilm.policy_name: "hot-warm-cold-delete-60days-policy"
setup.template.name: "winlogbeat"
setup.template.pattern: "winlogbeat-*"
setup.template.overwrite: true
setup.template.settings:
index.number_of_shards: 40
index.number_of_replicas: 1
run Winlogbeat:
.\winlogbeat.exe setup -e
Start-Service winlogbeat
could someone tell me where is the mistake here please !!
thanks !