-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Description
Kibana version:
9.1.2
Elasticsearch version:
9.1.2
Server OS version:
Rocky Linux 9
Original install method (e.g. download page, yum, from source, etc.):
kibana/kibana:9.1.2 from docker hub
Describe the bug:
I'm trying the unused URL cleanup feature added recently with #220138
with the config
share:
url_expiration.enabled: true # controls whether the task is enabled
url_expiration.duration: '42d' # controls the expiration threshold
url_expiration.check_interval: '5m' # controls how often the task runs
url_expiration.url_limit: 10000 # controls how many SO should be fetched per task run
logging:
loggers:
- name: plugins.taskManager
appenders: [console]
level: debug
I have a lot of old urls. Every
POST kbn:/internal/unused_urls_task/run
{
"message": "Unused URLs cleanup task has finished.",
"deletedCount": 10000
}
reduces the number reported in the Saved Objects page.
However, no periodic automatic reduction occurs.
Steps to reproduce:
- Have a lot of old enough urls or reduce the
duration. - Configure as above
- Wait for the job to run
Expected behavior:
The task runs every five minutes and reduces the number of old URLs.
With the configured debug logging, I see a lot of output. Every task is reported.
Thus, I would expect to see reports from unusedUrlsCleanupTask.
Probably it is stuck with the default interval of 7 days? I didn't wait that long.
Provide logs and/or server output (if relevant):
GET /api/task_manager/_health lists the Task as idle
somewhere under stats.workload..
"unusedUrlsCleanupTask": {
"count": 1,
"cost": 2,
"status": {
"idle": 1
}
}