# Use APM with other indexes

**URL:** <https://discuss.elastic.co/t/use-apm-with-other-indexes/173700>\
**Category:** APM\
**Created:** [March 25, 2019, 9:16am UTC](https://discuss.elastic.co/t/use-apm-with-other-indexes/173700 "2019-03-25T09:16:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![digitalron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/digitalron/32/38224_2.png) [@digitalron](https://discuss.elastic.co/u/digitalron)\
**Post date:** [March 25, 2019, 9:16am UTC](https://discuss.elastic.co/t/use-apm-with-other-indexes/173700/1 "2019-03-25T09:16:27Z")

</div>

Hi all,

I tried looking for references but couldn't find any, any help is appreciated...

Is there a way to point the APM page/view to other similar indexes? The use case is that we'd like to copy specific transactions and spans to a separate index for use in a later analysis, either manually or automatically as a result of ingest processing.

Currently, it seems the APM view can only read from apm-\* but we'd like to copy selected transactions to something like analysis\_apm so that this can be a more long-term index as opposed to apm-\* which we'd apply some ILM on.

Many thanks,

Ronald

---

<div class="post-metadata">

**Author:** ![gil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gil/32/41911_2.png) [@gil](https://discuss.elastic.co/u/gil)\
**Post date:** [March 25, 2019, 2:42pm UTC](https://discuss.elastic.co/t/use-apm-with-other-indexes/173700/2 "2019-03-25T14:42:43Z")

</div>

Hello again @digitalron. Two thoughts for you:

1. [Configure Kibana](https://www.elastic.co/guide/en/kibana/6.6/apm-settings-kb.html) to include those indices, multiple indices can be comma separated eg `apm_oss.transactionIndices: "apm-*,archive-apm-*"`
2. [Alias](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html) any long term indices to match the pattern used by the UI

---

<div class="post-metadata">

**Author:** ![felixbarny](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felixbarny/32/27341_2.png) [@felixbarny](https://discuss.elastic.co/u/felixbarny)\
**Post date:** [March 25, 2019, 6:59pm UTC](https://discuss.elastic.co/t/use-apm-with-other-indexes/173700/3 "2019-03-25T18:59:29Z")

</div>

> [@digitalron](#):
>
> The use case is that we'd like to copy specific transactions and spans to a separate index for use in a later analysis

Seems like you want to store "interesting" traces and delete others. Is that right? We are also thinking about how we can better support use cases like that. Howe would your logic look like which traces you want to store for a longer period?

---

<div class="post-metadata">

**Author:** ![digitalron](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/digitalron/32/38224_2.png) [@digitalron](https://discuss.elastic.co/u/digitalron)\
**Post date:** [March 25, 2019, 7:15pm UTC](https://discuss.elastic.co/t/use-apm-with-other-indexes/173700/4 "2019-03-25T19:15:21Z")

</div>

Hi Gil, thanks for the hints. I'm on commute so I'll try these tomorrow when I get to work.

Hi Felix, that's correct, we'd like to be able to store the "interesting" traces.  
As for workflow, we see two ways:

1. An additional "Actions" entry like "Save" so that we can click on it when we see the trace we'd like to save. It'd be nice to have description and tags fields available for annotating.
2. For the ingest process, we could send a copy of the trace to an arbitrary predetermined, pre-setup index. The trace selection is something we can determine using some pipeline logic (an example is to base it on tags populated by the instrumented app, or thresholds for a particular span/transaction like duration time, etc)

Then, on the APM view, we can select the index we'd like to view, whether it's the "Save Trace" index or the index configured in the ingest (similar to how we can select the index in the Discover or Visualize pages).

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 15, 2019, 3:15pm UTC](https://discuss.elastic.co/t/use-apm-with-other-indexes/173700/5 "2019-04-15T15:15:26Z")

</div>

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