1"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([[10311],{3905:(e,t,o)=>{o.d(t,{Zo:()=>p,kt:()=>h});var r=o(67294);function n(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function a(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?i(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):i(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function s(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}var l=r.createContext({}),c=function(e){var t=r.useContext(l),o=t;return e&&(o="function"==typeof e?e(t):a(a({},t),e)),o},p=function(e){var t=c(e.components);return r.createElement(l.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},g=r.forwardRef((function(e,t){var o=e.components,n=e.mdxType,i=e.originalType,l=e.parentName,p=s(e,["components","mdxType","originalType","parentName"]),u=c(o),g=n,h=u["".concat(l,".").concat(g)]||u[g]||d[g]||i;return o?r.createElement(h,a(a({ref:t},p),{},{components:o})):r.createElement(h,a({ref:t},p))}));function h(e,t){var o=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var i=o.length,a=new Array(i);a[0]=g;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s[u]="string"==typeof e?e:n,a[1]=s;for(var c=2;c<i;c++)a[c]=o[c];return r.createElement.apply(null,a)}return r.createElement.apply(null,o)}g.displayName="MDXCreateElement"},33057:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>l,contentTitle:()=>a,default:()=>d,frontMatter:()=>i,metadata:()=>s,toc:()=>c});var r=o(87462),n=(o(67294),o(3905));const i={id:"Vector-data",title:"Vector",overview:"Vector by Datadog is a lightweight, ultra-fast tool for building observability pipelines. Deploy this integration to send logs from your Vector tools to your Logz.io account.",product:["logs"],os:["windows","linux"],filters:["Other"],logo:"https://logzbucket.s3.eu-west-1.amazonaws.com/logz-docs/shipper-logos/vector.svg",logs_dashboards:[],logs_alerts:[],logs2metrics:[],metrics_dashboards:[],metrics_alerts:[],drop_filter:[]},a=void 0,s={unversionedId:"shipping/Other/Vector-data",id:"shipping/Other/Vector-data",title:"Vector",description:"Vector by Datadog is a lightweight, ultra-fast tool for building observability pipelines. Deploy this integration to send logs from your Vector tools to your Logz.io account.",source:"@site/docs/shipping/Other/vector.md",sourceDirName:"shipping/Other",slug:"/shipping/Other/Vector-data",permalink:"/docs/shipping/Other/Vector-data",draft:!1,editUrl:"https://github.com/logzio/documentation/tree/master/docs/shipping/Other/vector.md",tags:[],version:"current",frontMatter:{id:"Vector-data",title:"Vector",overview:"Vector by Datadog is a lightweight, ultra-fast tool for building observability pipelines. Deploy this integration to send logs from your Vector tools to your Logz.io account.",product:["logs"],os:["windows","linux"],filters:["Other"],logo:"https://logzbucket.s3.eu-west-1.amazonaws.com/logz-docs/shipper-logos/vector.svg",logs_dashboards:[],logs_alerts:[],logs2metrics:[],metrics_dashboards:[],metrics_alerts:[],drop_filter:[]},sidebar:"tutorialSidebar",previous:{title:"Uptime.com",permalink:"/docs/shipping/Other/uptime-data"},next:{title:"Vercel",permalink:"/docs/shipping/Other/Vercel-data"}},l={},c=[{value:"Install Vector",id:"install-vector",level:3},{value:"Configure Vector with Logz.io sink",id:"configure-vector-with-logzio-sink",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Run Vector",id:"run-vector",level:3},{value:"Check Logz.io for your logs",id:"check-logzio-for-your-logs",level:3}],p={toc:c},u="wrapper";
1function d(e){let{components:t,...o}=e;return(0,n.kt)(u,(0,r.Z)({},p,o,{components:t,mdxType:"MDXLayout"}),(0,n.kt)("p",null,"Vector by Datadog is a lightweight, ultra-fast tool for building observability pipelines. Deploy this integration to send logs from your Vector tools to your Logz.io account."),(0,n.kt)("h3",{id:"install-vector"},"Install Vector"),(0,n.kt)("p",null,"If you haven't already, install Vector:"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-shell"},"curl https://sh.vector.dev -sSf | sh\n")),(0,n.kt)("p",null,"For alternate installation instructions,\nsee ",(0,n.kt)("a",{parentName:"p",href:"https://vector.dev/docs/setup/"},"Installation")," from Vector."),(0,n.kt)("h3",{id:"configure-vector-with-logzio-sink"},"Configure Vector with Logz.io sink"),(0,n.kt)("p",null,"Add this code block to your Vector configuration file.\nWe recommend the configuaration shown in the code block."),(0,n.kt)("admonition",{type:"note"},(0,n.kt)("p",{parentName:"admonition"},"Find the complete configuration docs at ",(0,n.kt)("a",{parentName:"p",href:"https://vector.dev/docs/reference/configuration/sinks/http/"},"http sink")," from Vector.")),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-toml"},'[sinks.logzio]\n # REQUIRED - General\n type = "http" # Don\'t change this setting\n inputs = ["YOUR_SOURCE_ID"]\n encoding.codec = "json" # enum: "json" or "text"\n\n # More information on uri below this code block\n uri = "https://<<LISTENER-HOST>>:8071/?token=<<LOG-SHIPPING-TOKEN>>&type=vector"\n\n # OPTIONAL - General\n compression = "gzip" # no default, must be: "gzip" (if supplied)\n\n # OPTIONAL - Batching\n batch.max_bytes = 9000000 # bytes - Logz.io max batch is 10MB\n batch.timeout_secs = 3\n\n # OPTIONAL - Buffer\n [sinks.logzio.buffer]\n type = "disk" # default, enum: "memory" or "disk"\n when_full = "block" # default, enum: "block" or "drop_newest"\n max_size = 268435488 # no default, bytes(104.9mb), relevant when type = "disk"\n')),(0,n.kt)("admonition",{type:"note"},(0,n.kt)("p",{parentName:"admonition"},"If you get a 400 error when using ",(0,n.kt)("inlineCode",{parentName:"p"},"json")," encoding, try use port 8081 instead of 8071.")),(0,n.kt)("admonition",{type:"note"},(0,n.kt)("p",{parentName:"admonition"},"If your logs are sent in batches, change the ",(0,n.kt)("inlineCode",{parentName:"p"},"encoding.codec")," setting from ",(0,n.kt)("inlineCode",{parentName:"p"},"json")," to ",(0,n.kt)("inlineCode",{parentName:"p"},"text"),".")),(0,n.kt)("h4",{id:"parameters"},"Parameters"),(0,n.kt)("table",null,(0,n.kt)("thead",{parentName:"table"},(0,n.kt)("tr",{parentName:"thead"},(0,n.kt)("th",{parentName:"tr",align:null},"Parameter"),(0,n.kt)("th",{parentName:"tr",align:null},"Description"))),(0,n.kt)("tbody",{parentName:"table"},(0,n.kt)("tr",{parentName:"tbody"},(0,n.kt)("td",{parentName:"tr",align:null},"uri (Required)"),(0,n.kt)("td",{parentName:"tr",align:null},"Your Logz.io region's listener URL account token, and log type. Replace ",(0,n.kt)("inlineCode",{parentName:"td"},"<<LISTENER-HOST>>")," with the host ",(0,n.kt)("a",{parentName:"td",href:"https://docs.logz.io/docs/user-guide/admin/hosting-regions/account-region/#available-regions"},"for your region"),". The required port depends whether HTTP or HTTPS is used: HTTP = 8070, HTTPS = 8071. Replace ",(0,n.kt)("inlineCode",{parentName:"td"},"<<LOG-SHIPPING-TOKEN>>")," with the token of the account you want to ship to.")))),(0,n.kt)("h3",{id:"run-vector"},"Run Vector"),(0,n.kt)("pre",null,(0,n.kt)("code",{parentName:"pre",className:"language-shell"},"vector --config path/to/your/vector.toml\n")),(0,n.kt)("h3",{id:"check-logzio-for-your-logs"},"Check Logz.io for your logs"),(0,n.kt)("p",null,"Give your logs some time to get from your system to ours, and then open ",(0,n.kt)("a",{parentName:"p",href:"https://app.logz.io/#/dashboard/osd"},"Open Search Dashboards"),"."),(0,n.kt)("p",null,"If you still don't see your logs, see ",(0,n.kt)("a",{parentName:"p",href:"https://docs.logz.io/docs/user-guide/log-management/troubleshooting/log-shipping-troubleshooting/"},"log shipping troubleshooting"),"."))}d.isMDXComponent=!0}}]);
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.