# Does anyone know about unique identifiers for synthetic multipage journey?

**URL:** <https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213>\
**Category:** Synthetics\
**Created:** [December 13, 2023, 4:08am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213 "2023-12-13T04:08:22Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![surya\_dadi\_dhamarake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surya_dadi_dhamarake/32/133245_2.png) [@surya\_dadi\_dhamarake](https://discuss.elastic.co/u/surya_dadi_dhamarake)\
**Post date:** [December 13, 2023, 4:08am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/1 "2023-12-13T04:08:22Z")

</div>

Hi Team,

I have a deployment in elastic cloud where I need to create multi page synthetic journey but as the web application is deployed in AWS, we have cloudflare which is blocking unwanted requests and it is blocking the synthetics journey also. May I know if it has any unique identifiers which can identify this request or any other way to complete the journey?

Note: I was trying to access public domain only.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [December 13, 2023, 11:07am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/2 "2023-12-13T11:07:27Z")

</div>

Hi @surya_dadi_dhamarake,

Just a heads up that I've changed the topic of your question to Synthetics to ensure it's picked up correctly.

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [December 13, 2023, 2:00pm UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/3 "2023-12-13T14:00:46Z")

</div>

Hello, @surya_dadi_dhamarake we append string `Elastic/Synthetics` to user agent , maybe you can use that to unblock  
Example being.

`Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/117.0.5938.62 Safari/537.36 Elastic/Synthetics`

I hope this help.  
Regards

---

<div class="post-metadata">

**Author:** ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)\
**Post date:** [December 13, 2023, 2:27pm UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/4 "2023-12-13T14:27:34Z")

</div>

If you are looking to whitelist Elastic IP addresses which are used in Synthetics service, that is documented here [Use Synthetics with traffic filters | Elastic Observability [8.11] | Elastic](https://www.elastic.co/guide/en/observability/current/synthetics-traffic-filters.html)

---

<div class="post-metadata">

**Author:** ![surya\_dadi\_dhamarake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surya_dadi_dhamarake/32/133245_2.png) [@surya\_dadi\_dhamarake](https://discuss.elastic.co/u/surya_dadi_dhamarake)\
**Post date:** [December 13, 2023, 3:35pm UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/5 "2023-12-13T15:35:10Z")

</div>

Hi @shahzad31 ,

Are those IP addresses unique per deployment and static? if those are public IP addresses which may allocate to other org also, then we cannot use whitelisting IP addresses or ranges. Can you please confirm? I will check on the ELastic/Synthetics string at the end of the request.

Thanks

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [December 13, 2023, 10:42pm UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/6 "2023-12-13T22:42:14Z")

</div>

They are shared with other users. You could set a custom header for your tests however by setting the `extraHTTPHeaders` playwright option in your `synthetics.config.ts`. It looks like this:

```typescript

export default env => {
  const config: SyntheticsConfig = {
    playwrightOptions: {
      extraHTTPHeaders: {
         // use whichever headers would work for your setup
        "X-My-Header": "My-Value"
      }
    },
   // rest of your config...
}

```

---

<div class="post-metadata">

**Author:** ![surya\_dadi\_dhamarake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surya_dadi_dhamarake/32/133245_2.png) [@surya\_dadi\_dhamarake](https://discuss.elastic.co/u/surya_dadi_dhamarake)\
**Post date:** [December 14, 2023, 5:18am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/7 "2023-12-14T05:18:15Z")

</div>

Hi @Andrew_Cholakian1 ,

Where can I give those headers? I cannot find synthetics.config.ts option in kibana. Can you please give me the steps to add this config for elastic cloud deployment?

I am only seeing below option in kibana.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/2/3/232e90e7917693f57d178661ae137883db4588e6.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [December 14, 2023, 10:53am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/8 "2023-12-14T10:53:42Z")

</div>

Hi @surya_dadi_dhamarake,

Per @Andrew_Cholakian1's steps the headers can be specified in the _Playwright options_ section that you have in your screenshot.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![surya\_dadi\_dhamarake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surya_dadi_dhamarake/32/133245_2.png) [@surya\_dadi\_dhamarake](https://discuss.elastic.co/u/surya_dadi_dhamarake)\
**Post date:** [December 14, 2023, 10:56am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/9 "2023-12-14T10:56:25Z")

</div>

So that means, I should only add this block in the playwright options.

> [@Andrew\_Cholakian1](#):
>
> ```auto
> {
> extraHTTPHeaders: {
> // use whichever headers would work for your setup
> "X-My-Header": "My-Value"
> }
> }
> 
> ```

---

<div class="post-metadata">

**Author:** ![surya\_dadi\_dhamarake](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/surya_dadi_dhamarake/32/133245_2.png) [@surya\_dadi\_dhamarake](https://discuss.elastic.co/u/surya_dadi_dhamarake)\
**Post date:** [December 14, 2023, 11:05am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/10 "2023-12-14T11:05:30Z")

</div>

Thanks @carly.richmond & @Andrew_Cholakian1 , That works. I can see my custom headers in the request.

---

<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:** [January 11, 2024, 11:06am UTC](https://discuss.elastic.co/t/does-anyone-know-about-unique-identifiers-for-synthetic-multipage-journey/349213/11 "2024-01-11T11:06:08Z")

</div>

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