Custom index for transaction traces & spans

Hi ,

I am trying to create custom indices for my java agent.
I want my transaction traces to be saved in those indices and not the custom .ds-traces*

For the same , I came across APM>Settings>Indices in the kibana section.
I tried adding below information in the section provided:

The changes are saved successfully but when I perform transactions and check for the cat/indices there's no such index.

I also wanted to understand if the above will create an index or datastream? Since by default the transaction traces and span data are retrieved from the .ds .i.e. data streams. Please correct me if my understanding is wrong.

Please advise what corrective action needs to be taken to make it save successfully.

Best Regards,
Namita Jaokar


There are 2 parts to how Index configuration works in KIbana around APM.

  1. You specify an index where you want to store data.
  2. You specify an index where APM app should read data from.

This setting which you see in the screenshot is the later. By changing this you are telling the APM app that you are already storing data in these new indices and hence these should be used for data retrieval.

I believe for your use case, you want to store data in a different index. For that you need to change the setting in your apm-server.yml file. Here is a topic which can help you with that - Storing APM data in custom/specific indices


does the setting apply in version 8.x? because I tried to apply those settings it doesn't work.

1 Like

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