Skip to content

Arc XP CLI: PageBuilder Engine Logs Package

The PageBuilder package pulls Engine logs for a specific request ID. It’s a lightweight, self-service tool built to help you troubleshoot your pages efficiently. The documentation below covers this option.

For deeper analysis—like dashboards, alerts, and full log visibility across environments—you can forward logs to your own AWS instance. See the PageBuilder Engine log forwarding guide for details.

Access Controls

A read-only access token for each environment where you want to view logs is required. You can obtain tokens from Developer Center as described here.

Viewing Logs

Once you have installed the CLI and set up your environment access controls, you can view the PageBuilder Engine logs using the command line. The command will prompt you to enter a request ID, which you can find in your browser console.

1. Copy request ID from browser console

On a page where you are experiencing issues:

  1. Open your browser’s developer tools (F12 / fn + F12 or right-clicking and selecting “Inspect”).
  2. Navigate to the “Network” tab, find the header name for the page with the issue.
  3. Copy the first X-Arc-pb-request-id from the “Headers” details.

PageBuilder Engine Logs Request ID

2. Run command with request ID

In your terminal:

  1. Select pagebuilder from the product list.
  2. Select view-logs as the action.
  3. Paste the copied request ID when prompted.

Arc XP CLI in Terminal

3. View logs

All logs for the provided request ID will be displayed in your terminal. See How to Read Engine Logs for more information on interpreting the logs. PageBuilder Engine Logs in Arc XP CLI

Rate Limits

Throttling is applied to the log retrieval API call: /pagebuilder/api/v1/logsearch

  • The log retrieval call is limited to 40 requests per minute.

CLI Error Reference

Below are common errors you may encounter when using the CLI to retrieve PageBuilder Engine logs, along with their causes and fixes.

API Error (400): Bad Request

If you encounter an API error with a 400 status code:

CauseFix
Request is missing the required parametersEnsure you have provided a valid request ID

No logs found for request_id: {request_id}

If you see this message, no logs were found for the provided request ID. This could be because:

CauseFix
Stale request ID that is outside of the 15 minute window for log retrievalRefresh your browser and copy the latest request ID
15 minute TTL (time to live) cache on the article page after a fresh deployAppend a token to the URL to bypass the cache, and copy the latest request ID

Security Warning: permissions set to 644

CauseFix
Expected permissions are not configured on the .env file in your directoryRun chmod 400 and ensure a read only token is set in the correct environment

Watch the Demo

Play

Arc XP CLI: Troubleshooting Webpage Errors with PageBuilder Engine Logs