1"use strict";(globalThis.webpackChunkmy_website=globalThis.webpackChunkmy_website||[]).push([[2546],{24850:(e,o,s)=>{s.r(o),s.d(o,{assets:()=>l,contentTitle:()=>c,default:()=>u,frontMatter:()=>i,metadata:()=>n,toc:()=>a});const n=JSON.parse('{"id":"usage/processors/file","title":"File Processor","description":"File processor saves the execution output to a single log file in the specified directory","source":"@site/versioned_docs/version-v1/usage/processors/file.md","sourceDirName":"usage/processors","slug":"/usage/processors/file","permalink":"/docs/v1/usage/processors/file","draft":false,"unlisted":false,"editUrl":"https://github.com/distribworks/dkron/tree/main/website/docs/versioned_docs/version-v1/usage/processors/file.md","tags":[],"version":"v1","frontMatter":{"title":"File Processor"},"sidebar":"tutorialSidebar","previous":{"title":"Developing plugins","permalink":"/docs/v1/usage/plugins/develop"},"next":{"title":"Log Processor","permalink":"/docs/v1/usage/processors/log"}}');var r=s(86070),t=s(48193);const i={title:"File Processor"},c=void 0,l={},a=[{value:"Configuration",id:"configuration",level:2}];function d(e){const o={code:"code",h2:"h2",p:"p",pre:"pre",...(0,t.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(o.p,{children:"File processor saves the execution output to a single log file in the specified directory"}),"\n",(0,r.jsx)(o.h2,{id:"configuration",children:"Configuration"}),"\n",(0,r.jsx)(o.p,{children:"Parameters"}),"\n",(0,r.jsx)(o.pre,{children:(0,r.jsx)(o.code,{children:"log_dir: Path to the location where the log files will be saved\nforward: Forward log output to the next processor\n"})}),"\n",(0,r.jsx)(o.p,{children:"Example"}),"\n",(0,r.jsx)(o.pre,{children:(0,r.jsx)(o.code,{className:"language-json",children:'{\n "name": "job_name",\n "command": "echo \'Hello files\'",\n "schedule": "@every 2m",\n "tags": {\n "role": "web"\n },\n "processors": {\n "files": {\n "log_dir": "/var/log/mydir",\n "forward": true\n }\n }\n}\n'})})]})}function u(e={}){const{wrapper:o}={...(0,t.R)(),...e.components};return o?(0,r.jsx)(o,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},48193:(e,o,s)=>{s.d(o,{R:()=>i,x:()=>c});var n=s(30758);const r={},t=n.createContext(r);function i(e){const o=n.useContext(t);return n.useMemo(function(){return"function"==typeof e?e(o):{...o,...e}},[o,e])}function c(e){let o;return o=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(t.Provider,{value:o},e.children)}}}]);
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.