1"use strict";(self.webpackChunkconduit_site=self.webpackChunkconduit_site||[]).push([[6969],{55281:(e,n,o)=>{o.d(n,{A:()=>A});var t=o(98587),r=o(58168),i=o(96540),s=o(34164),a=o(75659),c=o(28466),l=o(11848),d=o(46126),u=o(60458),h=o(96852),g=o(47859),p=o(38413),m=o(31609);function x(e){return(0,m.Ay)("MuiLink",e)}const f=(0,p.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var b=o(86481),w=o(771);const y={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},j=({theme:e,ownerState:n})=>{const o=(e=>y[e]||e)(n.color),t=(0,b.Yn)(e,`palette.${o}`,!1)||n.color,r=(0,b.Yn)(e,`palette.${o}Channel`);return"vars"in e&&r?`rgba(${r} / 0.4)`:(0,w.X4)(t,.4)};var _=o(74848);const v=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],k=(0,l.Ay)(g.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:o}=e;return[n.root,n[`underline${(0,c.A)(o.underline)}`],"button"===o.component&&n.button]}})(({theme:e,ownerState:n})=>(0,r.A)({},"none"===n.underline&&{textDecoration:"none"},"hover"===n.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===n.underline&&(0,r.A)({textDecoration:"underline"},"inherit"!==n.color&&{textDecorationColor:j({theme:e,ownerState:n})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===n.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${f.focusVisible}`]:{outline:"auto"}})),A=i.forwardRef(function(e,n){const o=(0,d.b)({props:e,name:"MuiLink"}),{className:l,color:g="primary",component:p="a",onBlur:m,onFocus:f,TypographyClasses:b,underline:w="always",variant:j="inherit",sx:A}=o,T=(0,t.A)(o,v),{isFocusVisibleRef:C,onBlur:z,onFocus:D,ref:O}=(0,u.A)(),[I,S]=i.useState(!1),M=(0,h.A)(n,O),L=(0,r.A)({},o,{color:g,component:p,focusVisible:I,underline:w,variant:j}),N=(e=>{const{classes:n,component:o,focusVisible:t,underline:r}=e,i={root:["root",`underline${(0,c.A)(r)}`,"button"===o&&"button",t&&"focusVisible"]};return(0,a.A)(i,x,n)})(L);return(0,_.jsx)(k,(0,r.A)({color:g,className:(0,s.A)(N.root,l),classes:b,component:p,onBlur:e=>{z(e),!1===C.current&&S(!1),m&&m(e)},onFocus:e=>{D(e),!0===C.current&&S(!0),f&&f(e)},ref:M,ownerState:L,variant:j,sx:[...Object.keys(y).includes(g)?[]:[{color:g}],...Array.isArray(A)?A:[A]]},T))})},84841:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>g,default:()=>f,frontMatter:()=>h,metadata:()=>t,toc:()=>m});const t=JSON.parse('{"id":"using/connectors/list/log","title":"log","description":"A destination connector that logs all incoming records.","source":"@site/docs/1-using/5-connectors/7-list/4-log.mdx","sourceDirName":"1-using/5-connectors/7-list","slug":"/using/connectors/list/log","permalink":"/docs/using/connectors/list/log","draft":false,"unlisted":false,"editUrl":"https://github.com/conduitio/conduitio.github.io/edit/main/docs/1-using/5-connectors/7-list/4-log.mdx","tags":[],"version":"current","lastUpdatedAt":1751449016000,"sidebarPosition":4,"frontMatter":{"IMPORTANT":"This file was generated using src/connectorgen/main.go. DO NOT EDIT.","title":"log","description":"A destination connector that logs all incoming records."},"sidebar":"docsSidebar","previous":{"title":"kafka","permalink":"/docs/using/connectors/list/kafka"},"next":{"title":"postgres","permalink":"/docs/using/connectors/list/postgres"}}');var r=o(74848),i=o(28453),s=(o(82514),o(44744)),a=o(96300),c=(o(11470),o(19365),o(43294)),l=o(55281),d=o(9257),u=o(91922);const h={IMPORTANT:"This file was generated using src/connectorgen/main.go. DO NOT EDIT.",title:"log",description:"A destination connector that logs all incoming records."},g="log",p={},m=[{value:"Latest release",id:"latest-release",level:2},{value:"Description",id:"description",level:2},{value:"Destination",id:"destination",level:2},{value:"Known issues",id:"known-issues",level:3},{value:"Source Parameters",id:"source-parameters",level:2},{value:"Destination Parameters",id:"destination-parameters",level:2}];function x(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",header:"header",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.header,{children:(0,r.jsx)(n.h1,{id:"log",children:"log"})}),"\n",(0,r.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",gap:2,marginBottom:4,borderRadius:1,padding:2,backgroundColor:"rgba(0, 0, 0, 0.03)"},children:[(0,r.jsxs)(a.A,{sx:{display:"flex",alignItems:"center",gap:1},children:[(0,r.jsx)("span",{children:"Author: Meroxa, Inc."}
1),(0,r.jsx)(u.A,{title:"Created by the Conduit team",children:(0,r.jsx)("img",{src:"/img/conduit/conduit-ring.png",width:"18",alt:"Conduit team logo"})})]}),(0,r.jsx)(a.A,{sx:{borderLeft:"1px solid rgba(0, 0, 0, 0.12)",height:24}}),(0,r.jsx)(l.A,{href:"https://github.com/ConduitIO/conduit-connector-log",target:"_blank",sx:{display:"flex",alignItems:"center",gap:.5,color:"inherit",textDecoration:"none","&:hover":{textDecoration:"underline"}},children:(0,r.jsx)(c.A,{sx:{fontSize:"1.5rem"}})}),(0,r.jsx)(s.A,{icon:(0,r.jsx)(d.A,{sx:{fontSize:"1rem"}}),label:"1",size:"small",sx:{height:24}})]}),"\n",(0,r.jsx)(n.h2,{id:"latest-release",children:"Latest release"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Darwin_arm64.tar.gz",children:"conduit-connector-log_0.7.3_Darwin_arm64.tar.gz"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Darwin_x86_64.tar.gz",children:"conduit-connector-log_0.7.3_Darwin_x86_64.tar.gz"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Linux_arm64.tar.gz",children:"conduit-connector-log_0.7.3_Linux_arm64.tar.gz"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Linux_i386.tar.gz",children:"conduit-connector-log_0.7.3_Linux_i386.tar.gz"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Linux_x86_64.tar.gz",children:"conduit-connector-log_0.7.3_Linux_x86_64.tar.gz"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Windows_arm64.tar.gz",children:"conduit-connector-log_0.7.3_Windows_arm64.tar.gz"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Windows_i386.tar.gz",children:"conduit-connector-log_0.7.3_Windows_i386.tar.gz"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"https://conduit.gateway.scarf.sh/connector/download/ConduitIO/conduit-connector-log/releases/download/v0.7.3/conduit-connector-log_0.7.3_Windows_x86_64.tar.gz",children:"conduit-connector-log_0.7.3_Windows_x86_64.tar.gz"})}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"description",children:"Description"}),"\n",(0,r.jsx)(n.h2,{id:"destination",children:"Destination"}),"\n",(0,r.jsx)(n.p,{children:"The destination connector logs records using the built-in Conduit logger."}),"\n",(0,r.jsx)(n.p,{children:"Example log message:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{children:'{"level":"info","record":{"position":"cjI=","operation":"create","metadata":{"foo":"bar","opencdc.version":"v1"},"key":{"my-id-field":1},"payload":{"before":nil,"after":{"my-payload-field":false}}}}\n'})}),"\n",(0,r.jsxs)(n.p,{children:["Note that the ",(0,r.jsx)(n.code,{children:"position"})," field is base64 encoded, same goes for a key or payload\nthat contains raw byte data."]}),"\n",(0,r.jsx)(n.p,{children:"Keep in mind that Conduit's log level needs to be configured lower or equal to\nthe log level of the connector in order for the records to show up in the logs."}),"\n",(0,r.jsx)(n.h3,{id:"known-issues",children:"Known issues"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsxs)(n.strong,{children:["Only when using as a ",(0,r.jsx)(n.a,{href:"https://conduit.io/docs/core-concepts#standalone-connector",children:"standalone connector"})]}),": Messages larger than 64KB will not be logged when using ",(0,r.jsx)(n.code,{children:"log.level"})," as ",(0,r.jsx)(n.code,{children:"info"}),".\nThis is a known issue caused by the default buffer value of ",(0,r.jsx)(n.code,{children:"go-plugin"}),". More information can be found in ",(0,r.jsx)(n.a,{href:"https://github.com/ConduitIO/conduit-connector-log/issues/81#issuecomment-2904224580",children:"this comment"}),"."]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"source-parameters",children:"Source Parameters"}),"\n",(0,r.jsx)(n.p,{children:"Connector log does not implement a source."}),"\n",(0,r.jsx)(n.h2,{id:"destination-parameters",children:"Destination Parameters"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-yaml",children:'version: 2.2\npipelines:\n - id: example\n status: running\n connectors:\n - id: example-destination\n type: destination\n plugin: "log"\n name: example-destination\n settings:\n # The log level used to log records.\n # Type: string\n level: "info"\n # Optional message that should be added to the log output of every\n # record.\n # Type: string\n message: ""\n # Maximum delay before an incomplete batch is written to the\n # destination.\n # Type: duration\n sdk.batch.delay: "0"\n # Maximum size of batch before it gets written to the destination.\n # Type: int\n sdk.batch.size: "0"\n # Allow bursts of at most X records (0 or less means that bursts are\n # not limited). Only takes effect if a rate limit per second is set.\n # Note that if `sdk.batch.size` is bigger than `sdk.rate.burst`, the\n # effective batch size will be equal to `sdk.rate.burst`.\n # Type: int\n sdk.rate.burst: "0"\n # Maximum number of records written per second (0 means no rate\n # limit).\n # Type: float\n sdk.rate.perSecond: "0"\n # The format of the output record. See the Conduit documentation for a\n # full list of supported formats\n # (https://conduit.io/docs/using/connectors/configuration-parameters/output-format).\n # Type: string\n sdk.record.format: "opencdc/json"\
1n # Options to configure the chosen output record format. Options are\n # normally key=value pairs separated with comma (e.g.\n # opt1=val2,opt2=val2), except for the `template` record format, where\n # options are a Go template.\n # Type: string\n sdk.record.format.options: ""\n # Whether to extract and decode the record key with a schema.\n # Type: bool\n sdk.schema.extract.key.enabled: "true"\n # Whether to extract and decode the record payload with a schema.\n # Type: bool\n sdk.schema.extract.payload.enabled: "true"\n'})})]})}function f(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(x,{...e})}):x(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.