How to reduce storage?

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight_smile:

TIP 1: select at least one tag that further categorizes your topic. For example server for APM Server related questions, java for questions regarding the Elastic APM Java agent, or ui for questions about the APM App within Kibana.

TIP 2: Check out the troubleshooting guide first. Not only will it help you to resolve common problems faster but it also explains in more detail which information we need before we can properly help you.

Kibana version: 7.9.1

Elasticsearch version: 7.9

APM Server version: 7.9.2

APM Agent language and version: Java

Browser version: Chrome

Original install method (e.g. download page, yum, deb, from source, etc.) and version: untar 7.9.0

Fresh install or upgraded from other version? Fresh

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
I am trying to reduce the amount of data that spans are storing. I see a lot of ping and DB level calls in trace.

How can i get rid of them with agent level settings?

Hi and welcome to the forum :wave:

You can disable JDBC spans entirely by setting disable_instrumentations=jdbc, but this means you won't see and DB calls.

A more subtle reduction of spans can be achieved through the span_min_duration configuration. It looks like even setting it to 5ms will reduce most of the spans.

This is as far as it goes with agent level. If you want even finer grain filtering, you will need to set an ingestion pipeline filter to discard before it gets to the APM server. Alternatively, if your concern is about storage, you can rely on ILM to manage that.

I hope this helps.

1 Like