I’m working with Synthetic monitors (Browser / JavaScript steps) and I’m trying to understand where logs generated via JavaScript APIs are actually visible.
In my JavaScript step I’m using:
api.info()
api.warn()
api.error()
What I tried so far
DQL
fetch dt.synthetic.events
→ Events are returned, but there is no column with the log message from api.info / warn / error.
fetch dt.synthetic.detailed_events
→ This returns no data at all for my monitor executions.
However, when I navigate there, I’m redirected to the MDA-based execution details view, and I don’t see any section that contains the messages written via api.info / warn / error.
Questions
Where are the messages from api.info(), api.warn(), and api.error() actually stored?
Are they:
available via DQL, and if yes – which entity/table?
visible only in a specific UI view?
Is this behavior different for:
Browser monitors vs HTTP monitors?
Classic Synthetic vs MDA-based Synthetic?
At the moment I can trigger failures and events successfully, but I can’t find the actual log-style messages anywhere, neither in DQL nor in the UI.
Besides clickpath replay using the browser extension, I don’t think I’ve seen those anywhere else. But definitely, this is a very good question. Maybe @HannahM knows?
Along these lines, I’d like to be able to ingest the execution logs from my public synthetics as well as private. My private synthetic ActiveGates have OneAgents installed on them so I can ingest any of the logs I wish. However the public synthetics (which is the bulk of what we use) I don’t have access to the logs.
I confirmed with the architect that surfacing custom log lines for Browser Monitors in DQL is something we would like to do, but it’s not currently in the roadmap.
Yeah, unfortunately, only Support has access to the public Browser monitor logs. I would expect the solution to provide information for private locations, as well as offer it for public places. But no date yet.
You can use JavaScript events to send a fetch request to an API to update something, like a metric, but I realise it’s another place to check etc. There’s an example of using a JavaScript event to send a fetch request here
Has there been an update with regard to adding support for custom log lines in DQL? We have some Synthetic HTTP monitors which employ api.fail() to add descriptive error messages but there is currently no way to see those messages within Problems or Events via DQL queries. That is a frustrating issue for our end users.