{"id":6957,"date":"2026-09-27T19:47:54","date_gmt":"2026-09-28T00:47:54","guid":{"rendered":"https:\/\/querystreams.com\/docs\/custom-log-analysis-with-sql\/"},"modified":"2026-11-09T10:38:31","modified_gmt":"2026-11-09T16:38:31","password":"","slug":"custom-log-analysis-with-sql","status":"publish","type":"docs","link":"https:\/\/querystreams.com\/ja\/docs\/custom-log-analysis-with-sql\/","title":{"rendered":"SQL\u3092\u4f7f\u7528\u3057\u305f\u30ab\u30b9\u30bf\u30e0\u30ed\u30b0\u5206\u6790\uff1a\u3042\u3089\u3086\u308b\u30c6\u30ad\u30b9\u30c8\u30ed\u30b0\u3092\u89e3\u6790\u3059\u308b"},"content":{"rendered":"\n<article class=\"qs-d qs-d--fileset qs-d--v5\" data-src=\"customlogs\" data-dest=\"sql\" style=\"--qs-src:253 164 175;--qs-src-deep:190 24 93;--qs-src-ink:190 24 93;--qs-src-tint:#fecdd3;--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\/logbrand-custom-log-folder.png\" alt=\"\" width=\"56\" height=\"56\" loading=\"eager\"><\/span><span class=\"qs-v5-lockup__name\">Custom 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\">Log folder &rarr; SQL tables &middot; with Query Streams<\/p><p class=\"qs-v5-hero__lede\">With Query Streams, any text log you describe becomes 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\/logbrand-custom-log-folder.png\" alt=\"Custom Logs icon\" width=\"28\" height=\"28\"><span>Custom Log Folder is for any text log the built-in cards do not know. You describe the format once, or let Nova suggest one, and every line becomes a row in a table named <code>events<\/code>. Until you define columns, each row is the line&rsquo;s <code>message<\/code> tagged with the <code>file_name<\/code> it came from. Lines your format does not match are kept in a raw lines table with a reason, so nothing is lost. You query the rows with SQL from Excel, Google Sheets or a dashboard, while the files stay on the computer that runs the Agent.<\/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>file_name<\/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>Parsed lines land in <code>fileset.events<\/code>, or in the <strong>Table name<\/strong> you chose. The Agent copies the rows into a local cache on the Agent computer and serves them as SQL.<\/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 record. <code>event_time<\/code> is the parsed timestamp, with the original text in <code>event_time_raw<\/code>. <code>file_name<\/code> is the identity column, then the columns you define, and <code>message<\/code>. Before you define any, the row is <code>file_name<\/code> and <code>message<\/code>. <code>_stream_id<\/code> and <code>_line_no<\/code> say which file and line a row came from, and <code>_source_file<\/code> names the file.<\/td><\/tr><tr><td><code>events_raw_lines<\/code><\/td><td>Lines your format did not match, kept in <code>line<\/code> with a <code>reason<\/code>: <code>no-grammar-match<\/code>, <code>undecodable<\/code>, <code>nul-bytes<\/code> or <code>record-max-lines<\/code>. Nothing is dropped.<\/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>, and log connectors add <code>log_cursors<\/code> with each file&rsquo;s read position. Always <code>ORDER BY event_time<\/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: any text log you describe 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=\"#fda4af\" stroke-width=\"2\" stroke-dasharray=\"6 5\"\/><text x=\"32\" y=\"38\" font-family=\"Poppins, sans-serif\" font-size=\"11\" font-weight=\"600\" fill=\"#be185d\" 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=\"#fda4af\" fill-opacity=\".12\" stroke=\"#fda4af\" stroke-width=\"1.5\"\/><text x=\"116\" y=\"99\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#be185d\">Your folder<\/text><text x=\"116\" y=\"116\" text-anchor=\"middle\" font-family=\"Poppins, sans-serif\" font-size=\"14\" font-weight=\"600\" fill=\"#be185d\">of files<\/text><text x=\"116\" y=\"137\" text-anchor=\"middle\" font-family=\"system-ui, sans-serif\" font-size=\"12\" fill=\"#fda4af\">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 an in-house application&rsquo;s log in a spreadsheet without writing a parser.<\/li>\n  <li>Chart overnight batch-job errors on a dashboard from a plain text log.<\/li>\n  <li>Keep a legacy device&rsquo;s text log searchable with SQL alongside your other data.<\/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\/logbrand-custom-log-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 any text log you describe: 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 any text log you describe<\/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>Custom Log 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>In the Portal, open the Agent that can see the folder and click <strong>Add connector<\/strong>. Under <strong>Files &amp; Folders<\/strong> pick <strong>Custom Log Folder<\/strong>. Once created, it shows in the connector list as <strong>Log Files<\/strong>.<\/p><ul><li>Add the folder under <strong>Root folders<\/strong>. Type a network share as <code>\\\\server\\share\\folder<\/code>, not as a mapped drive letter.<\/li><li>Set <strong>Include patterns<\/strong> to match your files. The log driver&rsquo;s defaults are <code>**\/*.log<\/code> and <code>**\/*.txt<\/code>.<\/li><li>Describe the format. Custom Log Folder is the one log card you can edit: say where the timestamp sits in a line and which parts become columns. Or click <strong>Let Nova suggest a format<\/strong> which has a daily cap.<\/li><li><strong>Table name<\/strong> is optional and defaults to <code>events<\/code>.<\/li><li><strong>Backfill (days)<\/strong> is 30. <strong>Keep events for N days<\/strong> keeps everything unless you set it.<\/li><\/ul><p>If your format is common, the list also 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><\/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>On <strong>Check<\/strong>, the Agent reads a sample and shows what it will build. Nothing is created yet. If the sample does not fit the format you described, the headline reads <strong>These files are not<\/strong> followed by the type, and an amber banner says &ldquo;The schema sniff refused:&rdquo; with the reason. Open <strong>Show which files and why<\/strong> to see the file and reason grid. Adjust the format, or tighten <strong>Include patterns<\/strong> so stray files are left out, then <strong>Test again<\/strong>. You can also create it anyway. The connector keeps re-checking and reports the reason on its <strong>Manifest<\/strong> tab, and lines that do not match land in <code>events_raw_lines<\/code> where you can read them and refine the format.<\/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\">Latest lines with the file they came from<\/div><pre class=\"qs-d-code__body\">SELECT event_time, file_name, message\nFROM fileset.events\nORDER BY event_time DESC\nLIMIT 100<\/pre><\/div>\n<p>The newest 100 records across every file in the folder. Works before you define any columns.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Lines mentioning an error, per file, in the last day<\/div><pre class=\"qs-d-code__body\">SELECT file_name, COUNT(*) AS errors\nFROM fileset.events\nWHERE message ILIKE '%error%'\n  AND event_time &gt;= now() - INTERVAL 1 DAY\nGROUP BY file_name\nORDER BY errors DESC\nLIMIT 100<\/pre><\/div>\n<p>A text match on <code>message<\/code>. Once your format defines a level column, filter on that instead.<\/p>\n<div class=\"qs-d-code\" data-qs-hover=\"code\"><div class=\"qs-d-code__hdr\">Lines your format did not match, by reason<\/div><pre class=\"qs-d-code__body\">SELECT reason, COUNT(*) AS lines, MIN(line) AS example\nFROM fileset.events_raw_lines\nGROUP BY reason\nORDER BY lines DESC<\/pre><\/div>\n<p>Reads <code>events_raw_lines<\/code>. Use the examples to refine the format, then save the connector and the Agent re-samples.<\/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-log-files-to-claude-via-mcp\/\" data-qs-cta=\"use_mcp\">Custom 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\/custom-logs-rest-api\/\" data-qs-cta=\"use_api\">Custom 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 any text log you describe 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>Log files grow, and the Agent follows them. Each file has a byte and line cursor, so a scan reads only the lines added since the last one, and a torn last line is not counted until it is complete. When a file is rotated, the Agent recognises it by a hash of its first 4 KB and continues the same <code>_stream_id<\/code>, so nothing is read twice. Each <code>.gz<\/code> member is read once, and <code>.zip<\/code>, <code>.cab<\/code> and <code>.journal<\/code> files are skipped. On first read the Agent backfills 30 days, at most 64 MiB per file. A log file the Agent could not read, or has set aside, is listed in the connector&rsquo;s <strong>Files<\/strong> dialog with the reason. With the Agent offline that dialog shows a snapshot of up to 50 rows.<\/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 formats are supported?<\/summary><div class=\"qs-d-faq__a\"><p>Any text log you can describe. Until you define columns, each line is one row with <code>file_name<\/code> and <code>message<\/code>. The columns you add in the format become columns on <code>events<\/code>. Lines the format does not match are kept in <code>events_raw_lines<\/code> with a reason.<\/p><\/div><\/details>\n    <details><summary>How do I describe my format?<\/summary><div class=\"qs-d-faq__a\"><p>Custom Log Folder is the only log card whose format you can edit. Say where the timestamp sits in a line and which parts become columns, or click <strong>Let Nova suggest a format<\/strong> and Nova proposes one from a sample of your files. The assistant has a daily cap. If your format is common, the Portal also 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>What happens to lines my format does not match?<\/summary><div class=\"qs-d-faq__a\"><p>They are kept in <code>events_raw_lines<\/code> with a <code>reason<\/code> such as <code>no-grammar-match<\/code>. Nothing is dropped. A file that cannot be read at all is set aside and listed in the connector&rsquo;s <strong>Files<\/strong> dialog with the reason.<\/p><\/div><\/details>\n    <details><summary>How long are events kept?<\/summary><div class=\"qs-d-faq__a\"><p>Custom Log Folder keeps everything unless you set <strong>Keep events for N days<\/strong>. On first read the Agent backfills the last 30 days, set by <strong>Backfill (days)<\/strong>.<\/p><\/div><\/details>\n    <details><summary>Can Claude query these logs too?<\/summary><div class=\"qs-d-faq__a\"><p>Yes. The same connector serves Claude over MCP with read-only queries. See <a href=\"https:\/\/querystreams.com\/docs\/how-to-connect-log-files-to-claude-via-mcp\/\">How to connect log files 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-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><\/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\":\"Custom Log Analysis with SQL: Parse Any Text Log\",\"description\":\"Describe your log format once and every line becomes a SQL row you can query from Excel, Sheets or a dashboard. 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\/custom-log-analysis-with-sql\/#step-1\"},{\"@type\":\"HowToStep\",\"position\":2,\"name\":\"Point it at any text log you describe\",\"text\":\"In Data Agents click Add connector, open Files & Folders, pick the Custom Log Folder card and add the root folders.\",\"url\":\"https:\/\/querystreams.com\/docs\/custom-log-analysis-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\/custom-log-analysis-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\/custom-log-analysis-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\/custom-log-analysis-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-6957","docs","type-docs","status-publish","hentry","doc_category-file-set-connectors"],"year_month":"2026-12","word_count":2201,"total_views":"35","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"\u30b7\u30b9\u30c6\u30e0\u30ba","author_nicename":"systemz","author_url":"https:\/\/querystreams.com\/ja\/author\/systemz\/"},"doc_category_info":[{"term_name":"File Set Connectors","term_url":"https:\/\/querystreams.com\/ja\/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\/ja\/author\/systemz\/"},"uagb_comment_info":0,"uagb_excerpt":null,"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/docs\/6957","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/comments?post=6957"}],"version-history":[{"count":2,"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/docs\/6957\/revisions"}],"predecessor-version":[{"id":8226,"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/docs\/6957\/revisions\/8226"}],"wp:attachment":[{"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/media?parent=6957"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/doc_category?post=6957"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/querystreams.com\/ja\/wp-json\/wp\/v2\/doc_tag?post=6957"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}