Sets up the workspace’s S3 log export, or changes its destination or schedule, as Log Export in workspace settings does. Each attempt, including a refused or invalid one, is recorded in the workspace audit log with its outcome and the API key, or the person and connected app, that made it. Requests rejected before they reach the operation, such as malformed requests, invalid credentials and rate-limited requests, may have no entry. The audit log shows the role ARN redacted.Before saving, Macroscope verifies S3 access: it assumes the IAM role and writes a small validation object under the key prefix. If verification fails, nothing changes and an existing export keeps its destination. If the check cannot be completed, for example because S3 is temporarily unavailable or throttling, the request returns 503 and also changes nothing. Only an answer from AWS about the destination, such as access denied or a missing bucket, counts as a failed verification. The role must trust Macroscope’s export identity for this workspace, as described in S3 exports, and each workspace needs its own role.
Saving re-baselines the export schedule: data since the last export is not backfilled. Saving also resumes a paused export. To change only which streams are exported, or to pause the export, use Update log export.
Configuring needs an active subscription. Each workspace can make 5 configuration attempts per minute, shared with Log Export in workspace settings; further attempts return 429.
Authorization
Requires an Admin API key, or an OAuth sign-in with Admin access by a person who is a workspace admin. Read and Write keys get 403, and a sign-in with Read or Write access gets an insufficient_scope challenge for macroscope:admin.
How your client identifies the source of the request in the workspace audit log. Use human or agent. Macroscope records the client’s value without verifying it. Other values are treated as unspecified.
Path parameters
string
required
GITHUB_ORGANIZATION or GITHUB_USER.
string
required
Numeric GitHub ID of the organization or user.
Body
string
required
S3 bucket name.
string
required
AWS region of the bucket, such as us-east-1.
string
required
ARN of the IAM role Macroscope assumes to write exports. Responses and the audit log show it redacted.
string
Key prefix to write exports under, ending in /. Omit or leave empty for the bucket root.
string
required
hourly or daily.
boolean
Whether user activity logs, the workspace audit log events, are exported. Omitted keeps the current value, or exports them when setting up a new export.
boolean
Whether check run logs are exported. Omitted keeps the current value, or exports them when setting up a new export.
boolean
Whether code review analytics are exported. Omitted keeps the current value, or exports them when setting up a new export. At least one stream must be on.
Response
LogExport
The log export as saved, in the same form as Get log export.
Errors
HTTP
Meaning
400
Invalid destination (bucket name, region, role ARN, key prefix or frequency), no stream on, S3 access verification failed, or the role is already used by another workspace. Nothing was changed
403
Your credential or your permissions do not allow managing the log export, or the workspace has no active subscription
404
The workspace does not have log export
409
The log export changed while the destination was being verified. Read it again before retrying
429
Too many configuration attempts for the workspace. Try again in a minute
503
The destination could not be verified right now. Nothing was changed; try again in a few minutes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Macroscope","colors":{"primary":"#6f16a3","light":"#a26fd9","dark":"#a26fd9"},"logo":{"light":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc","dark":"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/dark.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=05f568cf92a21f18b8ebaed893c0ff3b"},"favicon":"https://mintcdn.com/macroscope/Ij1wsJ7EUw4zYzA-/images/favicon.svg?fit=max\u0026auto=format\u0026n=Ij1wsJ7EUw4zYzA-\u0026q=85\u0026s=bab7bcd6e8c996d0426a6a241bf3ecbe","navbar":{"links":[{"href":"https://docs.macroscope.com/contact","label":"Contact Us"}],"primary":{"type":"button","label":"Macroscope","href":"https://app.macroscope.com"}},"integrations":{"gtm":{"tagId":"GTM-MFXG74M6"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"macroscope","hasAudioNarration":false,"actualSubdomain":"macroscope","customDomains":["docs.macroscope.com"],"gitSource":{"type":"github","owner":"prassoai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0cfa7739962319b6d165c4","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Documentation","count":78},{"language":"default","tag":"Integrations","count":46},{"language":"default","tag":"API","count":41},{"language":"default","tag":"Code Review","count":14},{"language":"default","tag":"Status","count":6},{"language":"default","tag":"Check Run Agents","count":5},{"language":"default","tag":"Workspace","count":4},{"language":"default","tag":"Resources","count":3},{"language":"default","tag":"Modifying behavior","count":3},{"language":"default","tag":"Pricing","count":3}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"site-roles","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":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/endpoint/configure-log-export","slug":"/api-reference/endpoint/configure-log-export","pageMetadata":{"title":"Configure log export","description":"Set up the S3 log export or change its destination or schedule","api":"PUT https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","playground":"none","href":"/api-reference/endpoint/configure-log-export"},"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: \"Set up the S3 log export or change its destination or schedule\"\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`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Heading,ParamField,ResponseField,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Sets up the workspace’s `,_jsx(_components.a,{href:`/s3-exports`,children:`S3 log export`}),`, or changes its destination or schedule, as `,_jsx(_components.strong,{children:`Log Export`}),` in workspace settings does. Each attempt, including a refused or invalid one, is recorded in the workspace audit log with its outcome and the API key, or the person and connected app, that made it. Requests rejected before they reach the operation, such as malformed requests, invalid credentials and rate-limited requests, may have no entry. The audit log shows the role ARN redacted.`]}),`\n`,_jsxs(_components.p,{children:[`Before saving, Macroscope verifies S3 access: it assumes the IAM role and writes a small validation object under the key prefix. If verification fails, nothing changes and an existing export keeps its destination. If the check cannot be completed, for example because S3 is temporarily unavailable or throttling, the request returns `,_jsx(_components.code,{children:`503`}),` and also changes nothing. Only an answer from AWS about the destination, such as access denied or a missing bucket, counts as a failed verification. The role must trust Macroscope’s export identity for this workspace, as described in `,_jsx(_components.a,{href:`/s3-exports`,children:`S3 exports`}),`, and each workspace needs its own role.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Saving re-baselines the export schedule: data since the last export is not backfilled. Saving also resumes a paused export. To change only which streams are exported, or to pause the export, use `,_jsx(_components.a,{href:`/api-reference/endpoint/update-log-export`,children:`Update log export`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Configuring needs an active subscription. Each workspace can make 5 configuration attempts per minute, shared with `,_jsx(_components.strong,{children:`Log Export`}),` in workspace settings; further attempts return `,_jsx(_components.code,{children:`429`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.p,{children:[`Requires an `,_jsx(_components.strong,{children:`Admin`}),` API key, or an `,_jsx(_components.a,{href:`/api-reference/mcp#permissions`,children:`OAuth sign-in`}),` with `,_jsx(_components.strong,{children:`Admin`}),` access by a person who is a workspace admin. Read and Write keys get `,_jsx(_components.code,{children:`403`}),`, and a sign-in with Read or Write access gets an `,_jsx(_components.code,{children:`insufficient_scope`}),` challenge for `,_jsx(_components.code,{children:`macroscope:admin`}),`.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(ParamField,{header:`X-Macroscope-Initiation`,type:`string`,id:`param-x-macroscope-initiation`,children:_jsxs(_components.p,{children:[`How your client identifies the source of the request in the workspace audit log. Use `,_jsx(_components.code,{children:`human`}),` or `,_jsx(_components.code,{children:`agent`}),`. Macroscope records the client’s value without verifying it. Other values are treated as unspecified.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`bucketName`,type:`string`,required:true,id:`param-bucket-name`,children:_jsx(_components.p,{children:`S3 bucket name.`})}),`\n`,_jsx(ParamField,{body:`bucketRegion`,type:`string`,required:true,id:`param-bucket-region`,children:_jsxs(_components.p,{children:[`AWS region of the bucket, such as `,_jsx(_components.code,{children:`us-east-1`}),`.`]})}),`\n`,_jsx(ParamField,{body:`roleArn`,type:`string`,required:true,id:`param-role-arn`,children:_jsx(_components.p,{children:`ARN of the IAM role Macroscope assumes to write exports. Responses and the audit log show it redacted.`})}),`\n`,_jsx(ParamField,{body:`keyPrefix`,type:`string`,id:`param-key-prefix`,children:_jsxs(_components.p,{children:[`Key prefix to write exports under, ending in `,_jsx(_components.code,{children:`/`}),`. Omit or leave empty for the bucket root.`]})}),`\n`,_jsx(ParamField,{body:`exportFrequency`,type:`string`,required:true,id:`param-export-frequency`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hourly`}),` or `,_jsx(_components.code,{children:`daily`}),`.`]})}),`\n`,_jsx(ParamField,{body:`exportActivityLogs`,type:`boolean`,id:`param-export-activity-logs`,children:_jsx(_components.p,{children:`Whether user activity logs, the workspace audit log events, are exported. Omitted keeps the current value, or exports them when setting up a new export.`})}),`\n`,_jsx(ParamField,{body:`exportCheckRunLogs`,type:`boolean`,id:`param-export-check-run-logs`,children:_jsx(_components.p,{children:`Whether check run logs are exported. Omitted keeps the current value, or exports them when setting up a new export.`})}),`\n`,_jsx(ParamField,{body:`exportCodeReviewAnalytics`,type:`boolean`,id:`param-export-code-review-analytics`,children:_jsx(_components.p,{children:`Whether code review analytics are exported. Omitted keeps the current value, or exports them when setting up a new export. At least one stream must be on.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`logExport`,type:`LogExport`,id:`param-log-export`,children:_jsxs(_components.p,{children:[`The log export as saved, in the same form as `,_jsx(_components.a,{href:`/api-reference/endpoint/get-log-export`,children:`Get log export`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(`table`,{children:[_jsxs(`colgroup`,{children:[_jsx(`col`,{width:`100`}),_jsx(`col`,{width:`698`})]}),_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`HTTP`}),_jsx(`th`,{children:`Meaning`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`400`})}),_jsx(`td`,{children:`Invalid destination (bucket name, region, role ARN, key prefix or frequency), no stream on, S3 access verification failed, or the role is already used by another workspace. Nothing was changed`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`403`})}),_jsx(`td`,{children:`Your credential or your permissions do not allow managing the log export, or the workspace has no active subscription`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`404`})}),_jsx(`td`,{children:`The workspace does not have log export`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`409`})}),_jsx(`td`,{children:`The log export changed while the destination was being verified. Read it again before retrying`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`429`})}),_jsx(`td`,{children:`Too many configuration attempts for the workspace. Try again in a minute`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`503`})}),_jsx(`td`,{children:`The destination could not be verified right now. Nothing was changed; try again in a few minutes`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api#errors`,children:`Errors`}),` for the rest.`]})]})}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":"Configure log export","description":"Set up the S3 log export or change its destination or schedule","api":"PUT https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","playground":"none","href":"/api-reference/endpoint/configure-log-export"}}},"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`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,ParamField,RequestExample,ResponseExample,ResponseField,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Sets up the workspace’s `,_jsx(_components.a,{href:`/s3-exports`,children:`S3 log export`}),`, or changes its destination or schedule, as `,_jsx(_components.strong,{children:`Log Export`}),` in workspace settings does. Each attempt, including a refused or invalid one, is recorded in the workspace audit log with its outcome and the API key, or the person and connected app, that made it. Requests rejected before they reach the operation, such as malformed requests, invalid credentials and rate-limited requests, may have no entry. The audit log shows the role ARN redacted.`]}),`\n`,_jsxs(_components.p,{children:[`Before saving, Macroscope verifies S3 access: it assumes the IAM role and writes a small validation object under the key prefix. If verification fails, nothing changes and an existing export keeps its destination. If the check cannot be completed, for example because S3 is temporarily unavailable or throttling, the request returns `,_jsx(_components.code,{children:`503`}),` and also changes nothing. Only an answer from AWS about the destination, such as access denied or a missing bucket, counts as a failed verification. The role must trust Macroscope’s export identity for this workspace, as described in `,_jsx(_components.a,{href:`/s3-exports`,children:`S3 exports`}),`, and each workspace needs its own role.`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Saving re-baselines the export schedule: data since the last export is not backfilled. Saving also resumes a paused export. To change only which streams are exported, or to pause the export, use `,_jsx(_components.a,{href:`/api-reference/endpoint/update-log-export`,children:`Update log export`}),`.`]})}),`\n`,_jsxs(_components.p,{children:[`Configuring needs an active subscription. Each workspace can make 5 configuration attempts per minute, shared with `,_jsx(_components.strong,{children:`Log Export`}),` in workspace settings; further attempts return `,_jsx(_components.code,{children:`429`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authorization`,children:`Authorization`}),`\n`,_jsxs(_components.p,{children:[`Requires an `,_jsx(_components.strong,{children:`Admin`}),` API key, or an `,_jsx(_components.a,{href:`/api-reference/mcp#permissions`,children:`OAuth sign-in`}),` with `,_jsx(_components.strong,{children:`Admin`}),` access by a person who is a workspace admin. Read and Write keys get `,_jsx(_components.code,{children:`403`}),`, and a sign-in with Read or Write access gets an `,_jsx(_components.code,{children:`insufficient_scope`}),` challenge for `,_jsx(_components.code,{children:`macroscope:admin`}),`.`]}),`\n`,_jsx(ParamField,{header:`Authorization`,type:`string`,required:true,id:`param-authorization`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`Bearer \u003ckey>`}),`. See `,_jsx(_components.a,{href:`/api#authentication`,children:`Authentication`}),`.`]})}),`\n`,_jsx(ParamField,{header:`X-Macroscope-Initiation`,type:`string`,id:`param-x-macroscope-initiation`,children:_jsxs(_components.p,{children:[`How your client identifies the source of the request in the workspace audit log. Use `,_jsx(_components.code,{children:`human`}),` or `,_jsx(_components.code,{children:`agent`}),`. Macroscope records the client’s value without verifying it. Other values are treated as unspecified.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path parameters`}),`\n`,_jsx(ParamField,{path:`workspaceType`,type:`string`,required:true,id:`param-workspace-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`GITHUB_ORGANIZATION`}),` or `,_jsx(_components.code,{children:`GITHUB_USER`}),`.`]})}),`\n`,_jsx(ParamField,{path:`workspaceId`,type:`string`,required:true,id:`param-workspace-id`,children:_jsx(_components.p,{children:`Numeric GitHub ID of the organization or user.`})}),`\n`,_jsx(Heading,{level:`2`,id:`body`,children:`Body`}),`\n`,_jsx(ParamField,{body:`bucketName`,type:`string`,required:true,id:`param-bucket-name`,children:_jsx(_components.p,{children:`S3 bucket name.`})}),`\n`,_jsx(ParamField,{body:`bucketRegion`,type:`string`,required:true,id:`param-bucket-region`,children:_jsxs(_components.p,{children:[`AWS region of the bucket, such as `,_jsx(_components.code,{children:`us-east-1`}),`.`]})}),`\n`,_jsx(ParamField,{body:`roleArn`,type:`string`,required:true,id:`param-role-arn`,children:_jsx(_components.p,{children:`ARN of the IAM role Macroscope assumes to write exports. Responses and the audit log show it redacted.`})}),`\n`,_jsx(ParamField,{body:`keyPrefix`,type:`string`,id:`param-key-prefix`,children:_jsxs(_components.p,{children:[`Key prefix to write exports under, ending in `,_jsx(_components.code,{children:`/`}),`. Omit or leave empty for the bucket root.`]})}),`\n`,_jsx(ParamField,{body:`exportFrequency`,type:`string`,required:true,id:`param-export-frequency`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`hourly`}),` or `,_jsx(_components.code,{children:`daily`}),`.`]})}),`\n`,_jsx(ParamField,{body:`exportActivityLogs`,type:`boolean`,id:`param-export-activity-logs`,children:_jsx(_components.p,{children:`Whether user activity logs, the workspace audit log events, are exported. Omitted keeps the current value, or exports them when setting up a new export.`})}),`\n`,_jsx(ParamField,{body:`exportCheckRunLogs`,type:`boolean`,id:`param-export-check-run-logs`,children:_jsx(_components.p,{children:`Whether check run logs are exported. Omitted keeps the current value, or exports them when setting up a new export.`})}),`\n`,_jsx(ParamField,{body:`exportCodeReviewAnalytics`,type:`boolean`,id:`param-export-code-review-analytics`,children:_jsx(_components.p,{children:`Whether code review analytics are exported. Omitted keeps the current value, or exports them when setting up a new export. At least one stream must be on.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`logExport`,type:`LogExport`,id:`param-log-export`,children:_jsxs(_components.p,{children:[`The log export as saved, in the same form as `,_jsx(_components.a,{href:`/api-reference/endpoint/get-log-export`,children:`Get log export`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`errors`,children:`Errors`}),`\n`,_jsxs(`table`,{children:[_jsxs(`colgroup`,{children:[_jsx(`col`,{width:`100`}),_jsx(`col`,{width:`698`})]}),_jsx(`thead`,{children:_jsxs(`tr`,{children:[_jsx(`th`,{children:`HTTP`}),_jsx(`th`,{children:`Meaning`})]})}),_jsxs(`tbody`,{children:[_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`400`})}),_jsx(`td`,{children:`Invalid destination (bucket name, region, role ARN, key prefix or frequency), no stream on, S3 access verification failed, or the role is already used by another workspace. Nothing was changed`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`403`})}),_jsx(`td`,{children:`Your credential or your permissions do not allow managing the log export, or the workspace has no active subscription`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`404`})}),_jsx(`td`,{children:`The workspace does not have log export`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`409`})}),_jsx(`td`,{children:`The log export changed while the destination was being verified. Read it again before retrying`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`429`})}),_jsx(`td`,{children:`Too many configuration attempts for the workspace. Try again in a minute`})]}),_jsxs(`tr`,{children:[_jsx(`td`,{children:_jsx(_components.code,{children:`503`})}),_jsx(`td`,{children:`The destination could not be verified right now. Nothing was changed; try again in a few minutes`})]})]})]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/api#errors`,children:`Errors`}),` for the rest.`]}),`\n`,_jsx(RequestExample,{children:_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`4`,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:`4`,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:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` PUT`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/logExport`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$MACROSCOPE_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_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:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_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:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"bucketName\": \"acme-macroscope-logs\", \"bucketRegion\": \"us-east-1\", \"roleArn\": \"arn:aws:iam::123456789012:role/macroscope-export\", \"keyPrefix\": \"macroscope/\", \"exportFrequency\": \"hourly\"}'`})]}),`\n`]})})})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200`,numberOfLines:`16`,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:`16`,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:` \"logExport\"`}),_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:` \"destinationType\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"S3\"`}),_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:` \"bucketName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"acme-macroscope-logs\"`}),_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:` \"bucketRegion\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"us-east-1\"`}),_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:` \"roleArnRedacted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"arn:aws:iam::123456789012:role/•••••••••••••port\"`}),_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:` \"keyPrefix\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"macroscope/\"`}),_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:` \"exportFrequency\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hourly\"`}),_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:` \"exportCheckRunLogs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"exportActivityLogs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"enabled\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_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:` \"nextExportAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-29T05:00:00Z\"`}),_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:` \"lastWindowEnd\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-11-29T04:00:00Z\"`}),_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:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-10-02T17:20:00Z\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_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`]})})}),_jsx(CodeBlock,{filename:`401`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{ `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`16`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"unauthenticated\"`}),_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":"Configure log export","description":"Set up the S3 log export or change its destination or schedule","api":"PUT https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","playground":"none","href":"/api-reference/endpoint/configure-log-export"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Authorization","slug":"authorization","depth":2,"children":[]},{"title":"Path parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Body","slug":"body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Errors","slug":"errors","depth":2,"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=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> PUT\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> https://api.macroscope.com/api/v1/workspaces/GITHUB_ORGANIZATION/12345678/logExport\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Authorization: Bearer \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">$MACROSCOPE_API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\"bucketName\": \"acme-macroscope-logs\", \"bucketRegion\": \"us-east-1\", \"roleArn\": \"arn:aws:iam::123456789012:role/macroscope-export\", \"keyPrefix\": \"macroscope/\", \"exportFrequency\": \"hourly\"}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200","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=\"16\">\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\"> \"logExport\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"destinationType\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"S3\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"bucketName\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"acme-macroscope-logs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"bucketRegion\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"us-east-1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"roleArnRedacted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"arn:aws:iam::123456789012:role/•••••••••••••port\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"keyPrefix\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"macroscope/\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"exportFrequency\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"hourly\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"exportCheckRunLogs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"exportActivityLogs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"enabled\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"nextExportAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-29T05:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lastWindowEnd\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-11-29T04:00:00Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-10-02T17:20:00Z\"\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:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401","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=\"1\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{ \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">16\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"unauthenticated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Configure log export","path":"/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","servers":[{"url":"https://api.macroscope.com"}],"method":"put","request":{"security":[],"parameters":{"query":{},"header":{"Authorization":{"schema":[{"type":"string","description":"`Bearer \u003ckey>` . See Authentication .","required":true}]},"X-Macroscope-Initiation":{"schema":[{"type":"string","description":"How your client identifies the source of the request in the workspace audit log. Use `human` or `agent` . Macroscope records the client’s value without verifying it. Other values are treated as unspecified."}]}},"cookie":{},"path":{"workspaceType":{"schema":[{"type":"string","description":"`GITHUB_ORGANIZATION` or `GITHUB_USER` .","required":true}]},"workspaceId":{"schema":[{"type":"string","description":"Numeric GitHub ID of the organization or user.","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"bucketName":[{"type":"string","description":"S3 bucket name.","required":true}],"bucketRegion":[{"type":"string","description":"AWS region of the bucket, such as `us-east-1` .","required":true}],"roleArn":[{"type":"string","description":"ARN of the IAM role Macroscope assumes to write exports. Responses and the audit log show it redacted.","required":true}],"keyPrefix":[{"type":"string","description":"Key prefix to write exports under, ending in `/` . Omit or leave empty for the bucket root."}],"exportFrequency":[{"type":"string","description":"`hourly` or `daily` .","required":true}],"exportActivityLogs":[{"type":"boolean","description":"Whether user activity logs, the workspace audit log events, are exported. Omitted keeps the current value, or exports them when setting up a new export."}],"exportCheckRunLogs":[{"type":"boolean","description":"Whether check run logs are exported. Omitted keeps the current value, or exports them when setting up a new export."}],"exportCodeReviewAnalytics":[{"type":"boolean","description":"Whether code review analytics are exported. Omitted keeps the current value, or exports them when setting up a new export. At least one stream must be on."}]}}],"examples":{"example":{"value":{"bucketName":"\u003cstring>","bucketRegion":"\u003cstring>","roleArn":"\u003cstring>","keyPrefix":"\u003cstring>","exportFrequency":"\u003cstring>","exportActivityLogs":true,"exportCheckRunLogs":true,"exportCodeReviewAnalytics":true}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"logExport":[{"type":"object","properties":{},"description":"The log export as saved, in the same form as Get log export ."}]}}],"examples":{"example":{"value":{"logExport":{}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"macroscope","siteName":"Macroscope","title":"Configure log export - Macroscope","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T01:21:11.147Z","originalFileLocation":"api-reference/endpoint/configure-log-export.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=\"Set up the S3 log export or change its destination or schedule\">\u003cmeta data-mint-head name=\"application-name\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_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/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Configure log export - Macroscope\">\u003cmeta data-mint-head property=\"og:description\" content=\"Set up the S3 log export or change its destination or schedule\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Macroscope\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://macroscope.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Configure+log+export\u0026amp;description=Set+up+the+S3+log+export+or+change+its+destination+or+schedule\u0026amp;theme=ab62f9e97a9aa757910919a8\u0026amp;signature=b0e39215549c7dc326ef7d1bfbae40709aa434857dd4de0d650095262fe2876a\">\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=\"Configure log export - Macroscope\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Set up the S3 log export or change its destination or schedule\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://macroscope.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Configure+log+export\u0026amp;description=Set+up+the+S3+log+export+or+change+its+destination+or+schedule\u0026amp;theme=ab62f9e97a9aa757910919a8\u0026amp;signature=b0e39215549c7dc326ef7d1bfbae40709aa434857dd4de0d650095262fe2876a\">\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/macroscope/9sYBVwJjOb2ffPKd/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Macroscope\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6f16a3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/configure-log-export.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.macroscope.com/#organization\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/macroscope/9iw0Cp-qvEu72Hf8/logo/light.svg?fit=max\u0026auto=format\u0026n=9iw0Cp-qvEu72Hf8\u0026q=85\u0026s=bd1aa63d43927eed5140a1a50d7781fc\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.macroscope.com#website\",\"name\":\"Macroscope\",\"url\":\"https://docs.macroscope.com\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export#webpage\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export\",\"name\":\"Configure log export\",\"description\":\"Set up the S3 log export or change its destination or schedule\",\"dateModified\":\"2026-11-30T01:21:11.147Z\",\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Integrations\",\"item\":\"https://docs.macroscope.com/webhooks\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"API\",\"item\":\"https://docs.macroscope.com/api\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Configure log export\",\"item\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export#apireference\",\"headline\":\"Configure log export\",\"name\":\"Configure log export\",\"description\":\"Set up the S3 log export or change its destination or schedule\",\"url\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export\",\"mainEntityOfPage\":{\"@id\":\"https://docs.macroscope.com/api-reference/endpoint/configure-log-export#webpage\"},\"dateModified\":\"2026-11-30T01:21:11.147Z\",\"publisher\":{\"@id\":\"https://docs.macroscope.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.macroscope.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Macroscope\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Macroscope\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/endpoint/configure-log-export.md","siteName":"Macroscope","nav":{"global":{"anchors":[{"anchor":"Go to Macroscope","icon":"arrow-right","href":"https://app.macroscope.com/"}]},"anchors":[{"anchor":"Documentation","icon":"book-open","pages":[{"title":"Overview","href":"/welcome"},{"title":"Setup","href":"/setup-instructions"},{"group":"Pricing","pages":[{"title":"Pricing overview","href":"/pricing"},{"title":"Models and token rates","href":"/model-pricing"},{"title":"Spend controls","href":"/spend-limits"}]},{"group":"Code Review","pages":[{"title":"Correctness","href":"/correctness"},{"title":"Detection mode","href":"/code-review/detection-mode"},{"group":"Modifying behavior","root":{"title":"Modifying behavior","href":"/code-review/macroscope"},"pages":[{"title":"Custom instructions","href":"/custom-instructions"},{"title":"Ignore files","href":"/code-review/ignore-files"}]},{"group":"Check Run Agents","root":{"title":"Check Run Agents","href":"/check-run-agents"},"pages":[{"title":"Configuration","href":"/check-run-agents/configuration"},{"title":"Instructions and context","href":"/check-run-agents/instructions"},{"title":"Triggers and skips","href":"/check-run-agents/triggers"},{"title":"GitHub Actions","href":"/github-actions"}]},{"title":"Approvability","href":"/approvability"},{"title":"CLI","href":"/cli"},{"title":"PR summaries","href":"/pull-request-descriptions"},{"title":"Fix it for me","href":"/fix-it-for-me"}]},{"group":"Status","pages":[{"title":"Status","href":"/status"},{"title":"Areas","href":"/areas"},{"title":"Productivity","href":"/productivity"},{"title":"Slack subscriptions","href":"/slack-subscriptions"},{"title":"Ask Macroscope","href":"/agent"},{"title":"Macros","href":"/macros"}]},{"group":"Integrations","pages":[{"title":"Webhooks","href":"/webhooks"},{"title":"Connected tools","href":"/integrations"},{"title":"MCP","href":"/api-reference/mcp"},{"group":"API","root":{"title":"API","href":"/api"},"pages":[{"title":"Get workspace","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}","playground":"none","href":"/api-reference/endpoint/get-workspace"},{"title":"List areas","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/areas","playground":"none","href":"/api-reference/endpoint/list-areas"},{"title":"Get workspace report","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/workspaceReport","playground":"none","href":"/api-reference/endpoint/get-workspace-report"},{"title":"Get sprint elapsed hours","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/sprintElapsedHours","playground":"none","href":"/api-reference/endpoint/get-sprint-elapsed-hours"},{"title":"List contributor statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/contributorStatistics","playground":"none","href":"/api-reference/endpoint/list-contributor-statistics"},{"title":"List team memberships","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teams/memberships","playground":"none","href":"/api-reference/endpoint/list-team-memberships"},{"title":"List team statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teamStatistics","playground":"none","href":"/api-reference/endpoint/list-team-statistics"},{"title":"Get coding time statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/codingTimeStatistics","playground":"none","href":"/api-reference/endpoint/get-coding-time-statistics"},{"title":"Query code review statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-statistics","playground":"none","href":"/api-reference/endpoint/query-code-review-statistics"},{"title":"List code review comments","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/code-review-comments","playground":"none","href":"/api-reference/endpoint/list-code-review-comments"},{"title":"Query approvability statistics","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/approvability-statistics","playground":"none","href":"/api-reference/endpoint/query-approvability-statistics"},{"title":"List approvability runs","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/approvability-runs","playground":"none","href":"/api-reference/endpoint/list-approvability-runs"},{"title":"List commits","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/commits","playground":"none","href":"/api-reference/endpoint/list-commits"},{"title":"Get billing status","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/status","playground":"none","href":"/api-reference/endpoint/get-billing-status"},{"title":"Get billing balance","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/balance","playground":"none","href":"/api-reference/endpoint/get-billing-balance"},{"title":"Get billing controls","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/controls","playground":"none","href":"/api-reference/endpoint/get-billing-controls"},{"title":"List billing meter summaries","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/meterSummaries","playground":"none","href":"/api-reference/endpoint/list-billing-meter-summaries"},{"title":"List daily billing usage","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/dailyUsage","playground":"none","href":"/api-reference/endpoint/list-daily-billing-usage"},{"title":"List agent credit usage","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/agentCreditUsage","playground":"none","href":"/api-reference/endpoint/list-agent-credit-usage"},{"title":"List workspace reporting periods","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/reportingPeriods","playground":"none","href":"/api-reference/endpoint/list-workspace-reporting-periods"},{"title":"List check-run agent billing summaries","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/billing/checkRunAgentSummaries","playground":"none","href":"/api-reference/endpoint/list-check-run-agent-billing-summaries"},{"title":"Get repository settings","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","playground":"none","href":"/api-reference/endpoint/get-repo-settings"},{"title":"Update repository settings","api":"PATCH https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repositories/{repositoryId}/settings","playground":"none","href":"/api-reference/endpoint/update-repo-settings"},{"title":"Get repository defaults","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repository-defaults","playground":"none","href":"/api-reference/endpoint/get-workspace-repo-defaults"},{"title":"Update repository defaults","api":"PATCH https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/repository-defaults","playground":"none","href":"/api-reference/endpoint/update-workspace-repo-defaults"},{"title":"Get workspace settings","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/settings","playground":"none","href":"/api-reference/endpoint/get-workspace-settings"},{"title":"Update workspace settings","api":"PATCH https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/settings","playground":"none","href":"/api-reference/endpoint/update-workspace-settings"},{"title":"Enable or disable a team","api":"PATCH https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/teams/{teamId}","playground":"none","href":"/api-reference/endpoint/set-team-enablement"},{"title":"List digest subscriptions","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/digestSubscriptions","playground":"none","href":"/api-reference/endpoint/list-digest-subscriptions"},{"title":"Put digest subscription","api":"PUT https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/digestSubscriptions","playground":"none","href":"/api-reference/endpoint/put-digest-subscription"},{"title":"Delete digest subscription","api":"DELETE https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/digestSubscriptions","playground":"none","href":"/api-reference/endpoint/delete-digest-subscription"},{"title":"Get log export","description":"The workspace's S3 log export destination, streams and state","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","playground":"none","href":"/api-reference/endpoint/get-log-export"},{"title":"Configure log export","api":"PUT https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","playground":"none","href":"/api-reference/endpoint/configure-log-export"},{"title":"Update log export","description":"Turn the S3 log export or its streams on or off","api":"PATCH https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","playground":"none","href":"/api-reference/endpoint/update-log-export"},{"title":"Delete log export","api":"DELETE https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/logExport","playground":"none","href":"/api-reference/endpoint/delete-log-export"},{"title":"Get workspace contact","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/contact","playground":"none","href":"/api-reference/endpoint/get-workspace-contact"},{"title":"Set workspace contact","api":"PUT https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/contact","playground":"none","href":"/api-reference/endpoint/set-workspace-contact"},{"title":"List delegated admins","api":"GET https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/delegatedAdmins","playground":"none","href":"/api-reference/endpoint/list-delegated-admins"},{"title":"Add delegated admin","api":"POST https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/delegatedAdmins","playground":"none","href":"/api-reference/endpoint/add-delegated-admin"},{"title":"Remove delegated admin","api":"DELETE https://api.macroscope.com/api/v1/workspaces/{workspaceType}/{workspaceId}/delegatedAdmins/{githubUserId}","playground":"none","href":"/api-reference/endpoint/remove-delegated-admin"}]},{"group":"S3 exports","root":{"title":"S3 exports","href":"/s3-exports"},"pages":[{"title":"Export schema","href":"/s3-exports/format"}]}]},{"group":"Workspace","pages":[{"title":"Workspace settings","href":"/settings"},{"title":"Enterprise Managed Users","href":"/github-enterprise-login"},{"title":"GitHub IP allow lists","href":"/github-ip-allow-list"},{"title":"Cancellation","href":"/cancel-subscription"}]},{"group":"Resources","pages":[{"title":"Murmur","href":"/murmur"},{"title":"Support","href":"/contact"},{"title":"Release notes","href":"/changelog"}]}]}]},"basePath":"","title":"Configure log export - Macroscope","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js"]}