Skip to content

Reduce the noise in schema-manager logs for nominal cases #37164

@houssain-barouni

Description

@houssain-barouni

Description

  • Many INFO logs are useless logs to the end user, and need to be turned to DEBUG logs, example:
2025-08-08 08:00:15.111] [] INFO 
	io.camunda.search.schema.SchemaManager - Index template 'tasklist-task-variable-8.3.0_template', has been created / already exists
[2025-08-08 08:00:15.108] [] INFO 
	io.camunda.search.schema.SchemaManager - Index template 'operate-event-8.3.0_template', has been created / already exists
[2025-08-08 08:00:15.377] [] INFO 
	io.camunda.search.schema.SchemaManager - Index template 'operate-batch-operation-1.0.0_template', has been created / already exists
  • Index template are always created with create=true which causes these logs:
[2025-08-24 18:37:57.948] [] DEBUG
	io.camunda.search.schema.elasticsearch.ElasticsearchEngineClient - index template [tasklist-draft-task-variable-8.3.0_template] already exists
[2025-08-24 18:37:57.959] [] DEBUG
	io.camunda.search.schema.elasticsearch.ElasticsearchEngineClient - Expected to create index [operate-event-8.3.0_], but already exist. Will continue, likely was created by a different instance.
co.elastic.clients.elasticsearch._types.ElasticsearchException: [es/indices.create] failed: [resource_already_exists_exception] index [operate-event-8.3.0_/T0gpoKM8TmG7ulUawe5Yqg] already exists
	at co.elastic.clients.transport.ElasticsearchTransportBase.getApiResponse(ElasticsearchTransportBase.java:349)
	at co.elastic.clients.transport.ElasticsearchTransportBase.performRequest(ElasticsearchTransportBase.java:148)
	at co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient.create(ElasticsearchIndicesClient.java:285)

Steps to reproduce

  • Start C8 with empty schema
  • Observe the logs
  • Restart C8
  • Observe the logs

Current behavior

Less noisy logs about nominal cases

Expected behavior

Less noise in the logs for nominal cases

Environment

SM

Version

  • Component Version: 8.8

Solution ideas

  • use DEBUG logs when it is not useful for the end user
  • check index templates and related indices exist before creating them (as we do for the indices without templates)

Links

Slack discussion

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions