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:
- Open your browser’s developer tools (F12 / fn + F12 or right-clicking and selecting “Inspect”).
- Navigate to the “Network” tab, find the header name for the page with the issue.
- Copy the first
X-Arc-pb-request-id
from the “Headers” details.
2. Run command with request ID
In your terminal:
- Select
pagebuilder
from the product list. - Select
view-logs
as the action. - Paste the copied request ID when prompted.
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.
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:
Cause | Fix |
---|---|
Request is missing the required parameters | Ensure 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:
Cause | Fix |
---|---|
Stale request ID that is outside of the 15 minute window for log retrieval | Refresh your browser and copy the latest request ID |
15 minute TTL (time to live) cache on the article page after a fresh deploy | Append a token to the URL to bypass the cache, and copy the latest request ID |
Security Warning: permissions set to 644
Cause | Fix |
---|---|
Expected permissions are not configured on the .env file in your directory | Run chmod 400 and ensure a read only token is set in the correct environment |