Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.
What is Log forwarding?
Log forwarding enables your Magic Container’s application to send raw logs in real-time to the configured Syslog destination. There might be up to a 10-30 second delay between an actual request and the log hitting your Syslog endpoint.
What Log format and protocol does it support?
Log format The logs are sent in the standard Syslog RFC 5424 & Syslog RFC 3164 protocol.An example RFC 5424 log would look like this:
Log server protocol The logs can be sent in either UDP or TCP transport layer protocol.
UDP reliability
The UDP protocol is unaware of lost packets and does not contain an auto-retry mechanism. This means that in a case of packet loss or connectivity issue between your application and your logging service, some packets might get lost on the way.While this is likely a rare occurrence, it is important to keep in mind in case your logging relies on receiving 100% of the requests.
UDP security
The UDP protocol does not provide a layer of security. This means all the logs are sent to your endpoint in a raw, unencrypted form. While unlikely, please note that those might be vulnerable to a potential man-in-the-middle attack if you send critical information as part of your logs.
How to configure Log forwarding?
To enable realtime Log forwarding on your Magic Container application, you can follow the following steps:
Visit your Logging page for your Magic Containers application in the left-side menu.
Open the Settings panel inside of the Logging option.
Make sure that the Enable Log forwarding feature is enabled.
Enter the Hostname of your Syslog endpoint. This can be either an IP or a host address where your listening server is enabled.
Enter the Port of your Syslog endpoint. Make sure the port is open to the internet, as otherwise our servers will not be able to reach you.
(Optional) Configure the Token. For secure log forwarding
Select the Log server protocol you would like to use.
Select the Log format of choice.
Click on the Save Forwarding Configuration button.
Run your Magic Containers application and monitor your endpoint for new logs.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"bunny.net Documentation","colors":{"primary":"#EF6126","light":"#EF6126","dark":"#EF6126"},"logo":{"light":"https://mintcdn.com/bunnynet-cb9733c2/54-4KCQKoNVNuoyW/logo/bunny-logo-dark.svg?fit=max\u0026auto=format\u0026n=54-4KCQKoNVNuoyW\u0026q=85\u0026s=62c091ea1aaea93d0a981902b7783e37","dark":"https://mintcdn.com/bunnynet-cb9733c2/54-4KCQKoNVNuoyW/logo/bunny-logo-light.svg?fit=max\u0026auto=format\u0026n=54-4KCQKoNVNuoyW\u0026q=85\u0026s=3610e32d68a9fa458b0116ac58ca812a"},"favicon":"https://mintcdn.com/bunnynet-cb9733c2/1bTPx1eyQm8EK8W3/favicon.png?fit=max\u0026auto=format\u0026n=1bTPx1eyQm8EK8W3\u0026q=85\u0026s=85267b63e804fac7a4dd94599bb8c6e8","navbar":{"links":[{"href":"https://bunny.net/docs/api-reference","label":"API Reference"},{"href":"https://github.com/BunnyWay","label":"GitHub"}],"primary":{"type":"button","label":"Get Started","href":"https://dash.bunny.net/auth/register"}},"footer":{"socials":{"discord":"https://discord.gg/bunnynet","github":"https://github.com/BunnyWay","x":"https://x.com/BunnyCDN","bluesky":"https://bsky.app/profile/bunny.net","linkedin":"https://www.linkedin.com/company/bunnynet","facebook":"https://www.facebook.com/bunnycdn"}},"icons":{"library":"lucide"},"contextual":{"options":["copy","claude","chatgpt","cursor","view","vscode"],"display":"header"},"interaction":{"drilldown":false},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bunnynet-cb9733c2","hasAudioNarration":false,"actualSubdomain":"bunnynet-cb9733c2","customDomains":["bunny.net"],"gitSource":{"type":"github","owner":"bunnyway","repo":"documentation","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"contextualFeedback":{"allowEmail":true},"agentFeedback":true,"edits":true,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aff59449d54d0cf251c253e","clientVersion":"0.0.4227","searchFilterCounts":[{"language":"default","tag":"Documentation","count":779},{"language":"default","tag":"API Reference","count":318},{"language":"default","tag":"Core Platform API","count":109},{"language":"default","tag":"CDN","count":82},{"language":"default","tag":"Stream","count":73},{"language":"default","tag":"Shield API","count":66},{"language":"default","tag":"Reference","count":66},{"language":"default","tag":"Magic Containers API","count":56},{"language":"default","tag":"Storage","count":54},{"language":"default","tag":"Guides","count":54}],"searchSettings":{"isFiltersEnabled":true}},"assistantConfig":{"enableStarterQuestions":false,"deflection":{"enabled":true,"type":"link","email":"support@bunny.net","url":"https://bunny.net/contact","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":false,"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":"workos-onboarding","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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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":"control","enabled":true,"payload":{"type":"string","value":"control"},"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}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".dark img[src*=\"/logo/frameworks/nextjs.svg\"],.dark img[src*=\"/logo/frameworks/express.svg\"],.dark img[src*=\"/logo/frameworks/mariadb.svg\"],.dark img[src*=\"/logo/frameworks/angular.svg\"],.dark img[src*=\"/logo/frameworks/eleventy.svg\"],.dark img[src*=\"/logo/frameworks/sphinx.svg\"]{filter:invert(1)}html:not(.dark) img[src*=\"/logo/frameworks/zola.svg\"]{filter:invert(1)}"}]}
{"page":{"pagePath":"magic-containers/log-forwarding","slug":"/magic-containers/log-forwarding","pageMetadata":{"title":"Log Forwarding","description":"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.","href":"/magic-containers/log-forwarding"},"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: \"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.\"\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`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Frame,Heading,Info,OptimizedImage,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`what-is-log-forwarding`,children:`What is Log forwarding?`}),`\n`,_jsxs(_components.p,{children:[`Log forwarding enables your `,_jsx(_components.strong,{children:`Magic Container’s`}),` application to send raw logs in real-time to the configured Syslog destination. There might be up to a 10-30 second delay between an actual request and the log hitting your Syslog endpoint.`]}),`\n`,_jsx(Heading,{level:`1`,id:`what-log-format-and-protocol-does-it-support`,children:`What Log format and protocol does it support?`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Log format`}),` The logs are sent in the standard `,_jsx(_components.strong,{children:`Syslog RFC 5424 \u0026 Syslog RFC 3164 protocol`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`An example `,_jsx(_components.strong,{children:`RFC 5424 log`}),` would look like this:`]}),`\n`,_jsx(CodeGroup,{children:_jsx(CodeBlock,{filename:`bash`,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`1`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`34>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`1 2025-07-10T02:03:30.998108+00:00 - - - - - {`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"log\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"Pod deployment finished\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`,`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"time\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`\"2025-07-10T02:03:25.840126Z\"`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`}`})]}),`\n`]})})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Log server protocol`}),` The logs can be sent in either `,_jsx(_components.strong,{children:`UDP`}),` or `,_jsx(_components.strong,{children:`TCP`}),` transport layer protocol.`]}),`\n`,_jsxs(Info,{children:[_jsx(Heading,{level:`3`,id:`udp-reliability`,children:`UDP reliability`}),_jsx(_components.p,{children:`The UDP protocol is unaware of lost packets and does not contain an auto-retry mechanism. This means that in a case of packet loss or connectivity issue between your application and your logging service, some packets might get lost on the way.`}),_jsx(_components.p,{children:`While this is likely a rare occurrence, it is important to keep in mind in case your logging relies on receiving 100% of the requests.`})]}),`\n`,_jsxs(Warning,{children:[_jsx(Heading,{level:`3`,id:`udp-security`,children:`UDP security`}),_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`https://bunny.net/academy/network/what-is-user-datagram-protocol-udp-and-how-does-it-work`,children:`UDP protocol`}),` does not provide a layer of security. This means all the logs are sent to your endpoint in a raw, unencrypted form. While unlikely, please note that those might be vulnerable to a potential `,_jsx(_components.strong,{children:`man-in-the-middle attack`}),` if you send critical information as part of your logs.`]})]}),`\n`,_jsx(Heading,{level:`1`,id:`how-to-configure-log-forwarding`,children:`How to configure Log forwarding?`}),`\n`,_jsxs(_components.p,{children:[`To enable realtime `,_jsx(_components.strong,{children:`Log forwarding`}),` on your Magic Container application, you can follow the following steps:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`Visit your `,_jsx(_components.strong,{children:`Logging`}),` page for your Magic Containers application in the left-side menu.`]}),`\n`,_jsxs(_components.li,{children:[`Open the `,_jsx(_components.strong,{children:`Settings`}),` panel inside of the Logging option.`]}),`\n`,_jsxs(_components.li,{children:[`Make sure that the `,_jsx(_components.strong,{children:`Enable Log forwarding`}),` feature is enabled.`]}),`\n`,_jsxs(_components.li,{children:[`Enter the `,_jsx(_components.strong,{children:`Hostname`}),` of your Syslog endpoint. `,_jsx(_components.em,{children:`This can be either an IP or a host address where your listening server is enabled.`})]}),`\n`,_jsxs(_components.li,{children:[`Enter the `,_jsx(_components.strong,{children:`Port`}),` of your Syslog endpoint. `,_jsx(_components.em,{children:`Make sure the port is open to the internet, as otherwise our servers will not be able to reach you.`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.em,{children:`(Optional)`}),` Configure the `,_jsx(_components.strong,{children:`Token`}),`. `,_jsx(_components.em,{children:`For secure log forwarding`})]}),`\n`,_jsxs(_components.li,{children:[`Select the `,_jsx(_components.strong,{children:`Log server protocol`}),` you would like to use.`]}),`\n`,_jsxs(_components.li,{children:[`Select the `,_jsx(_components.strong,{children:`Log format`}),` of choice.`]}),`\n`,_jsxs(_components.li,{children:[`Click on the `,_jsx(_components.strong,{children:`Save Forwarding Configuration`}),` button.`]}),`\n`,_jsxs(_components.li,{children:[`Run your `,_jsx(_components.strong,{children:`Magic Containers application`}),` and monitor your endpoint for new logs.`]}),`\n`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/bunnynet-cb9733c2/L57MhyfuZyBVCcmn/images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png?fit=max\u0026auto=format\u0026n=L57MhyfuZyBVCcmn\u0026q=85\u0026s=0a92753077b4326beee5218e8f040765`,alt:``,\"data-og-width\":`3102`,width:`3102`,\"data-og-height\":`1450`,height:`1450`,\"data-path\":`images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/bunnynet-cb9733c2/L57MhyfuZyBVCcmn/images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png?w=280\u0026fit=max\u0026auto=format\u0026n=L57MhyfuZyBVCcmn\u0026q=85\u0026s=2361ec37f7bbd8f32ae21444b0d82314 280w, https://mintcdn.com/bunnynet-cb9733c2/L57MhyfuZyBVCcmn/images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png?w=560\u0026fit=max\u0026auto=format\u0026n=L57MhyfuZyBVCcmn\u0026q=85\u0026s=8adabbe7d9f44f1d45b2477bc30e0251 560w, https://mintcdn.com/bunnynet-cb9733c2/L57MhyfuZyBVCcmn/images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png?w=840\u0026fit=max\u0026auto=format\u0026n=L57MhyfuZyBVCcmn\u0026q=85\u0026s=f3e41d653bf6a34f4e61c3f45b2f32d1 840w, https://mintcdn.com/bunnynet-cb9733c2/L57MhyfuZyBVCcmn/images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png?w=1100\u0026fit=max\u0026auto=format\u0026n=L57MhyfuZyBVCcmn\u0026q=85\u0026s=187e922faf6e35f03fced27585807ba7 1100w, https://mintcdn.com/bunnynet-cb9733c2/L57MhyfuZyBVCcmn/images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png?w=1650\u0026fit=max\u0026auto=format\u0026n=L57MhyfuZyBVCcmn\u0026q=85\u0026s=b3b9598e16cf9a8af24977a45c6fd6e9 1650w, https://mintcdn.com/bunnynet-cb9733c2/L57MhyfuZyBVCcmn/images/docs/5a1098ba6e970c4559a8e0f0498c3575821395715fc100d577c8036959185c9d-Screenshot_2025-07-17_at_15.21.28.png?w=2500\u0026fit=max\u0026auto=format\u0026n=L57MhyfuZyBVCcmn\u0026q=85\u0026s=6f8a25b7bfbe980dc2dd72f90520b2bd 2500w`})})]})}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 Forwarding","description":"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.","href":"/magic-containers/log-forwarding"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What is Log forwarding?","slug":"what-is-log-forwarding","depth":1,"children":[]},{"title":"What Log format and protocol does it support?","slug":"what-log-format-and-protocol-does-it-support","depth":1,"children":[{"title":"UDP reliability","slug":"udp-reliability","depth":3,"children":[]},{"title":"UDP security","slug":"udp-security","depth":3,"children":[]}]},{"title":"How to configure Log forwarding?","slug":"how-to-configure-log-forwarding","depth":1,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"bunnynet-cb9733c2","siteName":"bunny.net Documentation","title":"Log Forwarding - bunny.net Documentation","relatedPagesConfig":{"enabled":false,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-30T15:28:21.014Z","gitLastModified":"2026-01-23T15:39:14.000Z","originalFileLocation":"magic-containers/log-forwarding.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=\"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.\">\u003cmeta data-mint-head name=\"application-name\" content=\"bunny.net Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_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=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Log Forwarding - bunny.net Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"bunny.net Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://bunny.net/docs/magic-containers/log-forwarding\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bunnynet-cb9733c2.mintlify.site/docs/_mintlify/api/og/v2?division=Observability\u0026amp;title=Log+Forwarding\u0026amp;description=Forward+container+logs+in+real-time+to+your+Syslog+endpoint+for+monitoring+and+debugging.\u0026amp;theme=e77372f198ca52299d904e54\u0026amp;signature=3bad2a2bd56df2656db9739fb7692446fd2e8145e16d0b0abf2099b94fd85fdf\">\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 Forwarding - bunny.net Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bunnynet-cb9733c2.mintlify.site/docs/_mintlify/api/og/v2?division=Observability\u0026amp;title=Log+Forwarding\u0026amp;description=Forward+container+logs+in+real-time+to+your+Syslog+endpoint+for+monitoring+and+debugging.\u0026amp;theme=e77372f198ca52299d904e54\u0026amp;signature=3bad2a2bd56df2656db9739fb7692446fd2e8145e16d0b0abf2099b94fd85fdf\">\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=\"/docs/mintlify-assets/_mintlify/favicons/bunnynet-cb9733c2/Zv4NOenQlgPS3TXm/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"bunny.net Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EF6126\">\u003clink data-mint-head rel=\"canonical\" href=\"https://bunny.net/docs/magic-containers/log-forwarding\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/magic-containers/log-forwarding.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://bunny.net/#organization\",\"name\":\"bunny.net Documentation\",\"url\":\"https://bunny.net\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bunnynet-cb9733c2/54-4KCQKoNVNuoyW/logo/bunny-logo-dark.svg?fit=max\u0026auto=format\u0026n=54-4KCQKoNVNuoyW\u0026q=85\u0026s=62c091ea1aaea93d0a981902b7783e37\"}},{\"@type\":\"WebSite\",\"@id\":\"https://bunny.net/docs#website\",\"name\":\"bunny.net Documentation\",\"url\":\"https://bunny.net/docs\",\"publisher\":{\"@id\":\"https://bunny.net/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://bunny.net/docs/magic-containers/log-forwarding#webpage\",\"url\":\"https://bunny.net/docs/magic-containers/log-forwarding\",\"name\":\"Log Forwarding\",\"description\":\"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.\",\"dateModified\":\"2026-01-23T15:39:14.000Z\",\"isPartOf\":{\"@id\":\"https://bunny.net/docs#website\"},\"breadcrumb\":{\"@id\":\"https://bunny.net/docs/magic-containers/log-forwarding#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://bunny.net/docs/magic-containers/log-forwarding#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Observability\",\"item\":\"https://bunny.net/docs/magic-containers/monitoring\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Log Forwarding\",\"item\":\"https://bunny.net/docs/magic-containers/log-forwarding\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://bunny.net/docs/magic-containers/log-forwarding#article\",\"headline\":\"Log Forwarding\",\"name\":\"Log Forwarding\",\"description\":\"Forward container logs in real-time to your Syslog endpoint for monitoring and debugging.\",\"url\":\"https://bunny.net/docs/magic-containers/log-forwarding\",\"mainEntityOfPage\":{\"@id\":\"https://bunny.net/docs/magic-containers/log-forwarding#webpage\"},\"dateModified\":\"2026-01-23T15:39:14.000Z\",\"publisher\":{\"@id\":\"https://bunny.net/#organization\"},\"isPartOf\":{\"@id\":\"https://bunny.net/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"bunny.net Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"bunny.net Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/magic-containers/log-forwarding.md","siteName":"bunny.net Documentation","nav":{"global":null,"products":[{"product":"Home","icon":"book-open","pages":[{"title":"Home","href":""}]},{"product":"CDN","icon":"zap","description":"Accelerate and protect your content globally","pages":[{"title":"CDN","href":"/cdn"}]},{"product":"Magic Containers","icon":"box","description":"Deploy any app anywhere with Docker","tabs":[{"tab":"Documentation","groups":[{"group":"Documentation","pages":[{"title":"Magic Containers","sidebarTitle":"Introduction","mode":"wide","href":"/magic-containers"},{"title":"Quickstart","href":"/magic-containers/quickstart"},{"title":"Templates","href":"/magic-containers/templates"},{"group":"Use Cases","hidden":true,"pages":[{"title":"Gaming as a service","href":"/magic-containers/gaming"},{"title":"AI Training","href":"/magic-containers/ai-training"},{"title":"Image optimizer","href":"/magic-containers/image-optimizer"}]},{"title":"Pricing","href":"/magic-containers/pricing"},{"title":"Magic Containers Changelog","sidebarTitle":"Changelog","url":"/changelog?tags=Magic%20Containers","href":"/magic-containers/changelog"}]},{"group":"Deployment","pages":[{"title":"Deploy an App","sidebarTitle":"Deploy","href":"/magic-containers/deploy"},{"title":"Deploy from a GitHub Repository","sidebarTitle":"Deploy from GitHub","tag":"Preview","hidden":true,"href":"/magic-containers/deploy-from-github"},{"title":"Deploy with GitHub Actions","href":"/magic-containers/deploy-with-github-actions"},{"title":"Image Registries","href":"/magic-containers/image-registries"},{"title":"Regions","href":"/magic-containers/regions"},{"title":"IP Addresses","href":"/magic-containers/ip-addresses"},{"group":"Bunny Container Registry","hidden":true,"pages":[{"title":"Bunny Container Registry","tag":"Preview","href":"/magic-containers/bunny-container-registry"}]}]},{"group":"Managing Apps","pages":[{"title":"Update App","href":"/magic-containers/update"},{"title":"Manage Deployments","sidebarTitle":"Deployments","tag":"Preview","hidden":true,"href":"/magic-containers/deployments"},{"title":"Configuration","href":"/magic-containers/configuration"},{"title":"Environment Variables","href":"/magic-containers/environment-variables"},{"title":"Persistent Volumes","tag":"Beta","href":"/magic-containers/persistent-volumes"},{"title":"Ephemeral Storage","href":"/magic-containers/ephemeral-storage"},{"title":"Endpoints","href":"/magic-containers/endpoints"},{"title":"Undeploy","href":"/magic-containers/undeploy"},{"title":"Delete App","href":"/magic-containers/delete"}]},{"group":"Observability","pages":[{"title":"Monitoring","href":"/magic-containers/monitoring"},{"title":"Logs","description":"View live and historic application, system, and HTTP logs for your Magic Containers application, and filter them by container, pod, region, or request details.","href":"/magic-containers/logs"},{"title":"Log Forwarding","href":"/magic-containers/log-forwarding"},{"title":"Health Checks","description":"Configure health checks to ensure your containerized applications are reliable and available.","href":"/magic-containers/health-checks"}]},{"group":"Platform","pages":[{"title":"Autoscaling","href":"/magic-containers/autoscaling"},{"title":"Rolling Updates","href":"/magic-containers/rolling-updates"},{"title":"Blue/Green \u0026 A/B Deployments","href":"/magic-containers/deployment-strategies"},{"title":"Graceful Shutdown","href":"/magic-containers/graceful-shutdown"},{"title":"Restart Policy","href":"/magic-containers/restart-policy"},{"title":"Sandboxing","href":"/magic-containers/sandbox"},{"title":"Multi-Container Apps","href":"/magic-containers/multi-container"},{"title":"App Metadata","href":"/magic-containers/app-metadata"}]},{"group":"Reference","pages":[{"title":"Limits","href":"/magic-containers/limits"},{"title":"Troubleshooting","href":"/magic-containers/troubleshooting"},{"title":"FAQs","href":"/magic-containers/faqs"},{"title":"API Reference","url":"/api-reference/magic-containers","href":"/magic-containers/api-reference"}]},{"group":"Guides","pages":[{"group":"Go","pages":[{"title":"Go API","href":"/magic-containers/guides/simple-go-api"}]},{"group":"Node.js","pages":[{"title":"Node.js API with Hono","href":"/magic-containers/guides/node-hono-api"},{"title":"Node.js API with Express","href":"/magic-containers/guides/node-express-api"}]},{"group":"PHP","pages":[{"title":"PHP API with Slim","href":"/magic-containers/guides/php-slim"}]},{"group":"Python","pages":[{"title":"Python API with FastAPI","href":"/magic-containers/guides/python-fastapi"}]},{"group":"Web Frameworks","pages":[{"title":"Astro","href":"/magic-containers/guides/astro"},{"title":"Next.js","href":"/magic-containers/guides/nextjs"},{"title":"Nuxt","href":"/magic-containers/guides/nuxt"},{"title":"Ruby on Rails","href":"/magic-containers/guides/ruby-on-rails"},{"title":"Laravel + MariaDB","href":"/magic-containers/guides/laravel"}]},{"group":"Apps","pages":[{"title":"WordPress","href":"/magic-containers/guides/wordpress"}]},{"group":"Databases","pages":[{"title":"ClickHouse","href":"/magic-containers/guides/clickhouse"},{"title":"MariaDB","href":"/magic-containers/guides/mariadb"},{"title":"PostgreSQL","href":"/magic-containers/guides/postgresql"},{"title":"Redis","href":"/magic-containers/guides/redis"}]}]}]}]},{"product":"Edge Scripting","icon":"code","description":"Deploy serverless code at the edge","pages":[{"title":"Edge Scripting","href":"/scripting"}]},{"product":"Stream","icon":"video","description":"Video streaming and delivery platform","pages":[{"title":"Stream","href":"/stream"}]},{"product":"Storage","icon":"hard-drive","description":"Global object storage","pages":[{"title":"Storage","href":"/storage"}]},{"product":"Shield","icon":"shield","description":"Stay protected and online no matter what","pages":[{"title":"Shield","href":"/shield"}]},{"product":"Optimizer","icon":"sparkles","description":"Automatic image and web optimization.","pages":[{"title":"Optimizer","href":"/optimizer"}]},{"product":"DNS","icon":"globe","description":"Unlock the true power of DNS with an ultra-fast scriptable platform","pages":[{"title":"DNS","href":"/dns"}]},{"product":"Database","icon":"database","description":"Serverless SQLite over HTTP","pages":[{"title":"Database","href":"/database"}]},{"product":"Integrations","icon":"puzzle","description":"Official and third-party plugins and integrations","pages":[{"title":"Integrations","href":"/integrations/wordpress"}]},{"product":"CLI","icon":"terminal","description":"Manage bunny.net from your terminal","pages":[{"title":"CLI","href":"/cli"}]},{"product":"API Reference","icon":"square-terminal","description":"Build \u0026 Integrate with the Platform API","pages":[{"title":"API Reference","href":"/api-reference"}]},{"product":"Partners","icon":"handshake","description":"Manage customers, pricing, and billing as a bunny.net partner","pages":[{"title":"Partners","href":"/partners"}]}]},"basePath":"","title":"Log Forwarding - bunny.net Documentation","deploymentId":"dpl_2MqcLy8smQrrovUehgcZEsoo1tJX","buildId":"dpl_2MqcLy8smQrrovUehgcZEsoo1tJX","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BSnmehho.js","DynamicMarkdown-CU5QIokU.js","zoom-image-lightbox-TD6wszNR.js","lightbox-handle-r17bVUz3.js"]}