# Set Kibana index per Kibana space per beat via API

**URL:** <https://discuss.elastic.co/t/set-kibana-index-per-kibana-space-per-beat-via-api/272395>\
**Category:** Kibana\
**Created:** [May 7, 2021, 9:06am UTC](https://discuss.elastic.co/t/set-kibana-index-per-kibana-space-per-beat-via-api/272395 "2021-05-07T09:06:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phlegx](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phlegx/32/14979_2.png) [@phlegx](https://discuss.elastic.co/u/phlegx)\
**Post date:** [May 7, 2021, 9:06am UTC](https://discuss.elastic.co/t/set-kibana-index-per-kibana-space-per-beat-via-api/272395/1 "2021-05-07T09:06:01Z")

</div>

It is possible to set the index per Kibana space for logAlias and metricAlias like this:

```auto
$ curl -X POST http://your-kibana.example.com/s/<space_id>/api/saved_objects/infrastructure-ui-source/default -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d '
{
  "attributes": {
    "logAlias": "my-filebeat-*",
    "metricAlias": "my-metricbeat"
  }
}'

```

What I am missing is the possibility to also set it for other "beats" such as Heartbeat and APM. Is there a way to set it also for those? If yes, how?

if no: will this be implemented at some point in time?

thanks  
Martin

---

<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:** [June 4, 2021, 9:06am UTC](https://discuss.elastic.co/t/set-kibana-index-per-kibana-space-per-beat-via-api/272395/2 "2021-06-04T09:06:06Z")

</div>

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