{"id":6954,"date":"2026-09-27T19:47:41","date_gmt":"2026-09-28T00:47:41","guid":{"rendered":"https:\/\/querystreams.com\/docs\/query-docker-container-logs-with-sql\/"},"modified":"2026-11-09T10:38:22","modified_gmt":"2026-11-09T16:38:22","password":"","slug":"query-docker-container-logs-with-sql","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/nl\/docs\/query-docker-container-logs-with-sql\/","title":{"rendered":"Query Docker-containerlogboeken met SQL"},"content":{"rendered":"\n<article class=\"qs-d qs-d--fileset qs-d--v5\" data-src=\"containerlogs\" data-dest=\"sql\" style=\"--qs-src:96 165 250;--qs-src-deep:29 78 216;--qs-src-ink:29 78 216;--qs-src-tint:#a8cefc;--qs-dst:19 50 59;--qs-dst-tint:#8ed6bd\">\n<section class=\"qs-v5-hero qs-v5-hero--doc\" data-qs-art=\"hero-fileset\" aria-label=\"Introduction\"><div class=\"qs-v5-hero__words\"><div class=\"qs-v5-lockup\"><span class=\"qs-v5-lockup__item\"><span class=\"qs-v5-lockup__mark\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/09\/icon-container-logs-128.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/span><span class=\"qs-v5-lockup__name\">Container logs<\/span><\/span><i class=\"fa-solid fa-arrow-right qs-v5-lockup__arrow\" aria-hidden=\"true\"><\/i><span class=\"qs-v5-lockup__item qs-v5-lockup__item--qs\"><span class=\"qs-v5-lockup__mark\"><a class=\"lnk\" href=\"https:\/\/my.querystreams.com\" rel=\"noopener\" title=\"Start free on the Free plan\" aria-label=\"Start free on the Free plan\" data-qs-cta=\"signup\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/qs-logo-mark-120.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/a><span class=\"qs-v5-lockup__pill\">Free plan<\/span><\/span><span class=\"qs-v5-lockup__name\">Query Streams<\/span><\/span><i class=\"fa-solid fa-arrow-right qs-v5-lockup__arrow\" aria-hidden=\"true\"><\/i><span class=\"qs-v5-lockup__item\"><span class=\"qs-v5-lockup__mark\"><a class=\"lnk\" href=\"https:\/\/querystreams.com\/features\/\" title=\"Query Streams features\" aria-label=\"Query Streams features\" data-qs-cta=\"feature\"><img decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/tile-querystreams-data-connectors-t2-180.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/a><\/span><span class=\"qs-v5-lockup__name\">SQL tables<\/span><\/span><\/div><p class=\"qs-v5-hero__eyebrow\">Container log folder &rarr; SQL tables &middot; with Query Streams<\/p><p class=\"qs-v5-hero__lede\">With Query Streams, your Docker container logs become read-only SQL tables: the logs stay where they are, the Agent on that computer reads new lines as the files grow into an encrypted local cache, and nothing is uploaded or changed. About fifteen minutes the first time, and the Free plan covers it.<\/p><a class=\"qs-v5-hero__btn\" href=\"https:\/\/my.querystreams.com\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"signup\">Start free<\/a><\/div><figure class=\"qs-v5-hero__art\"><picture><source media=\"(max-width: 640px)\" srcset=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\"><img fetchpriority=\"high\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-720.webp\" srcset=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-480.webp 480w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-720.webp 720w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-1080.webp 1080w, https:\/\/querystreams.com\/wp-content\/uploads\/2026\/11\/hero-fileset-t1-1440.webp 1440w\" sizes=\"(max-width: 900px) min(420px, calc(100vw - 97px)), min(720px, calc((100vw - 184px - min(5vw, 72px)) * 7 \/ 12))\" width=\"1440\" height=\"960\" alt=\"Isometric stack of three file sheets linked by one line to a single table tile\" loading=\"eager\" fetchpriority=\"high\" decoding=\"async\"><\/picture><\/figure><\/section>\n<div class=\"qs-d-support\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Stuck at any point? Just ask us.<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams (top-right menu &rarr; Support) and send us a message. Real people read it, and &ldquo;I don&rsquo;t know what this screen is asking for&rdquo; is a perfectly good question.<\/div><\/div>\n\n<h2 id=\"result\">What you&rsquo;ll end up with<\/h2>\n<p class=\"qs-d-lead\"><img decoding=\"async\" class=\"qs-d-lead__icon\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/09\/icon-container-logs-128.png\" alt=\"Container Logs icon\" width=\"28\" height=\"28\"><span>You end up with a table called <code>events<\/code> in the <code>fileset<\/code> schema, holding one row per line from your Docker logs. With the Docker json-file profile the columns are <code>app<\/code> (the container name), <code>stream<\/code>, <code>level<\/code>, <code>logger<\/code>, <code>message<\/code>, <code>host<\/code>, <code>service<\/code> and <code>data<\/code>, plus <code>image<\/code>, <code>compose_project<\/code>, <code>compose_service<\/code>, <code>container_id<\/code> and <code>event_time<\/code>. You can query it with SQL from Excel, Google Sheets, a dashboard or any tool that speaks to Query Streams. The log files never leave the computer the Agent runs on. This is not Docker&rsquo;s MCP Toolkit and it does not run or manage containers; it only reads their logs.<\/span><\/p>\n<div class=\"qs-d-grid\" style=\"grid-template-columns:minmax(200px,1fr) minmax(0,2fr)\" role=\"img\" data-qs-seen=\"result\" aria-label=\"A folder with three files on the left and, on the right, the SQL table they become, with a _source_file column naming the file each row came from\"><div class=\"qs-d-card\" data-zone=\"src\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-pill src\"><i class=\"fa-solid fa-folder-open\"><\/i> Your folder<\/span><h3>files that arrive over time<\/h3><table class=\"qs-d-table\"><tbody><tr><td><i class=\"fa-regular fa-file\"><\/i> app-2026-09-25.log<\/td><\/tr><tr><td><i class=\"fa-regular fa-file\"><\/i> app-2026-09-26.log<\/td><\/tr><tr><td><i class=\"fa-regular fa-file\"><\/i> app-2026-09-27.log<\/td><\/tr><\/tbody><\/table><\/div><div class=\"qs-d-card\" data-zone=\"dst\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-pill dst\"><i class=\"fa-solid fa-table\"><\/i> fileset.events<\/span><h3>every file&rsquo;s rows, one table<\/h3><div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\"><thead><tr><th>_source_file<\/th><th>event_time<\/th><th>app<\/th><\/tr><\/thead><tbody><tr><td>app-2026-09-25.log<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><tr><td>app-2026-09-26.log<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><tr><td>app-2026-09-27.log<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><\/tbody><\/table><\/div><\/div><\/div>\n<p>Lines land in <code>events<\/code>, or the <strong>Table name<\/strong> you set. Every row carries <code>_stream_id<\/code> (one per log file, kept across rotations), <code>_line_no<\/code>, <code>event_time<\/code>, <code>event_time_raw<\/code>, the identity column <code>app<\/code>, the profile&rsquo;s columns, <code>_source_file<\/code> and <code>_row_id<\/code>. Always sort by <code>event_time<\/code>.<\/p><table class=\"qs-d-table\"><thead><tr><th>Table<\/th><th>What it holds<\/th><\/tr><\/thead><tbody><tr><td><code>events<\/code><\/td><td>One row per log line, with <code>event_time<\/code>, <code>app<\/code>, <code>stream<\/code>, <code>message<\/code>, the other profile columns, <code>_source_file<\/code> and <code>_line_no<\/code>.<\/td><\/tr><tr><td><code>events_raw_lines<\/code><\/td><td>Lines that did not parse, kept as <code>line<\/code> with a <code>reason<\/code>: no-grammar-match, undecodable, nul-bytes or record-max-lines. Nothing is dropped.<\/td><\/tr><tr><td><code>log_cursors<\/code>, <code>log_snapshot_records<\/code>, <code>sources<\/code>, <code>assets<\/code><\/td><td>Driver bookkeeping. A set-aside file shows in <code>log_cursors<\/code> as parked with the reason in <code>last_error<\/code>.<\/td><\/tr><\/tbody><\/table><p>Every folder connector also gives you <code>files<\/code>, <code>files_events<\/code>, <code>directories<\/code>, <code>directory_snapshots<\/code> and <code>volumes<\/code>.<\/p>\n<figure class=\"qs-d-figure\" data-qs-seen=\"flow\"><svg viewBox=\"0 0 900 210\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" role=\"img\" aria-label=\"WHERE THE FILES LIVE: your Docker container logs and the Query Streams Agent, which scans the folder and keeps the tables in a local cache; arrows to Query Streams in the middle; WHERE YOU USE IT: Excel, Google Sheets, Nova, Claude and the REST API\"><defs><marker id=\"qsArrowH\" viewBox=\"0 0 10 10\" refX=\"9\" refY=\"5\" markerWidth=\"8\" markerHeight=\"8\" orient=\"auto-start-reverse\"><path d=\"M0,0 L10,5 L0,10 z\" fill=\"#6589A6\"\/><\/marker><\/defs><rect x=\"14\" y=\"14\" width=\"380\" height=\"166\" rx=\"16\" fill=\"#ffffff\" stroke=\"#60a5fa\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"32\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#1d4ed8\" letter-spacing=\"1.5\">WHERE THE FILES LIVE<\/text><text x=\"32\" y=\"54\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#7D8688\">a computer or file share the Agent can open<\/text><rect x=\"36\" y=\"72\" width=\"160\" height=\"78\" rx=\"12\" fill=\"#60a5fa\" fill-opacity=\".12\" stroke=\"#60a5fa\" stroke-width=\"1.5\"\/><text x=\"116\" y=\"99\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#1d4ed8\">Your folder<\/text><text x=\"116\" y=\"116\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#1d4ed8\">of files<\/text><text x=\"116\" y=\"137\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#60a5fa\">files stay where they are<\/text><rect x=\"212\" y=\"72\" width=\"160\" height=\"78\" rx=\"12\" fill=\"#13323B\"\/><text x=\"292\" y=\"96\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#ffffff\">Query Streams Agent<\/text><text x=\"292\" y=\"114\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11.5\" fill=\"#a9dfcb\">scans the folder, builds tables<\/text><text x=\"292\" y=\"130\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11.5\" fill=\"#a9dfcb\">in a local cache, runs the SQL<\/text><text x=\"292\" y=\"144\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10.5\" fill=\"#a9dfcb\">SELECT only, enforced here<\/text><line x1=\"198\" y1=\"111\" x2=\"208\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" marker-end=\"url(#qsArrowH)\"\/><line x1=\"394\" y1=\"111\" x2=\"428\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" stroke-dasharray=\"4 4\" marker-start=\"url(#qsArrowH)\" marker-end=\"url(#qsArrowH)\"\/><rect x=\"432\" y=\"80\" width=\"100\" height=\"62\" rx=\"31\" fill=\"#66C0A3\"\/><text x=\"482\" y=\"106\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"12\" font-weight=\"700\" fill=\"#0b2027\">Query Streams<\/text><text x=\"482\" y=\"121\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"10.5\" fill=\"#0b2027\">one outbound link<\/text><line x1=\"534\" y1=\"111\" x2=\"568\" y2=\"111\" stroke=\"#6589A6\" stroke-width=\"2.5\" stroke-dasharray=\"4 4\" marker-start=\"url(#qsArrowH)\" marker-end=\"url(#qsArrowH)\"\/><text x=\"482\" y=\"166\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#6589A6\">checks who may see what &middot; logs every query<\/text><rect x=\"572\" y=\"14\" width=\"314\" height=\"166\" rx=\"16\" fill=\"#ffffff\" stroke=\"#66C0A3\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"590\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#13323B\" letter-spacing=\"1.5\">WHERE YOU USE IT<\/text><text x=\"590\" y=\"54\" font-family=\"system-ui, sans-serif\" font-size=\"11\" fill=\"#7D8688\">any computer, any browser<\/text><rect x=\"594\" y=\"72\" width=\"270\" height=\"78\" rx=\"12\" fill=\"#66C0A3\" fill-opacity=\".12\" stroke=\"#66C0A3\" stroke-opacity=\".6\"\/><text x=\"729\" y=\"100\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#13323B\">Excel &middot; Google Sheets &middot; Nova<\/text><text x=\"729\" y=\"122\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#13323B\">Claude &middot; REST API &middot; Automations<\/text><text x=\"729\" y=\"140\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"11.5\" fill=\"#13323B\">see the rows, never the files<\/text><\/svg><figcaption>The Agent reads the folder on its own computer, keeps the rows in an encrypted local cache there and runs every query against that cache. Only the rows a query returns travel out, over one outbound connection. No port to open, no VPN, no upload.<\/figcaption><\/figure>\n<p>Where it earns its keep:<\/p>\n<ul class=\"qs-d-related\">\n  <li>Count errors per container in a dashboard without a log platform or an agent inside each container.<\/li>\n  <li>Pull one service&#8217;s log lines into Excel or Google Sheets for an incident write-up.<\/li>\n  <li>Compare stderr volume across compose services after a deploy.<\/li>\n<\/ul>\n\n<h2 id=\"need\">What you&rsquo;ll need<\/h2>\n<div class=\"qs-d-grid\" data-qs-seen=\"need\"><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-user-plus\"><\/i><\/span><h3>A Query Streams account<\/h3><p>Folder connectors are on every plan, including Free. Free is a plan you keep, not a trial that expires. There is no cap on how many files a folder may hold.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"src\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/09\/icon-container-logs-128.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><h3>The Agent, 2.6.0 or later<\/h3><p>Installed on a computer that can open the folder: the file server itself, an office computer, or the machine the files land on. An older Agent shows the folder cards greyed out with an <strong>Agent 2.6.0+<\/strong> badge. Windows, Mac or Linux.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-route\"><\/i><\/span><h3>The folder&rsquo;s path, as the Agent sees it<\/h3><p>A local path, or a network share written as <code>\\\\server\\share\\folder<\/code>. The Agent runs as a service, so it cannot see drives you mapped at your login (Z: and friends). On Windows it can sign in to a share with a login you store; on Linux or a Mac, mount the share first (Linux under <code>\/mnt<\/code> or <code>\/media<\/code>, a Mac under <code>\/Volumes<\/code>).<\/p><\/div><\/div><div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-circle-info\"><\/i><p><strong>Where does the work happen?<\/strong> On the computer that runs the Agent. It scans the folder, copies the rows into an encrypted local cache there (one schema, named <code>fileset<\/code>) and runs every query against that cache. Your files are read, never modified, moved or uploaded.<\/p><\/div>\n\n<h2 id=\"steps\">Set it up in five steps<\/h2>\n<ol class=\"qs-d-steps\" data-qs-seen=\"steps\">\n<li class=\"qs-d-step\" data-qs-step=\"1\" id=\"step-1\"><h3>Install the Agent on a computer that can open the folder <span class=\"qs-d-os\" role=\"img\" aria-label=\"Windows, Mac and Linux\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-windows-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-apple-inc-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2026\/03\/icons8-linux-48.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><\/h3><p>Sign in, open <a href=\"https:\/\/my.querystreams.com\/download\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"download\">Download<\/a>, and install the Agent for your system on the computer that can open your Docker container logs: the file server, or any always-on computer that can reach the share. It takes a minute and starts on its own from then on. You need version 2.6.0 or later; the Download page always has the current one.<\/p><div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-network-wired\"><\/i><p><strong>Why a small program instead of a driver?<\/strong> The Agent is one install for Windows, Mac or Linux (about 85 MB on Windows, a little over 100 MB on Mac and Linux). It opens one outbound encrypted connection to Query Streams and that is the only network path it needs: no inbound port to open, no VPN. It reads the folder where it sits, so the files stay put and only the rows a query returns travel across the internet to the add-in, browser or AI client on your side.<\/p><\/div><p>The Download page shows <strong>Your Access Key<\/strong>. Paste it into the Agent when it asks, and wait for the badge to read <strong>Connected to Query Streams<\/strong>. That is the only thing you do on the Agent&rsquo;s computer; everything else happens in your browser.<\/p><p>Full walkthroughs if you want them: <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-windows\/\" data-qs-cta=\"install_doc\">Windows<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-macos\/\" data-qs-cta=\"install_doc\">Mac<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/installing-query-streams-agent-linux\/\" data-qs-cta=\"install_doc\">Linux<\/a>.<\/p><\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"2\" id=\"step-2\">\n      <h3>Point it at your Docker container logs<\/h3>\n<p>Back in your browser open <a href=\"https:\/\/my.querystreams.com\/data-agents\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"data_agents\"><strong>Data &rarr; Data Agents<\/strong><\/a>, find the Agent you just installed and click its <strong>Add connector<\/strong> button. Open the <strong>Files &amp; Folders<\/strong> pill and pick the <strong>Container Logs<\/strong> card. Not sure which card fits? Pick <strong>Files in a folder<\/strong> instead: the Agent samples the folder, names what it holds on a &ldquo;What we found&rdquo; page and opens the right card for you, pre-filled.<\/p><p>The wizard runs <strong>Folders &rarr; Check &rarr; Settings &rarr; Realm &rarr; Review<\/strong>. On <strong>Folders<\/strong>:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"setup\"><dt>Root folders<\/dt><dd>One path per line, as the Agent&rsquo;s computer sees it. Each folder shows a status (reachable, denied, missing, unreachable, credentials invalid or not mounted) as soon as you add it. On a Windows Agent a share that needs a login gets one from the folder&rsquo;s <strong>Credential<\/strong> column, stored once per server; on Linux or a Mac, mount the share first.<\/dd><dt>Scan subfolders, Max depth<\/dt><dd>On, and 8 levels, by default.<\/dd><dt>Include patterns, Exclude patterns<\/dt><dd>Which files count. The include pattern starts with the right glob for this card. One connector reads one file type: a folder with CSV <em>and<\/em> Parquet files is two connectors on the same folder, one per type.<\/dd><dt>Follow symlinks and junctions<\/dt><dd>Off by default. The Agent does not follow shortcuts or cloud placeholders unless you turn this on.<\/dd><\/dl>\n      <div class=\"qs-d-note\" data-zone=\"src\"><i class=\"fa-solid fa-folder-open\"><\/i><div><p>On the Agent that can open the Docker log folder, click <strong>Add connector<\/strong>, open <strong>Files &amp; Folders<\/strong> and pick the <strong>Container Logs<\/strong> card. Once saved, it shows in the connector list as <strong>Log Files<\/strong>.<\/p><ul><li><strong>Description<\/strong> &mdash; a name for the connector.<\/li><li><strong>Root folders<\/strong> &mdash; the folders on the Agent computer, one per line. On Linux, mount shares under \/mnt or \/media.<\/li><li><strong>Include patterns<\/strong> &mdash; start as <code>**\/*-json.log<\/code>, <code>**\/*.log<\/code> and <code>**\/*.log.*<\/code>.<\/li><li><strong>Log type<\/strong> &mdash; pick the profile for your files. The list is built in; only <strong>Custom Log Folder<\/strong> lets you define a format.<\/li><li><strong>Table name<\/strong> &mdash; optional, defaults to <code>events<\/code>.<\/li><li><strong>Backfill (days)<\/strong> &mdash; 30. <strong>Keep events for N days<\/strong> &mdash; 30.<\/li><\/ul><\/div><\/div>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"3\" id=\"step-3\">\n      <h3>Check what it will build<\/h3>\n<p>On <strong>Check<\/strong> the Agent reads a sample of up to 64 files and shows what it will build. Nothing is created yet. The button reads <strong>Test connection<\/strong> until a verdict exists, then <strong>Next<\/strong>; <strong>Test again<\/strong> re-runs the sample after you change something. You will see one of four headlines:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"check\"><dt><span class=\"qs-d-pill\" data-zone=\"mint\">Ready to create<\/span><\/dt><dd>Every sampled file fits. The chips under it say how many folders were reachable, how many files and rows, and which tables will exist.<\/dd><dt><span class=\"qs-d-pill\" data-zone=\"slate\">Ready, with notes<\/span><\/dt><dd>Some files will be set aside, or the layout sniff refused. An amber banner says exactly which: &ldquo;{n} of {m} file(s) will be set aside&rdquo; with a <strong>Show which files and why<\/strong> list, and &ldquo;You can create it anyway &mdash; the connector will keep re-checking and reports the reason on its Manifest tab.&rdquo;<\/dd><dt><span class=\"qs-d-pill\" data-zone=\"rose\">These files are not this log type<\/span><\/dt><dd>The sample did not parse as this card&rsquo;s log format. Check you picked the right card, or use the <strong>Custom Log Folder<\/strong> card and describe the format.<\/dd><\/dl><p>A refusal or set-aside files never block you: click <strong>Next<\/strong>, finish the wizard and fix the odd files later. Only an offline Agent or a missing folder stops the wizard.<\/p>\n      <div class=\"qs-d-note\" data-zone=\"src\"><i class=\"fa-solid fa-magnifying-glass\"><\/i><div><p>If the sample does not match the log type you picked, the <strong>Check<\/strong> headline reads &ldquo;These files are not&rdquo; followed by the type. Open <strong>Agent&rsquo;s full report<\/strong> to see the reason, pick another <strong>Log type<\/strong> and click <strong>Test again<\/strong>. A refusal or set-aside files do not stop you: you can still click <strong>Next<\/strong> and create the connector. It keeps re-checking and reports the reason on its <strong>Manifest<\/strong> tab.<\/p><\/div><\/div>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"4\" id=\"step-4\">\n      <h3>Choose how often it scans, then create it<\/h3>\n<p>The defaults on <strong>Settings<\/strong> suit a folder that receives a few files a day. Four you may want to change:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"settings\"><dt>Scan interval<\/dt><dd><strong>Every hour<\/strong> by default; choose from every 5 minutes to daily. Each sweep compares size and modified time to find new, changed and vanished files.<\/dd><dt>Watch folder for changes (near real-time)<\/dt><dd>Off by default. On, the Agent reacts within seconds on local disks; on network shares it is best-effort and the scheduled scan remains the guarantee. <strong>Quiet period<\/strong> (15 seconds) waits for a file to finish being written.<\/dd><dt>Refresh before answering a query<\/dt><dd>Off by default. On, a query first re-scans when the last scan is older than the <strong>Staleness window<\/strong> (60 seconds), waiting at most the <strong>Query wait limit<\/strong> (5 seconds). It applies to people and add-ins, not to alert polling.<\/dd><dt>When a file vanishes<\/dt><dd><strong>Drop its rows<\/strong> by default, or <strong>Keep rows, mark deleted (tombstone)<\/strong>. The <strong>Vanish guard ratio<\/strong> (0.5) refuses a scan that loses more than half the files at once and keeps the previous inventory, which is what an offline share looks like.<\/dd><\/dl><p>Then pick the <strong>Data Realm<\/strong> the rows count against, check <strong>Review<\/strong> and click <strong>Create connector<\/strong>. The first scan starts right away. The connector&rsquo;s <strong>Manifest<\/strong> tab shows what it built and any file it set aside.<\/p>\n    <\/li>\n    <li class=\"qs-d-step\" data-qs-step=\"5\" id=\"step-5\">\n      <h3>Look at your tables<\/h3>\n      <p>Open the connector: the <strong>Manifest<\/strong> tab lists the tables it built and the <strong>Files<\/strong> dialog lists every log file with its state. In the <strong>Query Builder<\/strong> the same tables sit under the <code>fileset<\/code> schema. Three queries that work on day one:<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">stderr lines per container in the last hour<\/div><pre class=\"qs-d-code__body\">SELECT app, COUNT(*) AS stderr_lines, MAX(event_time) AS last_line\nFROM fileset.events\nWHERE stream = 'stderr'\n  AND event_time &gt;= now() - INTERVAL 1 HOUR\nGROUP BY app\nORDER BY stderr_lines DESC\nLIMIT 100<\/pre><\/div>\n<p>Which containers are writing to stderr right now and how much. The container that failed first usually has the earliest burst.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Latest error messages by container and image<\/div><pre class=\"qs-d-code__body\">SELECT event_time, app, image, level, message\nFROM fileset.events\nWHERE stream = 'stderr' OR message LIKE '%ERROR%'\nORDER BY event_time DESC\nLIMIT 100<\/pre><\/div>\n<p>The newest stderr lines with the container name and image, so a bad image rollout shows up across every container running it.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Which log files rotated or were set aside today<\/div><pre class=\"qs-d-code__body\">SELECT relative_path, event_type, detail, event_at\nFROM fileset.files_events\nWHERE event_type IN ('rotated', 'truncated', 'drift', 'refused')\n  AND event_at &gt;= now() - INTERVAL 1 DAY\nORDER BY event_at DESC\nLIMIT 100<\/pre><\/div>\n<p>File-level history for the day: which container logs rotated and whether any file was set aside, with the reason in detail.<\/p>\n<p>Every folder connector also serves the same bookkeeping tables, all in the <code>fileset<\/code> schema:<\/p><div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\" data-qs-seen=\"common\"><thead><tr><th>Table<\/th><th>What it holds<\/th><\/tr><\/thead><tbody><tr><td><code>files<\/code><\/td><td>Every file currently in the folder: path, name, extension, size, created and modified times, first and last seen. A view over <code>files_current<\/code>, which also keeps files that have vanished.<\/td><\/tr><tr><td><code>files_events<\/code><\/td><td>The change history: one row per file that <code>appeared<\/code>, was <code>modified<\/code>, <code>vanished<\/code>, was set aside (<code>drift<\/code>) or was <code>refused<\/code>, with the time in <code>event_at<\/code>, how it was noticed in <code>detected_by<\/code> and the reason in <code>detail<\/code>.<\/td><\/tr><tr><td><code>directories<\/code>, <code>directory_snapshots<\/code>, <code>volumes<\/code><\/td><td>Folder counts and sizes, how they grew, and the disks or shares the roots live on.<\/td><\/tr><tr><td><code>_source_file<\/code>, <code>_row_id<\/code><\/td><td>Two columns on every data row: which file the row came from, and a stable row id inside that file. Group by <code>_source_file<\/code> to compare files.<\/td><\/tr><\/tbody><\/table><\/div>\n    <\/li>\n<\/ol>\n\n<div class=\"qs-d-note\" data-zone=\"mint\"><i class=\"fa-solid fa-circle-check\"><\/i><p><strong>That&rsquo;s it.<\/strong> Drop a new file in the folder and, after the next scan, it is in the table. The files never left the computer they were on.<\/p><\/div>\n\n<!-- qs-partial:network-share -->\n<h2 id=\"network-share\">Reaching a file on a network share<\/h2>\n<p>The Agent opens files as a background service, not as you, so a file on another computer needs one extra step. Which step depends on the computer the Agent runs on.<\/p>\n<div class=\"qs-d-grid\" data-qs-seen=\"network-share\">\n  <div class=\"qs-d-card\" data-zone=\"mint\" id=\"network-share-windows\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-brands fa-windows\"><\/i><\/span>\n    <h3>Windows<\/h3>\n    <p>Type the network path, like <strong>\\\\server\\share\\folder<\/strong>, never a mapped drive letter such as <strong>S:<\/strong>, which the Agent cannot see. If the share only lets in named people, click <strong>Service identity<\/strong> (the chip under the path, or a folder&rsquo;s <strong>Credential<\/strong> column) and store a login for that server: a company domain account, or an account made on the server itself with <strong>Domain<\/strong> left blank. The Agent then signs in to that server and reads the file there, and every connector on that Agent that reads the same server must use the same login. Without a login, it reads as its own service account, which a company domain sees as the computer itself. <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-windows\" data-qs-cta=\"where_files\">Step by step on Windows<\/a><\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"slate\" id=\"network-share-linux\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-brands fa-linux\"><\/i><\/span>\n    <h3>Linux<\/h3>\n    <p>Share logins stored in the Portal are not used on Linux: an administrator mounts the share on the Agent&rsquo;s computer first, in a folder under <strong>\/mnt<\/strong> or <strong>\/media<\/strong>, because the Agent&rsquo;s service cannot see <strong>\/home<\/strong> or <strong>\/run\/user<\/strong>. In the connector, keep the <strong>\\\\server\\share<\/strong> path, which the Agent maps onto the mount, or type the mount path instead, such as <strong>\/mnt\/fileserver-shared\/Accounts<\/strong>. <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-linux\" data-qs-cta=\"where_files\">How to mount a share on Linux<\/a><\/p>\n  <\/div>\n  <div class=\"qs-d-card\" data-zone=\"slate\" id=\"network-share-macos\">\n    <span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span>\n    <span class=\"qs-d-chip\"><i class=\"fa-brands fa-apple\"><\/i><\/span>\n    <h3>Mac<\/h3>\n    <p>Share logins stored in the Portal are not used on a Mac: mount the share first from Terminal with <strong>sudo<\/strong>, in a folder under <strong>\/Volumes<\/strong>, so the Agent&rsquo;s background service can see it. In the connector, keep the <strong>\\\\server\\share<\/strong> path, which the Agent maps onto the mount, or type the mount path instead, such as <strong>\/Volumes\/fileserver-shared\/Accounts<\/strong>. <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-macos\" data-qs-cta=\"where_files\">How to mount a share on a Mac<\/a><\/p>\n  <\/div>\n<\/div>\n<p>If the test cannot get to the share, look for these words in its result: <strong>unreachable<\/strong> means the Agent&rsquo;s computer got no answer from the server. On Linux or a Mac, <strong>not mounted<\/strong> means the share still has to be mounted, and that message includes the exact mount command for your server.<\/p>\n<div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-folder-tree\"><\/i><p><strong>Folders on a share?<\/strong> On Windows, one login covers every folder you add from the same server. <strong>Watch folder for changes<\/strong> works on a share too, on a best-effort basis; the scheduled scan is what guarantees every change is picked up.<\/p><\/div>\n<!-- \/qs-partial:network-share -->\n<h3 id=\"share-status\">When a folder is not reachable<\/h3>\n<p>Every folder on the <strong>Folders<\/strong> step shows a status as soon as you add it. Hover the status to read the Agent&rsquo;s own message; its first words say which case it is.<\/p>\n<div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\"><thead><tr><th>Status or message<\/th><th>What it means<\/th><th>What to do<\/th><\/tr><\/thead><tbody>\n<tr><td><strong>denied<\/strong><\/td><td>The share did not let the Agent in. With no login stored, a Windows Agent reads as its service account, which a company domain sees as the computer itself.<\/td><td>Windows: click <strong>Service identity<\/strong> in the folder&rsquo;s <strong>Credential<\/strong> column and store a login that can read the share, or ask whoever runs the server to give the stored one read access. Linux or Mac: the share is mounted, but its permissions keep the Agent out; check how it is mounted (<a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-linux\" data-qs-cta=\"where_files\">Linux<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-macos\" data-qs-cta=\"where_files\">Mac<\/a>).<\/td><\/tr>\n<tr><td><strong>credentials invalid<\/strong>, or <strong>The stored credentials for \\\\server were refused<\/strong><\/td><td>The server rejected the stored login: a typo, the wrong domain or a changed password. The Agent waits a minute before it tries that login again, so the account is not locked out.<\/td><td>Click the account name in the <strong>Credential<\/strong> column and type the login again. For an account made on the server itself, leave <strong>Domain<\/strong> blank.<\/td><\/tr>\n<tr><td><strong>missing<\/strong><\/td><td>No folder at that path. On Windows, a server name that cannot be found, or a share the server does not have, also shows as missing.<\/td><td>Check the names, or pick the folder with <strong>Add folder from the agent<\/strong> instead of typing it.<\/td><\/tr>\n<tr><td><strong>unreachable<\/strong>, or <strong>\\\\server did not answer<\/strong><\/td><td>No answer from the server: it is off, the name is wrong, or a firewall blocks file sharing.<\/td><td>Open the same <strong>\\\\server\\share<\/strong> path on the Agent&rsquo;s computer. If that fails too, it is a network problem.<\/td><\/tr>\n<tr><td><strong>not mounted<\/strong> (Linux or Mac)<\/td><td>The share is not mounted on the Agent&rsquo;s computer. Hover the status, or the <strong>Not mounted<\/strong> chip in the <strong>Credential<\/strong> column, for the exact mount command.<\/td><td>Mount the share (<a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-linux\" data-qs-cta=\"where_files\">Linux<\/a>, <a href=\"https:\/\/querystreams.com\/docs\/where-the-agent-can-read-files-from\/#share-macos\" data-qs-cta=\"where_files\">Mac<\/a>), then test the folder again.<\/td><\/tr>\n<tr><td><strong>Another connector on this agent already signs in to \\\\server as &hellip;<\/strong><\/td><td>Windows allows one account per file server on each computer, and another connector on this Agent uses a different one.<\/td><td>Use the same login as that connector, or change it on every connector that reads this server.<\/td><\/tr>\n<tr><td><strong>Windows already holds a sign-in to \\\\server for &hellip;<\/strong><\/td><td>Something else on the Agent&rsquo;s computer is signed in to that server with another account, and the Agent never closes a sign-in it did not make.<\/td><td>Follow the message: it names the Windows account the Agent runs as and says whether <strong>Use service identity<\/strong> would read the share through the existing sign-in.<\/td><\/tr>\n<tr><td><strong>This agent build cannot sign in to \\\\server with stored credentials.<\/strong><\/td><td>An older Agent that cannot use a stored share login.<\/td><td>Update the Agent, then test again.<\/td><\/tr>\n<\/tbody><\/table><\/div>\n\n<h2 id=\"use\">Use it everywhere<\/h2>\n<p>The connector is a data source like any other in Query Streams. Save a query once in the <strong>Query Builder<\/strong> (the dialect is DuckDB) and use it from:<\/p><div class=\"qs-d-grid\" style=\"grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr))\" data-qs-seen=\"use\"><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/querystreams.com\/wp-content\/uploads\/2025\/09\/icons8-excel-40.png\" alt=\"\" width=\"22\" height=\"22\" loading=\"lazy\"><\/span><h3>Excel<\/h3><p>The add-in&rsquo;s <strong>Stream a Query<\/strong> drops the rows into a sheet and re-runs on a click. <a href=\"https:\/\/querystreams.com\/docs\/sql-in-excel\/\" data-qs-cta=\"use_excel\">Running SQL in Excel<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-table-cells\"><\/i><\/span><h3>Google Sheets<\/h3><p>The <strong>Query Streamer<\/strong> add-on fills a tab you pick. <a href=\"https:\/\/querystreams.com\/docs\/power-query-for-google-sheets\/\" data-qs-cta=\"use_sheets\">Power Query for Google Sheets<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-comments\"><\/i><\/span><h3>Claude, Cursor and other AI clients<\/h3><p>Through the Query Streams MCP server; Claude knows the folder model, including <code>_source_file<\/code> and <code>files_events<\/code>. <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-docker-logs-to-claude-via-mcp\/\" data-qs-cta=\"use_mcp\">Container Logs with Claude via MCP<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-code\"><\/i><\/span><h3>REST API<\/h3><p>Any saved query becomes a read-only endpoint with its own key, on every plan. <a href=\"https:\/\/querystreams.com\/docs\/container-logs-rest-api\/\" data-qs-cta=\"use_api\">Container Logs REST API<\/a>.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"deep\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-robot\"><\/i><\/span><h3>Nova<\/h3><p>Ask in plain English on the Business plan; Nova knows every folder table and column from its built-in descriptions.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"deep\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-clock-rotate-left\"><\/i><\/span><h3>Automations<\/h3><p>Sync the rows to Airtable, Smartsheet, Baserow, SeaTable or a sheet on a schedule. <a href=\"https:\/\/querystreams.com\/docs-category\/automation-integrations\/\" data-qs-cta=\"use_auto\">Automation guides<\/a>.<\/p><\/div><\/div><p>Folder tables join to your other connectors too: a federated query can match <code>_source_file<\/code> names or order ids in your Docker container logs against a database on the same Agent.<\/p>\n\n<h2 id=\"fresh\">How new, changed and deleted files show up<\/h2>\n<div class=\"qs-d-grid\" data-qs-seen=\"fresh\"><div class=\"qs-d-card\" data-zone=\"mint\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-file-circle-plus\"><\/i><\/span><h3>New and changed files<\/h3><p>On every <strong>Scan interval<\/strong> (or within seconds with <strong>Watch folder<\/strong> on) a new file that fits the layout has its rows added and gets an <code>appeared<\/code> event. A changed file is re-read in one transaction: its old rows go, its new rows come, and it gets a <code>modified<\/code> event. Log files are tailed as they grow; a rotated file keeps its stream id.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"slate\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-file-circle-xmark\"><\/i><\/span><h3>Deleted files<\/h3><p>A file that vanishes drops its rows by default, or keeps them marked deleted if you chose the tombstone option, and gets a <code>vanished<\/code> event. If more than half the files disappear at once the scan is refused and the previous inventory stays: an offline share looks exactly like that.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"rose\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-box-archive\"><\/i><\/span><h3>Set-aside files<\/h3><p>A file that does not fit the layout, cannot be opened, or is over a cap is set aside whole: none of its rows load, and <code>files_events<\/code> gets a <code>drift<\/code> row naming the file and the column. Fix the file and save it; the next scan tries it again.<\/p><\/div><div class=\"qs-d-card\" data-zone=\"dst\"><span class=\"qs-d-card__bar\"><\/span><span class=\"qs-d-card__blob\"><\/span><span class=\"qs-d-chip\"><i class=\"fa-solid fa-clock\"><\/i><\/span><h3>How fresh is what I see?<\/h3><p>Queries answer from the last scan. There is no Rescan or Sync now button; the scan interval, the folder watcher and <strong>Refresh before answering a query<\/strong> are the three controls. <code>MAX(last_seen_utc)<\/code> from <code>files_current<\/code> tells you when the Agent last looked.<\/p><\/div><\/div>\n<div class=\"qs-d-note\" data-zone=\"src\"><i class=\"fa-solid fa-scroll\"><\/i><div><p>The Agent tails each container log as it grows. Every file keeps a byte and line cursor, so only new lines are read on each scan, and a half-written last line waits for the next one. A rotated file is recognised by its first 4 KB and keeps the same <code>_stream_id<\/code>, so nothing is counted twice. Each <code>.gz<\/code> member is read once; <code>.zip<\/code>, <code>.cab<\/code> and <code>.journal<\/code> files are skipped. The first read goes back 30 days by default, at most 64 MiB per file, and lines are kept for 30 days unless you change <strong>Keep events for N days<\/strong>. To see each log file, its state and why any is set aside or unreadable, open the connector&rsquo;s <strong>Files<\/strong> dialog.<\/p><\/div><\/div>\n\n<h2 id=\"parked\">Files that are set aside<\/h2>\n<p>Three words appear on the Check step and the Manifest tab. They mean different things:<\/p><dl class=\"qs-d-kv\" data-qs-seen=\"parked\"><dt>Set aside (parked)<\/dt><dd>The file does not match the pinned layout, or is unreadable, torn, locked or over a cap. It is all-or-nothing per file: a parked file contributes zero rows. <code>files_events<\/code> records a <code>drift<\/code> row whose <code>detail<\/code> names the file and the column. The file is skipped while its size and modified time stay the same, and retried as soon as it changes.<\/dd><dt>Unreadable<\/dt><dd>The Agent could not open or parse the file as its type: not a real workbook, locked by another program, a cloud placeholder, undecodable bytes. It parks on its own and the rest of the folder continues. Only a folder with zero readable files refuses the whole set.<\/dd><dt>Refused<\/dt><dd>The Agent could not pin any layout at all, for example because files disagree on a column type. No data table exists yet. <code>files_events<\/code> gets a <code>refused<\/code> row with the reason in <code>detail<\/code>, and the Agent re-tries on every scan until a layout pins. Fix or exclude the file it names and the message clears.<\/dd><\/dl><p>Where to look: the amber banner on <strong>Check<\/strong> (<strong>Show which files and why<\/strong>), the connector&rsquo;s <strong>Manifest<\/strong> tab afterwards, and for log connectors the <strong>Files<\/strong> dialog, which lists parked files with the reason in <code>last_error<\/code>. In SQL: <code>SELECT relative_path, event_type, detail FROM fileset.files_events WHERE event_type IN ('drift','refused') ORDER BY event_at DESC<\/code>.<\/p>\n\n\n<h2 id=\"limits\">Limits worth knowing<\/h2>\n<p>There is no plan limit on folders or on the number of files. The rows do count against your Data Realm like any other connector. Defaults you can raise or lower on the connector:<\/p><div class=\"qs-d-table__wrap\"><table class=\"qs-d-table\" data-qs-seen=\"limits\"><thead><tr><th>Setting<\/th><th>Default<\/th><th>What it does<\/th><\/tr><\/thead><tbody><tr><td>Max depth<\/td><td>8<\/td><td>How many folder levels below each root are scanned (1&ndash;64).<\/td><\/tr><tr><td>Max files per scan<\/td><td>100,000<\/td><td>Files considered in one sweep.<\/td><\/tr><tr><td>Max file size to hash<\/td><td>32 MiB<\/td><td>Only matters with <strong>Hash file contents<\/strong> on.<\/td><\/tr><tr><td>Event log retention<\/td><td>30 days<\/td><td>How long <code>files_events<\/code> rows are kept.<\/td><\/tr><tr><td>Scan parallelism per root<\/td><td>2<\/td><td>Folders read at once per root.<\/td><\/tr><\/tbody><\/table><\/div><p>Content caps, which park a file rather than truncate it: 2,000,000 rows or 512 MiB per file, 10,000,000 rows or 2 GiB per scan. A folder can hold at most 25 distinct layouts in <strong>One table per layout<\/strong> mode.<\/p>\n\n<h2 id=\"faq\">Questions people ask<\/h2>\n<div class=\"qs-d-faq\" data-qs-seen=\"faq_source\">\n    <details><summary>Which container log formats and profiles are supported?<\/summary><div class=\"qs-d-faq__a\"><p>The <strong>Log type<\/strong> list on the Container Logs card covers Docker container log files. The Docker json-file profile gives <code>app<\/code>, <code>stream<\/code>, <code>level<\/code>, <code>logger<\/code>, <code>message<\/code>, <code>host<\/code>, <code>service<\/code> and <code>data<\/code>, plus <code>image<\/code>, <code>compose_project<\/code>, <code>compose_service<\/code> and <code>container_id<\/code>. Under the list it says: &ldquo;Need a log type that is not listed? Open a support request and we add it within a few days.&rdquo;<\/p><\/div><\/details>\n    <details><summary>Can I add my own format?<\/summary><div class=\"qs-d-faq__a\"><p>Not on this card. The container profiles are locked. Use the <strong>Custom Log Folder<\/strong> card instead, where you describe the format yourself or click <strong>Let Nova suggest a format<\/strong>.<\/p><\/div><\/details>\n    <details><summary>Is this Docker&rsquo;s MCP Toolkit or a replacement for docker logs?<\/summary><div class=\"qs-d-faq__a\"><p>No. It does not run, manage or attach to containers. It reads the log files Docker has already written and serves them as SQL rows. Use <code>docker logs<\/code> for a live terminal tail; use this when you want the lines in a table.<\/p><\/div><\/details>\n    <details><summary>How soon does a new log line show up?<\/summary><div class=\"qs-d-faq__a\"><p>On the next scan, every hour by default under <strong>Scan interval<\/strong>. Turn on <strong>Watch folder for changes (near real-time)<\/strong> to react within seconds on a local disk. A half-written last line waits until it is complete.<\/p><\/div><\/details>\n    <details><summary>Can Claude query these tables too?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. The same connector serves Claude over MCP, read-only. See <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-docker-logs-to-claude-via-mcp\/\">How to connect Docker logs to Claude via MCP<\/a>.<\/p><\/div><\/details>\n<\/div>\n<div class=\"qs-d-faq\" data-qs-seen=\"faq\"><details><summary>Are my files uploaded anywhere?<\/summary><div class=\"qs-d-faq__a\"><p>No. The Agent reads them on its own computer and keeps the rows in an encrypted local cache there. A query runs against that cache and only the rows it returns leave the machine, over one outbound connection. Files are never modified, moved or converted.<\/p><\/div><\/details><details><summary>Do I need to open a port or run a VPN?<\/summary><div class=\"qs-d-faq__a\"><p>No. The Agent makes one outbound connection on port 443 and both requests and rows travel over it. If outbound HTTPS works, this works.<\/p><\/div><\/details><details><summary>Can the folder be on a network share, or in OneDrive or Dropbox?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. Type a share as <code>\\\\server\\share\\folder<\/code>, because the Agent runs as a service and cannot see drives mapped at your login. On Windows, store a login for the server if the share lets in only named people; without one the Agent reads as its own service account. On Linux or a Mac, mount the share first. A synced OneDrive or Dropbox folder works when its files are stored on the computer: set the folder to <strong>Always keep on this device<\/strong>. The Agent does not download cloud-only files.<\/p><\/div><\/details><details><summary>The folder has more than one kind of file. One connector or two?<\/summary><div class=\"qs-d-faq__a\"><p>One connector reads one file type. A folder with CSV and Parquet files is two connectors on the same root, one per type. Files that do not match the include pattern are ignored, not set aside.<\/p><\/div><\/details><details><summary>Is there a Rescan button?<\/summary><div class=\"qs-d-faq__a\"><p>No. The Agent scans on the <strong>Scan interval<\/strong>, reacts to changes when <strong>Watch folder<\/strong> is on, and can re-scan before answering a query when you turn that on. Edit the connector to change any of the three.<\/p><\/div><\/details><details><summary>Does the Free plan really cover this?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. Free is a plan you keep, not a trial that expires. Folder connectors have no file cap of their own; the rows count against your Data Realm like any other connector. See what each plan includes on the <a href=\"https:\/\/querystreams.com\/pricing\/\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"pricing\">pricing page<\/a>.<\/p><\/div><\/details><\/div>\n\n<div class=\"qs-d-also\" data-qs-seen=\"also\"><span>Other folders Query Streams turns into tables<\/span><a href=\"https:\/\/querystreams.com\/docs\/how-to-query-a-folder-of-files-with-sql\/\" data-qs-cta=\"hub\">How to query a folder of files with SQL<\/a><a href=\"https:\/\/querystreams.com\/docs-category\/file-set-connectors\/\" data-qs-cta=\"category\">All File Set guides<\/a><\/div><ul class=\"qs-d-related qs-d-related--cols\"><li><a href=\"https:\/\/querystreams.com\/docs\/index-a-file-system-and-query-it-with-sql\/\" data-qs-cta=\"related\">File System<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/combine-multiple-csv-files-into-one-table\/\" data-qs-cta=\"related\">CSV Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-a-folder-of-parquet-files-with-sql\/\" data-qs-cta=\"related\">Parquet Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/merge-multiple-excel-files-into-one-table\/\" data-qs-cta=\"related\">Excel Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/combine-multiple-sqlite-database-files\/\" data-qs-cta=\"related\">SQLite Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/turn-a-folder-of-json-files-into-sql-tables\/\" data-qs-cta=\"related\">JSONL Folder<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-multi-record-csv-files-with-sql\/\" data-qs-cta=\"related\">Multi-record CSV<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/cnc-machine-monitoring-with-sql-from-controller-logs\/\" data-qs-cta=\"related\">Machine Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-nginx-and-iis-logs-with-sql\/\" data-qs-cta=\"related\">Web Server Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-application-logs-with-sql\/\" data-qs-cta=\"related\">Application Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/query-syslog-files-with-sql\/\" data-qs-cta=\"related\">System Logs<\/a><\/li><li><a href=\"https:\/\/querystreams.com\/docs\/custom-log-analysis-with-sql\/\" data-qs-cta=\"related\">Custom Logs<\/a><\/li><\/ul>\n<div class=\"qs-d-support qs-d-support--foot\" data-zone=\"mint\" data-qs-seen=\"support\"><span class=\"qs-d-chip\"><i class=\"fa-solid fa-life-ring\"><\/i><\/span><div class=\"qs-d-support__body\"><strong>Still stuck?<\/strong> Open <a href=\"https:\/\/my.querystreams.com\/support\" target=\"_blank\" rel=\"noopener\" data-qs-cta=\"support\">Support<\/a> in Query Streams and tell us which step you are on and what you see. We will get you connected.<\/div><\/div>\n<script type=\"application\/ld+json\">{\"@context\":\"https:\/\/schema.org\",\"@type\":\"HowTo\",\"name\":\"Query Docker Container Logs with SQL\",\"description\":\"Turn Docker logs into a table with container name, stream and message as columns you can query from Excel or Sheets. Logs stay on your network.\",\"totalTime\":\"PT15M\",\"step\":[{\"@type\":\"HowToStep\",\"position\":1,\"name\":\"Install the Query Streams Agent\",\"text\":\"Install the Agent (2.6.0 or later) on a computer that can open the folder and paste in your Access Key.\",\"url\":\"https:\/\/querystreams.com\/docs\/query-docker-container-logs-with-sql\/#step-1\"},{\"@type\":\"HowToStep\",\"position\":2,\"name\":\"Point it at your Docker container logs\",\"text\":\"In Data Agents click Add connector, open Files & Folders, pick the Container Logs card and add the root folders.\",\"url\":\"https:\/\/querystreams.com\/docs\/query-docker-container-logs-with-sql\/#step-2\"},{\"@type\":\"HowToStep\",\"position\":3,\"name\":\"Check what it will build\",\"text\":\"The Agent reads a sample of up to 64 files and shows the tables it will create; files that do not fit are listed, not dropped silently.\",\"url\":\"https:\/\/querystreams.com\/docs\/query-docker-container-logs-with-sql\/#step-3\"},{\"@type\":\"HowToStep\",\"position\":4,\"name\":\"Choose how often it scans\",\"text\":\"Set the scan interval, folder watching and what happens when a file vanishes, then click Create connector.\",\"url\":\"https:\/\/querystreams.com\/docs\/query-docker-container-logs-with-sql\/#step-4\"},{\"@type\":\"HowToStep\",\"position\":5,\"name\":\"Query the tables\",\"text\":\"Query fileset tables from Excel, Google Sheets, Nova, Claude or the REST API; every row carries _source_file.\",\"url\":\"https:\/\/querystreams.com\/docs\/query-docker-container-logs-with-sql\/#step-5\"}]}<\/script>\n<\/article>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"doc_category":[247],"doc_tag":[],"class_list":["post-6954","docs","type-docs","status-publish","hentry","doc_category-file-set-connectors"],"year_month":"2026-12","word_count":2100,"total_views":"38","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"systemz","author_nicename":"systemz","author_url":"https:\/\/querystreams.com\/nl\/author\/systemz\/"},"doc_category_info":[{"term_name":"File Set Connectors","term_url":"https:\/\/querystreams.com\/nl\/docs-category\/file-set-connectors\/"}],"doc_tag_info":[],"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false,"betterdocs-category-thumb":false},"uagb_author_info":{"display_name":"systemz","author_link":"https:\/\/querystreams.com\/nl\/author\/systemz\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/docs\/6954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/comments?post=6954"}],"version-history":[{"count":3,"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/docs\/6954\/revisions"}],"predecessor-version":[{"id":8223,"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/docs\/6954\/revisions\/8223"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/media?parent=6954"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/doc_category?post=6954"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/nl\/wp-json\/wp\/v2\/doc_tag?post=6954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}