Unable to see console logs in Elastic Synthetics

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:

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

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

Regards

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

There is a way to trigger logs within browser page via

    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.

1 Like

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