curl --request POST \ --url https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/ \ --header 'x-api-key: YOUR_API_KEY' \ --form '[email protected]' \ --form 'question=Why did the agent stop reporting after the upgrade?'
import requestsurl = "https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/"headers = {"x-api-key": "YOUR_API_KEY"}with open("app.log", "rb") as f: response = requests.post( url, headers=headers, files={"file": ("app.log", f)}, data={"question": "Why did the agent stop reporting after the upgrade?"}, )print(response.status_code, response.json())
{ "msg": "file is required (multipart/form-data)"}
{ "msg": "Log processing is not enabled for this Guru"}
{ "msg": "The file is larger than 50 MB"}
{ "msg": "At most 3 log analyses can run at once for a Guru; wait for one to finish"}
{ "msg": "The analysis could not be queued; try again shortly"}
Endpoints
Log Analysis
Upload a log file and get an analysis report, without asking a question
POST
/
{guru_slug}
/
log-analysis
/
curl --request POST \ --url https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/ \ --header 'x-api-key: YOUR_API_KEY' \ --form '[email protected]' \ --form 'question=Why did the agent stop reporting after the upgrade?'
import requestsurl = "https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/"headers = {"x-api-key": "YOUR_API_KEY"}with open("app.log", "rb") as f: response = requests.post( url, headers=headers, files={"file": ("app.log", f)}, data={"question": "Why did the agent stop reporting after the upgrade?"}, )print(response.status_code, response.json())
{ "msg": "file is required (multipart/form-data)"}
{ "msg": "Log processing is not enabled for this Guru"}
{ "msg": "The file is larger than 50 MB"}
{ "msg": "At most 3 log analyses can run at once for a Guru; wait for one to finish"}
{ "msg": "The analysis could not be queued; try again shortly"}
Upload a log or HAR file and get a report back: an overview, a findings table, a timeline, the likely root cause and next checks. The analysis runs in the background. This endpoint answers 202 at once with a job_id; poll Log Analysis Status for the report.
A log analysis is not a question: it does not appear in analytics and does not count toward the question quota. Its LLM cost is tracked and the Guru’s cost limit applies. The uploaded file is cleared when the job ends, and the job and its report are deleted after 7 days.
Requirements and limits:
Log processing must be enabled for the Guru.
The file must be an uncompressed text log. UTF-8, UTF-16 (with BOM) and Windows-1254 are accepted; compressed or binary files are refused.
The file size limit is the Guru’s log attachment limit (50 MB by default). A .har file uses the HAR limit (50 MB by default, never above 70 MB) and is cleaned before it is stored (header values and cookies removed, secrets masked, static file bodies dropped).
At most 3 analyses can be queued or running for a Guru at once.
Path Parameters
string
required
The slug of the Guru that analyses the log.
Headers
string
required
Your API key for authentication. You can obtain your API key from the Gurubase dashboard.
Body Parameters
Send the request as multipart/form-data.
file
required
The log file to analyse (for example app.log, agent.jsonl or session.har).
string
What to look for in the log, up to 2000 characters. Without it, the analysis finds the errors, failures and anomalies, when they happened, and what most likely caused them.
When the job and its report are deleted (ISO 8601). After this time the status endpoint returns 404.
string
The path to poll for the job’s status, relative to the API host.
curl --request POST \ --url https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/ \ --header 'x-api-key: YOUR_API_KEY' \ --form '[email protected]' \ --form 'question=Why did the agent stop reporting after the upgrade?'
import requestsurl = "https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/"headers = {"x-api-key": "YOUR_API_KEY"}with open("app.log", "rb") as f: response = requests.post( url, headers=headers, files={"file": ("app.log", f)}, data={"question": "Why did the agent stop reporting after the upgrade?"}, )print(response.status_code, response.json())
{ "msg": "file is required (multipart/form-data)"}
{ "msg": "Log processing is not enabled for this Guru"}
{ "msg": "The file is larger than 50 MB"}
{ "msg": "At most 3 log analyses can run at once for a Guru; wait for one to finish"}
{ "msg": "The analysis could not be queued; try again shortly"}
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gurubase","colors":{"primary":"#006BFF","light":"#3389FF","dark":"#006BFF"},"logo":{"light":"https://mintcdn.com/gurubase/0kE9Hd9k_SJDKu8Q/logo/light.svg?fit=max\u0026auto=format\u0026n=0kE9Hd9k_SJDKu8Q\u0026q=85\u0026s=e80be9ea5250513afdd5cac9e9cf40eb","dark":"https://mintcdn.com/gurubase/0kE9Hd9k_SJDKu8Q/logo/dark.svg?fit=max\u0026auto=format\u0026n=0kE9Hd9k_SJDKu8Q\u0026q=85\u0026s=95fad17b670ff55e15b56ec9a86a5e6a"},"favicon":"https://mintcdn.com/gurubase/7wgpr3jQ02zKlT61/favicon.svg?fit=max\u0026auto=format\u0026n=7wgpr3jQ02zKlT61\u0026q=85\u0026s=3c3872b3bfdd7703dfb3c23febfa08dd","api":{"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.gurubase.io/api/v1/"}},"navbar":{"links":[],"primary":{"type":"button","label":"Gurubase.io","href":"https://gurubase.io/"}},"footer":{"socials":{"twitter":"https://x.com/gurubaseio","linkedin":"https://www.linkedin.com/company/gurubase"},"links":[{"header":"Legal","items":[{"label":"Privacy Policy","href":"https://gurubase.io/privacy-policy"},{"label":"Cookie Policy","href":"https://gurubase.io/cookie-policy"}]},{"header":"More","items":[{"label":"Siper (Turkish PII Masking)","href":"https://siper.gurubase.ai/"}]}]},"seo":{"metatags":{"og:site_name":"Gurubase Documentation","og:type":"website","og:locale":"en_US","twitter:card":"summary_large_image","twitter:site":"@gurubaseio","robots":"index, follow","author":"Gurubase","keywords":"AI agents, hallucination-resistant AI, RAG, trust score, citations, agentic actions, MCP, MCP server, MCP client, on-premise AI, enterprise AI, knowledge base, documentation"},"indexing":"navigable"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Try Gurubase","icon":"sparkles","href":"https://gurubase.io/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gurubase","hasAudioNarration":false,"actualSubdomain":"gurubase","customDomains":["docs.gurubase.ai"],"gitSource":{"type":"github","owner":"gurubase","repo":"gurubase-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10ae449ffae5051c3fdaa0"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b13c7ca13ed3bd32f20b71b","clientVersion":"0.0.4458","searchFilterCounts":[{"language":"default","tag":"Documentation","count":47},{"language":"default","tag":"API Reference","count":28},{"language":"default","tag":"Endpoints","count":26},{"language":"default","tag":"Guides","count":25},{"language":"default","tag":"Integrations","count":15},{"language":"default","tag":"Bots","count":7},{"language":"default","tag":"Ingestion","count":6},{"language":"default","tag":"Get Started","count":4},{"language":"default","tag":"Advanced","count":3},{"language":"default","tag":"API Documentation","count":2}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoints/log-analysis","slug":"/api-reference/endpoints/log-analysis","pageMetadata":{"title":"Log Analysis","icon":"file-search","api":"POST /{guru_slug}/log-analysis/","description":"Upload a log file and get an analysis report, without asking a question","href":"/api-reference/endpoints/log-analysis"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Upload a log file and get an analysis report, without asking a question\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,ParamField,ResponseField}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Upload a log or HAR file and get a report back: an overview, a findings table, a timeline, the likely root cause and next checks. The analysis runs in the background. This endpoint answers `,_jsx(_components.code,{children:`202`}),` at once with a `,_jsx(_components.code,{children:`job_id`}),`; poll `,_jsx(_components.a,{href:`/api-reference/endpoints/log-analysis-status`,children:`Log Analysis Status`}),` for the report.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`A log analysis is not a question: it does not appear in analytics and does not count toward the question quota. Its LLM cost is tracked and the Guru’s cost limit applies. The uploaded file is cleared when the job ends, and the job and its report are deleted after 7 days.`})}),`\n`,_jsx(_components.p,{children:`Requirements and limits:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Log processing must be enabled for the Guru.`}),`\n`,_jsx(_components.li,{children:`The file must be an uncompressed text log. UTF-8, UTF-16 (with BOM) and Windows-1254 are accepted; compressed or binary files are refused.`}),`\n`,_jsxs(_components.li,{children:[`The file size limit is the Guru’s log attachment limit (50 MB by default). A `,_jsx(_components.code,{children:`.har`}),` file uses the HAR limit (50 MB by default, never above 70 MB) and is cleaned before it is stored (header values and cookies removed, secrets masked, static file bodies dropped).`]}),`\n`,_jsx(_components.li,{children:`At most 3 analyses can be queued or running for a Guru at once.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`guru_slug`,type:`string`,required:true,id:`param-guru-slug`,children:_jsx(_components.p,{children:`The slug of the Guru that analyses the log.`})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Your API key for authentication. You can obtain your API key from the `,_jsx(_components.a,{href:`https://app.gurubase.io/api-keys`,children:`Gurubase dashboard`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsxs(_components.p,{children:[`Send the request as `,_jsx(_components.code,{children:`multipart/form-data`}),`.`]}),`\n`,_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsxs(_components.p,{children:[`The log file to analyse (for example `,_jsx(_components.code,{children:`app.log`}),`, `,_jsx(_components.code,{children:`agent.jsonl`}),` or `,_jsx(_components.code,{children:`session.har`}),`).`]})}),`\n`,_jsx(ParamField,{body:`question`,type:`string`,id:`param-question`,children:_jsx(_components.p,{children:`What to look for in the log, up to 2000 characters. Without it, the analysis finds the errors, failures and anomalies, when they happened, and what most likely caused them.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`job_id`,type:`string`,id:`param-job-id`,children:_jsxs(_components.p,{children:[`The job’s id (UUID). Use it with `,_jsx(_components.a,{href:`/api-reference/endpoints/log-analysis-status`,children:`Log Analysis Status`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PENDING`}),` right after the upload.`]})}),`\n`,_jsx(ResponseField,{name:`step`,type:`string`,id:`param-step`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`queued`}),` right after the upload.`]})}),`\n`,_jsx(ResponseField,{name:`filename`,type:`string`,id:`param-filename`,children:_jsx(_components.p,{children:`The uploaded file’s name.`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`When the job was created (ISO 8601).`})}),`\n`,_jsx(ResponseField,{name:`expires_at`,type:`string | null`,id:`param-expires-at`,children:_jsx(_components.p,{children:`When the job and its report are deleted (ISO 8601). After this time the status endpoint returns 404.`})}),`\n`,_jsx(ResponseField,{name:`status_url`,type:`string`,id:`param-status-url`,children:_jsx(_components.p,{children:`The path to poll for the job’s status, relative to the API host.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Log Analysis","icon":"file-search","api":"POST /{guru_slug}/log-analysis/","description":"Upload a log file and get an analysis report, without asking a question","href":"/api-reference/endpoints/log-analysis"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Upload a log or HAR file and get a report back: an overview, a findings table, a timeline, the likely root cause and next checks. The analysis runs in the background. This endpoint answers `,_jsx(_components.code,{children:`202`}),` at once with a `,_jsx(_components.code,{children:`job_id`}),`; poll `,_jsx(_components.a,{href:`/api-reference/endpoints/log-analysis-status`,children:`Log Analysis Status`}),` for the report.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`A log analysis is not a question: it does not appear in analytics and does not count toward the question quota. Its LLM cost is tracked and the Guru’s cost limit applies. The uploaded file is cleared when the job ends, and the job and its report are deleted after 7 days.`})}),`\n`,_jsx(_components.p,{children:`Requirements and limits:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Log processing must be enabled for the Guru.`}),`\n`,_jsx(_components.li,{children:`The file must be an uncompressed text log. UTF-8, UTF-16 (with BOM) and Windows-1254 are accepted; compressed or binary files are refused.`}),`\n`,_jsxs(_components.li,{children:[`The file size limit is the Guru’s log attachment limit (50 MB by default). A `,_jsx(_components.code,{children:`.har`}),` file uses the HAR limit (50 MB by default, never above 70 MB) and is cleaned before it is stored (header values and cookies removed, secrets masked, static file bodies dropped).`]}),`\n`,_jsx(_components.li,{children:`At most 3 analyses can be queued or running for a Guru at once.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`guru_slug`,type:`string`,required:true,id:`param-guru-slug`,children:_jsx(_components.p,{children:`The slug of the Guru that analyses the log.`})}),`\n`,_jsx(Heading,{level:`2`,id:`headers`,children:`Headers`}),`\n`,_jsx(ParamField,{header:`x-api-key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Your API key for authentication. You can obtain your API key from the `,_jsx(_components.a,{href:`https://app.gurubase.io/api-keys`,children:`Gurubase dashboard`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`body-parameters`,children:`Body Parameters`}),`\n`,_jsxs(_components.p,{children:[`Send the request as `,_jsx(_components.code,{children:`multipart/form-data`}),`.`]}),`\n`,_jsx(ParamField,{body:`file`,type:`file`,required:true,id:`param-file`,children:_jsxs(_components.p,{children:[`The log file to analyse (for example `,_jsx(_components.code,{children:`app.log`}),`, `,_jsx(_components.code,{children:`agent.jsonl`}),` or `,_jsx(_components.code,{children:`session.har`}),`).`]})}),`\n`,_jsx(ParamField,{body:`question`,type:`string`,id:`param-question`,children:_jsx(_components.p,{children:`What to look for in the log, up to 2000 characters. Without it, the analysis finds the errors, failures and anomalies, when they happened, and what most likely caused them.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`job_id`,type:`string`,id:`param-job-id`,children:_jsxs(_components.p,{children:[`The job’s id (UUID). Use it with `,_jsx(_components.a,{href:`/api-reference/endpoints/log-analysis-status`,children:`Log Analysis Status`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`PENDING`}),` right after the upload.`]})}),`\n`,_jsx(ResponseField,{name:`step`,type:`string`,id:`param-step`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`queued`}),` right after the upload.`]})}),`\n`,_jsx(ResponseField,{name:`filename`,type:`string`,id:`param-filename`,children:_jsx(_components.p,{children:`The uploaded file’s name.`})}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`string`,id:`param-created-at`,children:_jsx(_components.p,{children:`When the job was created (ISO 8601).`})}),`\n`,_jsx(ResponseField,{name:`expires_at`,type:`string | null`,id:`param-expires-at`,children:_jsx(_components.p,{children:`When the job and its report are deleted (ISO 8601). After this time the status endpoint returns 404.`})}),`\n`,_jsx(ResponseField,{name:`status_url`,type:`string`,id:`param-status-url`,children:_jsx(_components.p,{children:`The path to poll for the job’s status, relative to the API host.`})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'x-api-key: YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --form`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '[email protected]'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --form`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'question=Why did the agent stop reporting after the upgrade?'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`13`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`url `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.gurubase.io/api/v1/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{guru_slug}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/log-analysis/\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`with`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` open`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"app.log\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"rb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`as`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` f:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` url,`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`headers,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` files`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"file\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"app.log\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, f)},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"question\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Why did the agent stop reporting after the upgrade?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.status_code, response.json())`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`202`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"job_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"PENDING\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"step\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"queued\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"filename\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"app.log\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-04T14:58:49.120000+00:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"expires_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-12-11T14:58:49.120000+00:00\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"file is required (multipart/form-data)\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`403`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Log processing is not enabled for this Guru\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`413`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The file is larger than 50 MB\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`429`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"At most 3 log analyses can run at once for a Guru; wait for one to finish\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`503`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"msg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"The analysis could not be queued; try again shortly\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Log Analysis","icon":"file-search","api":"POST /{guru_slug}/log-analysis/","description":"Upload a log file and get an analysis report, without asking a question","href":"/api-reference/endpoints/log-analysis"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Headers","slug":"headers","depth":2,"children":[{"title":"Body Parameters","slug":"body-parameters","depth":3,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]}]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"5\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --request\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --url\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.gurubase.io/api/v1/{guru_slug}/log-analysis/\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --header\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'x-api-key: YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --form\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '[email protected]'\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> --form\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'question=Why did the agent stop reporting after the upgrade?'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"13\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">url \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.gurubase.io/api/v1/\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{guru_slug}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/log-analysis/\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"x-api-key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">with\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> open\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"app.log\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"rb\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">as\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> f:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> url,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">headers,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> files\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"file\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: (\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"app.log\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, f)},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> data\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"question\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Why did the agent stop reporting after the upgrade?\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> )\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.status_code, response.json())\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"202","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"job_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"PENDING\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"step\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"queued\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"filename\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"app.log\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"created_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-12-04T14:58:49.120000+00:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"expires_at\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-12-11T14:58:49.120000+00:00\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"/api/v1/{guru_slug}/log-analysis/3f1c2b8e-6a4d-4f0e-9b7a-2d5e8c1a9f30/\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"msg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"file is required (multipart/form-data)\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"403","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"msg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Log processing is not enabled for this Guru\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"413","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"msg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"The file is larger than 50 MB\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"429","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"msg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"At most 3 log analyses can run at once for a Guru; wait for one to finish\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"503","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"msg\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"The analysis could not be queued; try again shortly\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Log Analysis","path":"/{guru_slug}/log-analysis/","servers":[{"url":"https://api.gurubase.io/api/v1/"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"x-api-key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{"x-api-key":{"schema":[{"type":"string","description":"Your API key for authentication. You can obtain your API key from the Gurubase dashboard .","required":true}]}},"cookie":{},"path":{"guru_slug":{"schema":[{"type":"string","description":"The slug of the Guru that analyses the log.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"file":[{"type":"file","description":"The log file to analyse (for example `app.log` , `agent.jsonl` or `session.har` ).","required":true}],"question":[{"type":"string","description":"What to look for in the log, up to 2000 characters. Without it, the analysis finds the errors, failures and anomalies, when they happened, and what most likely caused them."}]}}],"examples":{"example":{"value":{"question":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"job_id":[{"type":"string","description":"The job’s id (UUID). Use it with Log Analysis Status ."}],"status":[{"type":"string","description":"`PENDING` right after the upload."}],"step":[{"type":"string","description":"`queued` right after the upload."}],"filename":[{"type":"string","description":"The uploaded file’s name."}],"created_at":[{"type":"string","description":"When the job was created (ISO 8601)."}],"expires_at":[{"type":"object","properties":{},"description":"When the job and its report are deleted (ISO 8601). After this time the status endpoint returns 404."}],"status_url":[{"type":"string","description":"The path to poll for the job’s status, relative to the API host."}]}}],"examples":{"example":{"value":{"job_id":"\u003cstring>","status":"\u003cstring>","step":"\u003cstring>","filename":"\u003cstring>","created_at":"\u003cstring>","expires_at":{},"status_url":"\u003cstring>"}}}}}},"deprecated":false}},"jsLinks":["/_mintlify/custom/gurubase/12071eb9505de623/gurubase.js"],"subdomain":"gurubase","siteName":"Gurubase","title":"Log Analysis - Gurubase","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-05T08:14:08.581Z","originalFileLocation":"api-reference/endpoints/log-analysis.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Upload a log file and get an analysis report, without asking a question\">\u003cmeta data-mint-head name=\"keywords\" content=\"AI agents, hallucination-resistant AI, RAG, trust score, citations, agentic actions, MCP, MCP server, MCP client, on-premise AI, enterprise AI, knowledge base, documentation\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gurubase\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003cmeta data-mint-head name=\"robots\" content=\"index, follow\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Log Analysis - Gurubase\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload a log file and get an analysis report, without asking a question\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gurubase Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gurubase.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Log+Analysis\u0026amp;description=Upload+a+log+file+and+get+an+analysis+report%2C+without+asking+a+question\u0026amp;theme=735e7d9e0107f50211ecece0\u0026amp;signature=47f3dbe9346cf5ac90a63fcb9e6f64b77513d0f0ca123bb173f0bcc1342c5b4e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Log Analysis - Gurubase\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload a log file and get an analysis report, without asking a question\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gurubase.mintlify.site/_mintlify/api/og/v2?division=Endpoints\u0026amp;title=Log+Analysis\u0026amp;description=Upload+a+log+file+and+get+an+analysis+report%2C+without+asking+a+question\u0026amp;theme=735e7d9e0107f50211ecece0\u0026amp;signature=47f3dbe9346cf5ac90a63fcb9e6f64b77513d0f0ca123bb173f0bcc1342c5b4e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/gurubase/VZQ0YRO71cVM_Oe2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gurubase\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#006BFF\">\u003cmeta data-mint-head name=\"og:locale\" content=\"en_US\">\u003cmeta data-mint-head name=\"author\" content=\"Gurubase\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoints/log-analysis.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.gurubase.ai/#organization\",\"name\":\"Gurubase\",\"url\":\"https://docs.gurubase.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gurubase/0kE9Hd9k_SJDKu8Q/logo/light.svg?fit=max\u0026auto=format\u0026n=0kE9Hd9k_SJDKu8Q\u0026q=85\u0026s=e80be9ea5250513afdd5cac9e9cf40eb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.gurubase.ai#website\",\"name\":\"Gurubase\",\"url\":\"https://docs.gurubase.ai\",\"publisher\":{\"@id\":\"https://docs.gurubase.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis#webpage\",\"url\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis\",\"name\":\"Log Analysis\",\"description\":\"Upload a log file and get an analysis report, without asking a question\",\"dateModified\":\"2026-12-05T08:14:08.581Z\",\"isPartOf\":{\"@id\":\"https://docs.gurubase.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.gurubase.ai/api-reference/endpoints/ask-question\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Log Analysis\",\"item\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis#apireference\",\"headline\":\"Log Analysis\",\"name\":\"Log Analysis\",\"description\":\"Upload a log file and get an analysis report, without asking a question\",\"url\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis\",\"mainEntityOfPage\":{\"@id\":\"https://docs.gurubase.ai/api-reference/endpoints/log-analysis#webpage\"},\"dateModified\":\"2026-12-05T08:14:08.581Z\",\"publisher\":{\"@id\":\"https://docs.gurubase.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.gurubase.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gurubase\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gurubase\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoints/log-analysis.md","siteName":"Gurubase","nav":{"global":{"anchors":[{"anchor":"Try Gurubase","icon":"sparkles","href":"https://gurubase.io/"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","icon":"book-text","pages":[{"title":"API Reference","icon":"book-open","href":"/api-reference/introduction"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"}]},{"group":"Endpoints","icon":"route","pages":[{"title":"Ask Question","icon":"message-circle-question-mark","api":"POST /{guru_slug}/answer/","href":"/api-reference/endpoints/ask-question"},{"title":"Answer Progress","icon":"activity","api":"GET /{guru_slug}/answer-progress/","description":"Read the live progress line for an in-flight answer","href":"/api-reference/endpoints/answer-progress"},{"title":"Log Analysis","icon":"file-search","api":"POST /{guru_slug}/log-analysis/","href":"/api-reference/endpoints/log-analysis"},{"title":"Log Analysis Status","icon":"clipboard-list","api":"GET /{guru_slug}/log-analysis/{job_id}/","description":"Read the status and report of a log analysis job","href":"/api-reference/endpoints/log-analysis-status"},{"title":"Create Data Sources","icon":"folder-plus","api":"POST /{guru_slug}/data-sources/","href":"/api-reference/endpoints/create-datasources"},{"title":"Get Data Sources","icon":"folder","api":"GET /{guru_slug}/data-sources/","href":"/api-reference/endpoints/get-datasources"},{"title":"Delete Data Sources","icon":"trash-2","api":"DELETE /{guru_slug}/data-sources/","href":"/api-reference/endpoints/delete-datasources"},{"title":"Reindex Data Sources","icon":"refresh-cw","api":"POST /{guru_slug}/data-sources/reindex/","href":"/api-reference/endpoints/reindex-datasources"},{"title":"Start Website Crawl","icon":"play","api":"POST /{guru_slug}/crawl/start/","href":"/api-reference/endpoints/crawler-start"},{"title":"Stop Website Crawl","icon":"circle-stop","api":"POST /{guru_slug}/crawl/{crawl_id}/stop/","href":"/api-reference/endpoints/crawler-stop"},{"title":"Get Crawl Status","icon":"activity","api":"GET /{guru_slug}/crawl/{crawl_id}/status/","href":"/api-reference/endpoints/crawler-status"},{"title":"Import YouTube Channel","icon":"https://mintlify.s3.us-west-1.amazonaws.com/gurubase/logo/brands/youtube.svg","api":"POST /youtube/channel/","href":"/api-reference/endpoints/import-youtube-channel"},{"title":"Import YouTube Playlist","icon":"https://mintlify.s3.us-west-1.amazonaws.com/gurubase/logo/brands/youtube.svg","api":"POST /youtube/playlist/","href":"/api-reference/endpoints/import-youtube-playlist"},{"title":"Export Analytics Data","icon":"download","api":"POST /{guru_slug}/analytics/export/","href":"/api-reference/endpoints/analytics-export"},{"title":"Record Vote","icon":"thumbs-up","api":"POST /{guru_type}/record_vote/","href":"/api-reference/endpoints/record-vote"},{"title":"Semantic Search","icon":"search","api":"POST /{guru_slug}/semantic-search/","href":"/api-reference/endpoints/semantic-search"},{"title":"Transcribe Audio","icon":"audio-lines","api":"POST /{guru_type}/transcribe/","href":"/api-reference/endpoints/transcribe-audio"},{"title":"Text-to-Speech Stream","icon":"volume-2","api":"POST /{guru_type}/text-to-speech/stream/","href":"/api-reference/endpoints/text-to-speech"},{"title":"Text-to-Speech Stream V2","icon":"volume-2","api":"POST /{guru_type}/text-to-speech-v2/stream/","href":"/api-reference/endpoints/text-to-speech-v2"},{"title":"List Sessions","icon":"list","api":"POST /{guru_slug}/sessions/","href":"/api-reference/endpoints/list-sessions"},{"title":"Get Session","icon":"eye","api":"POST /sessions/{session_id}/conversation/","href":"/api-reference/endpoints/get-session"},{"title":"Delete Session","icon":"trash-2","api":"DELETE /sessions/{session_id}/delete/","href":"/api-reference/endpoints/delete-session"},{"title":"Get End-User Data","icon":"shield-user","api":"GET /{guru_slug}/end-users/{external_user_id}/data/","href":"/api-reference/endpoints/end-user-data"},{"title":"Erase End-User Data","icon":"shield-x","api":"DELETE /{guru_slug}/end-users/{external_user_id}/data/","href":"/api-reference/endpoints/erase-end-user-data"},{"title":"Follow-up Examples","icon":"message-square-plus","api":"POST /{guru_type}/follow-up/examples/","href":"/api-reference/endpoints/follow-up-examples"},{"title":"Upsert User Profiles","icon":"user-pen","api":"POST /{guru_slug}/profiles/","href":"/api-reference/endpoints/upsert-profiles"}]}]}]},"basePath":"","title":"Log Analysis - Gurubase","deploymentId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","buildId":"dpl_HZVV42MMRSo9WnNHfTGZvby5jph9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BuieBNTB.js","snippetPresets-alIv9Yoc.js","utils-BS41p-Nj.js","style-to-object-BY3JEAdk.js","utils-D0Za9LU_.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-Lx7TZ5XR.js","conditional-requirements-CFM0id0Q.js","cloneDeep-4e5CS5ZI.js","_Uint8Array-B2-W7EM3.js","isObject-FP1Yky1u.js","ApiExamples-sCe6z2hN.js","usePlaygroundInputsStore-cU_dFE5n.js","shallow-BwNCr__O.js","isEqual-Cnvzqd4L.js","CodeSnippets-CMIr49P8.js","CodeSnippet-BC-bKzyy.js","use-playground-group-access-c3bgmn-x.js","Page-Acw_JRP6.js","api-description-markdown-1o8U1kkQ.js","DynamicMarkdown-CvOkzads.js","SectionHeading-CJ97Kdt-.js","MethodPill-DynWltjQ.js","getPastedJson-CBCnXiWl.js","Check2Icon-CPHq_WNu.js","axios-CsQoIw0U.js"]}