Reduce the number of elasticsearch indicies that my Django app creates with elastic-apm for Python

I'd like to reduce the amount of indicies that the APM built in to our Django creates, or setting a custom index pattern. I haven't been able to find any setting to do that, and I've not been successful to send the logs to my Logstash server. I'm using the elastic-apm python module, with minimal settings.
Any suggestions?

Kibana version:
Elasticsearch version:
APM Server version:
APM Agent language and version:
elastic-apm with Django 2.1.10. Python 3.7.

Original install method (e.g. download page, yum, deb, from source, etc.) and version:
Elastic Cloud Enterprise

Hi Jonas, welcome to the forum!

You can configure the index name(s) in the APM Server:

What's the reason for reducing the number of indices? Is it because they are sparse, and you want to optimise the index/shard size? If that's the case, you may also be interested in ILM (Index Lifecycle Management) - support for this was added to the APM Server in 7.2:

Thanks, and thanks for the quick reply!

We'll bump the APM server to 7.2 and check that out today. The indicies are sparse and we want to optimise a little, as you said.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.