Skip to main content
All CollectionsBuild your first AI Agent
Troubleshooting and Support
Troubleshooting and Support

Accessing and Sharing Error Logs for Troubleshooting

Updated over a week ago

๐Ÿ’ก If you receive an error, please contact your CSM to get dedicated support

Accessing error logs

When encountering issues with your Snowflake AI Agents, error logs can provide valuable information for diagnosis and resolution.

After retrieving these logs, you can share them with our support team to expedite the troubleshooting process.

Follow these steps to retrieve the application error logs:

1) Navigate to Data Products > Apps > Snowflake AI Agents > Events and Logs

2) Click on View Logs


3) In the SQL query, make the following modifications:

  • Replace snow.application.name with snow.database.name.

  • Add a filter for errors and limit the results

AND value like '%[ERROR]%'
ORDER BY TIMESTAMP DESC LIMIT 100;

Here's an example of how your modified SQL query might look:

SELECT
TIMESTAMP as time,
RESOURCE_ATTRIBUTES['snow.executable.name'] as executable,
RECORD['severity_text'] as severity,
VALUE as message
FROM
"LANG"."DATA_SCHEMA"."EVENTS"
WHERE RESOURCE_ATTRIBUTES['snow.database.name'] = 'LANGAI_APP'
AND value like '%[ERROR]%'ORDER BY TIMESTAMP DESC LIMIT 100;

Note: The database name ('LANGAI_APP' in this example) may differ in your environment. It should be adjusted automatically when clicking on View Logs.

Checking your application version

To ensure you're using the latest version of our application, follow these steps:

1) Open your Snowflake worksheet or console.

2) Run the following SQL query:

SHOW APPLICATIONS

3) In the results, locate the row for our application.

4) Check the label and patch columns to identify your installed version.

If you need help updating your application, please contact our support team.

Did this answer your question?