{"id":6038,"date":"2026-08-27T10:22:58","date_gmt":"2026-08-27T15:22:58","guid":{"rendered":"https:\/\/querystreams.com\/?post_type=docs&#038;p=6038"},"modified":"2026-11-09T09:49:05","modified_gmt":"2026-11-09T15:49:05","password":"","slug":"turn-a-folder-of-json-files-into-sql-tables","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/de\/docs\/turn-a-folder-of-json-files-into-sql-tables\/","title":{"rendered":"Einen Ordner mit JSON-Dateien in SQL-Tabellen umwandeln"},"content":{"rendered":"\n<article class=\"qs-d qs-d--fileset qs-d--v5\" data-src=\"jsonlfolder\" data-dest=\"sql\" style=\"--qs-src:251 146 60;--qs-src-deep:124 45 18;--qs-src-ink:124 45 18;--qs-src-tint:#fdc394;--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\/08\/qs-doc-jsonl-folder.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/span><span class=\"qs-v5-lockup__name\">JSONL<\/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\">JSON folder &rarr; SQL tables &middot; with Query Streams<\/p><p class=\"qs-v5-hero__lede\">With Query Streams, a folder of JSON lines files becomes read-only SQL tables: the files stay where they are, the Agent on that computer reads them into an encrypted local cache and keeps the tables current as files arrive, change or disappear. Nothing is uploaded and no file is 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\/08\/qs-doc-jsonl-folder.png\" alt=\"JSONL Folder icon\" width=\"28\" height=\"28\"><span>You end up with one SQL table, named by you, that holds every line of every JSONL file in the folder. If you call it <code>events<\/code>, you query <code>fileset.events<\/code>. Nested objects are flattened into columns down to the depth you choose, deeper values are kept as JSON text, and every row carries <code>_source_file<\/code> so you know which file it came from. If the folder mixes files of different shapes, you can have one table per shape instead. The Agent reads the folder on its own computer and caches the rows there in an encrypted local store, then serves them as SQL to Excel, Google Sheets, the Query Builder or any other client. The files stay on your network.<\/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> sales_2026_07.jsonl<\/td><\/tr><tr><td><i class=\"fa-regular fa-file\"><\/i> sales_2026_08.jsonl<\/td><\/tr><tr><td><i class=\"fa-regular fa-file\"><\/i> sales_2026_09.jsonl<\/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>row_count<\/th><th>first_row_id<\/th><\/tr><\/thead><tbody><tr><td>sales_2026_07.jsonl<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><tr><td>sales_2026_08.jsonl<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><tr><td>sales_2026_09.jsonl<\/td><td>&hellip;<\/td><td>&hellip;<\/td><\/tr><\/tbody><\/table><\/div><\/div><\/div>\n<p>Every table sits in one schema named <code>fileset<\/code>. With <strong>One pinned layout<\/strong>, the default, you get one table named by the <strong>Table name<\/strong> you type, for example <code>fileset.events<\/code>, holding the rows of every matched file. Nested objects become columns down to <strong>Flatten depth<\/strong>, 2 by default, and anything deeper lands as JSON text. Every row carries <code>_source_file<\/code> and a stable <code>_row_id<\/code>.<\/p><p>With <strong>One table per layout<\/strong>, each distinct shape becomes its own table, up to 25, named after the shared part of its file names with trailing numbers trimmed. Files <code>orders_2026_01.jsonl<\/code> to <code>orders_2026_03.jsonl<\/code> become <code>fileset.orders<\/code>. If nothing usable remains, the Table name is used. Names never change while the layout is pinned, and there is no automatic view that stacks the layouts together.<\/p><p>Every folder connector also gives you the bookkeeping tables <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: a folder of JSON lines files 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=\"#fb923c\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"32\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#7c2d12\" 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=\"#fb923c\" fill-opacity=\".12\" stroke=\"#fb923c\" stroke-width=\"1.5\"\/><text x=\"116\" y=\"99\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#7c2d12\">Your folder<\/text><text x=\"116\" y=\"116\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#7c2d12\">of files<\/text><text x=\"116\" y=\"137\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#fb923c\">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>Query application event exports or LLM conversation logs written as JSON lines, in Excel or Google Sheets.<\/li>\n  <li>Count and filter events across a day&#8217;s worth of JSONL files without a script per file.<\/li>\n  <li>Give each export shape its own table when a vendor changes the fields it sends.<\/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\/08\/qs-doc-jsonl-folder.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 a folder of JSON lines files: 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 a folder of JSON lines files<\/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>JSONL Folder<\/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>Install the Query Streams Agent on a computer that can open the folder. It needs Agent 2.6.0 or later. From that Agent&rsquo;s <strong>Add connector<\/strong> button, open <strong>Files &amp; Folders<\/strong> and pick the <strong>JSONL Folder<\/strong> card.<\/p><ul><li><strong>Root folders<\/strong>: the folders on the Agent computer to scan, one per line. Type network shares as <code>\\\\server\\share\\folder<\/code>, not a mapped drive letter.<\/li><li><strong>Include patterns<\/strong> starts as <code>**\/*.jsonl<\/code>. Add a pattern if your files use another extension.<\/li><li><strong>Table name<\/strong> is required. Type a name such as <code>events<\/code>.<\/li><li><strong>Flatten depth<\/strong>: how many levels of nested objects become columns. Default 2, range 1 to 8. Deeper values land as JSON text.<\/li><li><strong>Table layout<\/strong>: leave <strong>One pinned layout (default)<\/strong> when all files share one layout, as with recurring exports. Choose <strong>One table per layout<\/strong> for folders people assemble by hand, where each distinct layout gets its own table, up to 25.<\/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\">Needs attention<\/span><\/dt><dd>The Agent is offline or a folder is missing. Fix that before going on; with the Agent offline the page says so and still lets you continue.<\/dd><\/dl><div class=\"qs-d-note\" data-zone=\"slate\"><i class=\"fa-solid fa-layer-group\"><\/i><p><strong>&ldquo;This folder holds {n} different file layouts.&rdquo;<\/strong> A sky-blue panel means the sampled files do not all share one set of columns. <strong>Table layout<\/strong> defaults to <strong>One pinned layout<\/strong>, which expects every file to match. Click <strong>Switch to one table per layout<\/strong> and each layout becomes its own table instead (up to 25).<\/p><\/div><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>On <strong>Check<\/strong>, the Agent reads a sample of up to 64 files and shows the file count, size, row estimate and the table it will build. Nothing is created yet. The thing this source most often reports is mixed shapes. If the sample holds several layouts while <strong>Table layout<\/strong> is still pinned, a blue panel says &ldquo;This folder holds 3 different file layouts&rdquo; and explains that one pinned layout expects every file to share one layout. Click <strong>Switch to one table per layout<\/strong> and each shape becomes its own table. Files the Agent could not read as JSONL appear under <strong>Show which files and why<\/strong> as set aside, and the rest still load. You can create the connector either way; 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. 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\">Rows per JSONL file<\/div><pre class=\"qs-d-code__body\">SELECT _source_file, COUNT(*) AS row_count\nFROM fileset.events\nGROUP BY _source_file\nORDER BY row_count DESC\nLIMIT 100<\/pre><\/div>\n<p>One row per file, so you can see how many lines each JSONL file contributed.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Files that changed in the last day<\/div><pre class=\"qs-d-code__body\">SELECT relative_path, size_bytes, modified_utc\nFROM fileset.files\nWHERE modified_utc &gt;= now() - INTERVAL 1 DAY\nORDER BY modified_utc DESC\nLIMIT 100<\/pre><\/div>\n<p>The files the Agent saw change since yesterday, newest first.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Files set aside or refused, and why<\/div><pre class=\"qs-d-code__body\">SELECT relative_path, event_type, detected_by, detail, event_at\nFROM fileset.files_events\nWHERE event_type IN ('refused', 'drift')\nORDER BY event_at DESC\nLIMIT 20<\/pre><\/div>\n<p>Every file whose lines were left out, with the reason in detail, including a file with a new shape.<\/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-jsonl-files-to-claude-via-mcp\/\" data-qs-cta=\"use_mcp\">JSONL Folder 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\/jsonl-folder-rest-api\/\" data-qs-cta=\"use_api\">JSONL Folder 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 a folder of JSON lines files 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.<\/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\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. 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<div class=\"qs-d-note\" data-zone=\"rose\"><i class=\"fa-solid fa-box-archive\"><\/i><p><strong>For a folder of JSON lines files that usually looks like this:<\/strong> An export web-03.jsonl whose lines carry a different set of keys from the pinned layout is set aside with none of its lines loaded; files_events gets a drift row with detected_by pin whose detail names the file and, in per-layout mode, reads &#8220;new layout \u2014 edit the connector&#8217;s driver options or manifest overrides (any change to them re-sniffs) to add it as a new table&#8221;.<\/p><\/div>\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>How are nested JSON objects handled?<\/summary><div class=\"qs-d-faq__a\"><p>They flatten into columns down to the <strong>Flatten depth<\/strong> you set, 2 by default and at most 8. Anything deeper stays as JSON text in one column, so no value is lost. Raise the depth if you keep having to pick apart JSON text in your queries. Changing it re-samples the folder and rebuilds the table.<\/p><\/div><\/details>\n    <details><summary>My files have different shapes. Can they still be queried?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. Choose <strong>One table per layout<\/strong> and each shape becomes its own table, up to 25. Each table is named after the shared part of its file names. If the Check step finds several shapes while you are still on one pinned layout, it says so and offers <strong>Switch to one table per layout<\/strong>. There is no automatic view that stacks the layouts together, but you can UNION them in a query.<\/p><\/div><\/details>\n    <details><summary>What happens when a file with a new shape arrives later?<\/summary><div class=\"qs-d-faq__a\"><p>It is set aside and none of its lines load. In per-layout mode <code>files_events<\/code> records it with the detail &ldquo;new layout&rdquo;. New layouts are not added on their own. Change and save any connector option, such as Flatten depth, and the Agent samples again and adds the new table while keeping the names you already have.<\/p><\/div><\/details>\n    <details><summary>My files end in .json or .ndjson, not .jsonl. Will they be read?<\/summary><div class=\"qs-d-faq__a\"><p>Only files that match <strong>Include patterns<\/strong> are read, and the default is <code>**\/*.jsonl<\/code>. Add a pattern such as <code>**\/*.ndjson<\/code> for other extensions. Each file must still hold one JSON object per line. One connector reads one file type, so a folder that also holds CSV files needs a second connector on the same folder.<\/p><\/div><\/details>\n    <details><summary>Is there a limit on file size or row count?<\/summary><div class=\"qs-d-faq__a\"><p>The Agent defaults are 2,000,000 rows and 512 MiB per file, and 10,000,000 rows or 2 GiB per sync. A file over a cap is set aside and reported in <code>files_events<\/code>. There is no plan limit on the number of folders or files. If you also want Claude to query the table, see <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-jsonl-files-to-claude-via-mcp\/\">Connect a Folder of JSONL Files to Claude with 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\/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-docker-container-logs-with-sql\/\" data-qs-cta=\"related\">Container 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\":\"Turn a Folder of JSONL Files into SQL Tables\",\"description\":\"Every line of every JSONL file becomes a row in one SQL table, nested fields flattened to columns, ready for Excel or Sheets. Files 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\/turn-a-folder-of-json-files-into-sql-tables\/#step-1\"},{\"@type\":\"HowToStep\",\"position\":2,\"name\":\"Point it at a folder of JSON lines files\",\"text\":\"In Data Agents click Add connector, open Files & Folders, pick the JSONL Folder card and add the root folders.\",\"url\":\"https:\/\/querystreams.com\/docs\/turn-a-folder-of-json-files-into-sql-tables\/#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\/turn-a-folder-of-json-files-into-sql-tables\/#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\/turn-a-folder-of-json-files-into-sql-tables\/#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\/turn-a-folder-of-json-files-into-sql-tables\/#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-6038","docs","type-docs","status-publish","hentry","doc_category-file-set-connectors"],"year_month":"2026-12","word_count":2248,"total_views":"49","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"systemz","author_nicename":"systemz","author_url":"https:\/\/querystreams.com\/de\/author\/systemz\/"},"doc_category_info":[{"term_name":"File Set Connectors","term_url":"https:\/\/querystreams.com\/de\/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\/de\/author\/systemz\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs\/6038","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/comments?post=6038"}],"version-history":[{"count":3,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs\/6038\/revisions"}],"predecessor-version":[{"id":8219,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/docs\/6038\/revisions\/8219"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/media?parent=6038"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/doc_category?post=6038"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/de\/wp-json\/wp\/v2\/doc_tag?post=6038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}