# Unable to see console logs in Elastic Synthetics

**URL:** <https://discuss.elastic.co/t/unable-to-see-console-logs-in-elastic-synthetics/337195>\
**Category:** Synthetics\
**Created:** [June 29, 2023, 1:00pm UTC](https://discuss.elastic.co/t/unable-to-see-console-logs-in-elastic-synthetics/337195 "2023-06-29T13:00:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dmitriy.SDET](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@Dmitriy.SDET](https://discuss.elastic.co/u/Dmitriy.SDET)\
**Post date:** [June 29, 2023, 1:00pm UTC](https://discuss.elastic.co/t/unable-to-see-console-logs-in-elastic-synthetics/337195/1 "2023-06-29T13:00:58Z")

</div>

Hello. We are moving our monitors from New Relic to Elastic (as inline journeys). Why can't we see console logs in the "Console" tab? What is this tab for? Should we use something else instead of console.log()?

For example:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/d/adf4e354d9be4c779051c70f3a077a4e0d07a90b.png)

---

<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:** [June 30, 2023, 10:31am UTC](https://discuss.elastic.co/t/unable-to-see-console-logs-in-elastic-synthetics/337195/2 "2023-06-30T10:31:45Z")

</div>

Hello @Dmitriy.SDET , Welcome to Elastic discuss forum.

So the console logs tabs besides code executed tabs only shows console logs from browser page on which script is being executed.

For now we only show logs coming from scripts logs in error details page , if you think it would be useful to show them as part of each step as well . i will suggest open an [enhancement request](https://github.com/elastic/synthetics)

Example of showing scripts logs in error details page, look at bottom table

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/c/8c25bcfa1c8c21eb6a44ddb8a0544a56b67f48e1.png)

Regards

---

<div class="post-metadata">

**Author:** ![Dmitriy.SDET](https://avatars.discourse-cdn.com/v4/letter/d/53a042/32.png) [@Dmitriy.SDET](https://discuss.elastic.co/u/Dmitriy.SDET)\
**Post date:** [June 30, 2023, 10:53am UTC](https://discuss.elastic.co/t/unable-to-see-console-logs-in-elastic-synthetics/337195/3 "2023-06-30T10:53:08Z")

</div>

Test Run Logs - that's enough. Thanks a lot.

---

<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:** [July 10, 2023, 3:43pm UTC](https://discuss.elastic.co/t/unable-to-see-console-logs-in-elastic-synthetics/337195/4 "2023-07-10T15:43:36Z")

</div>

There is a way to trigger logs within browser page via

```auto
    await page.evaluate(() => {
      console.log('hello', 42, { foo: 'bar' }); // Issue console.log inside the page
    });

```

this will be captured per step and reported in the tab you described but only for failed steps.

---

<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:** [August 7, 2023, 3:43pm UTC](https://discuss.elastic.co/t/unable-to-see-console-logs-in-elastic-synthetics/337195/5 "2023-08-07T15:43:53Z")

</div>

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