# Synthetic Project for Multiple Spaces

**URL:** <https://discuss.elastic.co/t/synthetic-project-for-multiple-spaces/364213>\
**Category:** Elastic Observability\
**Created:** [August 1, 2024, 2:32pm UTC](https://discuss.elastic.co/t/synthetic-project-for-multiple-spaces/364213 "2024-08-01T14:32:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [August 1, 2024, 2:32pm UTC](https://discuss.elastic.co/t/synthetic-project-for-multiple-spaces/364213/1 "2024-08-01T14:32:33Z")

</div>

Hello,

I have synthetic project script where we have multiple journeys file configured to be push to different spaces.

However I couldn't find a way to push for a specific journey script towards assign space.

How do I configure this? How do I point out specific journey for specific space?

Thanks

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [August 1, 2024, 2:52pm UTC](https://discuss.elastic.co/t/synthetic-project-for-multiple-spaces/364213/2 "2024-08-01T14:52:45Z")

</div>

Hello @aisyaharifin ,

Have you tried creating the spaces and organizing your journeys by spaces? This way, you can use the `--space` flag to run Synthetic Monitoring for each space:

- [Use the Synthetics CLI | Elastic Observability [8.14] | Elastic](https://www.elastic.co/guide/en/observability/current/synthetics-command-reference.html)
- [Configure Synthetics projects | Elastic Observability [8.14] | Elastic](https://www.elastic.co/guide/en/observability/current/synthetics-configuration.html#synthetics-configuration-project)

---

<div class="post-metadata">

**Author:** ![aisyaharifin](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@aisyaharifin](https://discuss.elastic.co/u/aisyaharifin)\
**Post date:** [August 1, 2024, 3:10pm UTC](https://discuss.elastic.co/t/synthetic-project-for-multiple-spaces/364213/3 "2024-08-01T15:10:46Z")

</div>

Hello @Alex_Salgado-Elastic ,

Yes I did try that, but as far as i know that works for one space only for a single run. Correct me if Im wrong.

Can we do for multiple spaces for multiple journey in a single run?

 ![Screenshot 2024-08-01 at 11.03.28 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/7/e7b6dccc9bd4ac685dc23c51b63a9aab81167dea.png)

I did try to play around with the project space under synthetic config.

But how do I do if I have multiple journey files under journeys folder that I would like to point out to different space?

I configure the script in a pipeline and would like to ingest in bulk for example we have 100 monitors that we would like to ingest but with different2 space, how do we do this with a single run?

Do I define in my journey script?

 ![Screenshot 2024-08-01 at 11.08.06 PM](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5ebd924ae52c16916cf93ee2fe83de0196eb10b3.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![Alex\_Salgado-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_salgado-elastic/32/103081_2.png) [@Alex\_Salgado-Elastic](https://discuss.elastic.co/u/Alex_Salgado-Elastic)\
**Post date:** [August 1, 2024, 7:29pm UTC](https://discuss.elastic.co/t/synthetic-project-for-multiple-spaces/364213/4 "2024-08-01T19:29:43Z")

</div>

Can you organize the scripts into folders by spaces?

```auto
/synthetics
  ├── space1
  │ ├── journey1.js
  │ └── journey2.js
  ├── space2
  │ ├── journey3.js
  │ └── journey4.js

```

This way, you could create a shell script to run the journeys.
