Query SigNoz Audit Logs via MCP or API - Find Changes SigNoz documented two ways to query its audit logs: through the SigNoz MCP Server, which requires version 1.0.1 or later on Self-Hosted SigNoz, and through the Query Range API at POST /api/v5/query_range with a builder_query that sets "signal": "logs" and "source": "audit". The MCP path lets assistants such as Claude, Cursor and Codex answer plain-language questions about workspace changes by calling signoz_search_logs and signoz_aggregate_logs with source="audit", while the API path targets scripts, security tools and scheduled exports. Both paths require a role permitted to read audit logs — the signoz-admin role by default, or a read-only role for integrations that only read audit logs — and the API example returns the 20 most recent audit logs from the last 24 hours. Overview Query audit logs https://signoz.io/docs/audit-logs/overview/ in two ways: - Query via MCP query-via-mcp : Ask questions in plain language from Claude, Cursor, Codex, or another MCP-compatible AI assistant. - Query via API query-via-api : Query audit logs from scripts, security tools, or scheduled exports with the Query Range API. Prerequisites - SigNoz Cloud , or Self-Hosted SigNoz with an active license. - Permission to read audit logs. The signoz-admin role can read audit logs by default. For scripts, integrations, or an MCP connection that only reads audit logs, use a read-only role instead. See Create a read-only role for audit logs create-a-read-only-role-for-audit-logs . - For MCP: an AI assistant connected to the SigNoz MCP Server https://signoz.io/docs/ai/signoz-mcp-server/ signoz-mcp-server v1.0.1 or later on Self-Hosted SigNoz . - For the API examples: jq to format JSON responses. Query via MCP Once your AI assistant is connected to the SigNoz MCP Server https://signoz.io/docs/ai/signoz-mcp-server/ , ask about workspace changes in plain language. MCP queries run with the service account API key you connected with, so that service account needs a role that can read audit logs. On Self-Hosted SigNoz, use signoz-mcp-server v1.0.1 or later. Mention "SigNoz audit logs" and a time range in your prompt so the assistant queries audit logs instead of application logs or current resource lists without a time range, log tools default to the last 1 hour : - "Show the 20 most recent SigNoz audit logs from the last 24 hours." - "Check the SigNoz audit logs for the last 7 days: who deleted a dashboard?" - "Show everything