---
schema_version: "1"
id: 4ba0e8cf95c39e551385c2131170a3ba9796fde5f3563a747c168077d5b182ed
title: Troubleshooting Queries With Response Logs
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/datagraph/troubleshoot-query-logs.md
canonical_url: https://docs.mulesoft.com/datagraph/troubleshoot-query-logs
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 84b3a3b00a9b4194326e932a7aab3e53ad03e772c73a8367bcc5c15c483bd481
description: MuleSoft Documentation Site
latest: true
---
---
product: DataGraph
---

# Troubleshooting Queries With Response Logs

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Anypoint DataGraph provides response logs that contain useful query troubleshooting information.

Response logs contain information about only Anypoint DataGraph queries. Anypoint DataGraph stores
up to 100 MB or up to 30 days of log data, whichever limit is reached first.

If your organization has the Anypoint Integration Advanced package or a Titanium subscription to
Anypoint Platform, this feature provides a higher resource allocation.

For more information on log limits, see
[limits in Anypoint Monitoring](https://docs.mulesoft.com/monitoring/am-faq#titanium-subscription-limits.adoc).

## Log Levels for Anypoint DataGraph Response Logs

Log levels for Anypoint DataGraph include DEBUG, INFO, WARN, and ERROR. Log levels are incremental,
and each level contains the following information:

<table><colgroup><col> <col> <col></colgroup><thead><tr><th>Log level</th><th>Description</th><th>Levels included</th></tr></thead><tbody><tr><td><p>DEBUG</p></td><td><p>Logs information for request headers and request queries</p></td><td><p>All levels</p></td></tr><tr><td><p>INFO</p></td><td><p>Logs information for request queries, response times, and the underlying API URLs requested per field in queries</p></td><td><p>INFO, WARN, and ERROR</p></td></tr><tr><td><p>WARN</p></td><td><p>Lists warning messages</p></td><td><p>INFO, WARN</p></td></tr><tr><td><p>ERROR</p></td><td><p>Lists error messages on invalid queries, timeouts, authentication failures, and payload errors</p></td><td><p>ERROR</p></td></tr></tbody></table>

By default, the log level for each environment is set to INFO. You can change this setting at any
time. Changes to the log level persist for _all future queries to that Anypoint DataGraph instance_,
regardless of the user.

## View Response Logs for an Operation

You must have [the Operate or Admin permission](https://docs.mulesoft.com/datagraph/permissions) to view and search response logs.

If you are a Titanium subscriber, you can also view response logs in
[Anypoint Monitoring](https://docs.mulesoft.com/monitoring/logs).

To view response logs in Anypoint DataGraph:

1.  Write and run an operation.

2.  From the actions menu (**…​**), select **View Response Logs**.

    Response logs for that query are displayed:

    ![Query response logs page](/mulesoft/current/en-us/datagraph/_images/datagraph-qsg-response-logs.png)

## Search Response Logs

Search for logs that contain specified values or search for logs by date and priority.

The **Date & Time** filter enables you to search logs by specifying a date range using the following
values:

- Last hour

- Last 24 hours

- Last week

- Last month

You can also filter searches by priority level:

- All priorities

- INFO

- DEBUG

- WARN

- ERROR

To search existing logs:

1.  Enter a value in the search box, or click Advanced to search for logs for a specified time, day,
    date range, and message priority.

    ![Search fields for query response logs](/mulesoft/current/en-us/datagraph/_images/search-logs.png)

2.  Click **Apply**.

## Additional Resources

- [Troubleshoot Query Performance with Query Tracing](https://docs.mulesoft.com/datagraph/troubleshoot-query-traces)

- [Run Queries and Mutations](https://docs.mulesoft.com/datagraph/query-unified-schema)

## See Also

- [Known Issues](https://help.salesforce.com/s/issues)
