<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[XCP Pulse collects XCP-ng and Xen Orchestra logs]]></title><description><![CDATA[<p dir="auto">While this project is more for myself it is open to others to use. Please use at your own risk. As always review the code before using in a production environment. Please leave any feedback or suggestions. <a href="https://github.com/acebmxer/xcp_pulse" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/acebmxer/xcp_pulse</a></p>
<p dir="auto">XCP Pulse collects XCP-ng and Xen Orchestra logs, bundles them for download, analyses them, and reports findings — for your own troubleshooting or to attach to a Vates support ticket. Everything goes through the <a href="https://docs.xen-orchestra.com/restapi" target="_blank" rel="noopener noreferrer nofollow ugc">Xen Orchestra REST API</a> — nothing is installed on your hosts, and it only ever reads.</p>
<p dir="auto">It runs as a container with a web UI. Being built in stages, and <strong>v0.5.1 is where it is today</strong> — so this is an early look rather than a finished tool. Log collection itself is the next big piece.</p>
<h2>What works today</h2>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Version</th>
<th>What it does</th>
</tr>
</thead>
<tbody>
<tr>
<td>v0.1.0</td>
<td>Container, login, sessions, healthcheck</td>
</tr>
<tr>
<td>v0.2.0</td>
<td>Connect to Xen Orchestra — URL and API token, token encrypted at rest, "Test connection"</td>
</tr>
<tr>
<td>v0.3.0</td>
<td>Pools and hosts listed on the dashboard, grouped by pool</td>
</tr>
<tr>
<td>v0.4.0</td>
<td>Background jobs with live progress and history, and stored results</td>
</tr>
<tr>
<td>v0.5.0</td>
<td>Redaction — masks addresses, tokens and credentials out of log text, with a preview page</td>
</tr>
<tr>
<td>v0.5.1</td>
<td>Each redaction rule can be switched on or off</td>
</tr>
</tbody>
</table>
<p dir="auto">Redaction came before any download button on purpose. A real log bundle is full of internal addresses, usernames and session tokens, and the point of the download is sending that file to Vates — shipping collection first would have meant a headline feature that leaks credentials. One real <code>xensource.log</code> I tested against had 8,359 lines matching password, secret or session patterns.</p>
<h2>What is coming</h2>
<ul>
<li><strong>Collect the full log bundle</strong> per host, as a background job, redacted, with a download. Measured on my own XCP-ng 8.3 pool: about <strong>433 MB and 100 seconds per host</strong>, 603 files.</li>
<li><strong>Collect individual categories</strong> — XAPI, storage, audit, security, kernel and the rest — pulled out of the cached bundle instead of downloading again. Current logs only comes to roughly <strong>35 MB instead of 433 MB</strong>.</li>
<li><strong>Date ranges</strong> — of that 433 MB, 418 MB is rotated history, so asking for the last three days is a large saving.</li>
<li><strong>Findings</strong> — failed tasks, alarms, missing patches, storage errors, HA fencing, clock skew, with the evidence behind each one.</li>
<li><strong>A Vates support package</strong> — one file with the redacted bundle, findings and a manifest of what was masked.</li>
<li><strong>Multiple users</strong>, docs in the web UI, and self-update.</li>
</ul>
<p dir="auto">Full list with status: <a href="https://github.com/acebmxer/xcp_pulse/blob/main/docs/roadmap.md" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/acebmxer/xcp_pulse/blob/main/docs/roadmap.md</a></p>
<h2>Quick start</h2>
<p dir="auto">No clone and no build — the image is published to GHCR, so the compose file and an env file are the whole deployment:</p>
<pre><code class="language-bash">mkdir xcp-pulse &amp;&amp; cd xcp-pulse
curl -o compose.yaml https://raw.githubusercontent.com/acebmxer/xcp_pulse/main/compose.yaml.example
curl -o xcp-pulse.env https://raw.githubusercontent.com/acebmxer/xcp_pulse/main/xcp-pulse.env.example
</code></pre>
<p dir="auto">Generate the admin password hash — XCP Pulse stores a hash, never a password, and refuses to start without one:</p>
<pre><code class="language-bash">docker compose run --rm xcp-pulse python -m app.hashpw
</code></pre>
<p dir="auto">Paste the printed <code>XCP_PULSE_ADMIN_PASSWORD_HASH=...</code> line into <code>xcp-pulse.env</code>, then:</p>
<pre><code class="language-bash">docker compose up -d
</code></pre>
<p dir="auto">Open <a href="http://localhost:8080" target="_blank" rel="noopener noreferrer nofollow ugc">http://localhost:8080</a> and sign in with <code>admin</code> and the password you chose.</p>
<p dir="auto">The env file has to be called <code>xcp-pulse.env</code> and not <code>.env</code> — compose treats a file of that name as its own variable source and mangles the Argon2 hash.</p>
<h2>A note on the XO account</h2>
<p dir="auto">Inventory and API-based findings work fine with a <strong>Read only</strong> role. Downloading logs does not — <code>/hosts/{id}/logs.tgz</code> requires <code>export:logs</code> on host, and on the instance I measured (XO CE, <code>@xen-orchestra/rest-api</code> 0.39.0) that privilege was not in the grantable catalogue at all. The only role that could download logs was <strong>Administrator</strong>.</p>
<p dir="auto">So for log collection you currently need an admin token. XCP Pulse reads the privilege catalogue from your instance and tells you what it can actually grant, rather than assuming — and asks which account type you gave it so it can name the missing privilege instead of showing a bare 403.</p>
<h2>Security</h2>
<p dir="auto">XCP Pulse holds a token that can read every log on your pool, and stores files containing session tokens and internal network topology. Run it on a trusted management network behind a reverse proxy — the compose file binds to <code>127.0.0.1</code> by default for that reason. Not exposed to the internet.</p>
<p dir="auto">MIT licensed. This is an independent tool and is not affiliated with or endorsed by Vates.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1788787261460-screenshot_20260907_091915-1.png" alt="Screenshot_20260907_091915-1.png" class="img-markdown  img-fluid" width="1276" height="1313" /><br />
<img src="/forum/assets/uploads/files/1788787295758-screenshot_20260907_092108.png" alt="Screenshot_20260907_092108.png" class="img-markdown  img-fluid" width="1265" height="1317" /><br />
<img src="/forum/assets/uploads/files/1788787376266-screenshot_20260907_092146.png" alt="Screenshot_20260907_092146.png" class="img-markdown  img-fluid" width="1273" height="1312" /></p>
]]></description><link>https://xcp-ng.org/forum/topic/12459/xcp-pulse-collects-xcp-ng-and-xen-orchestra-logs</link><generator>RSS for Node</generator><lastBuildDate>Sun, 08 Nov 2026 17:50:31 GMT</lastBuildDate><atom:link href="https://xcp-ng.org/forum/topic/12459.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Sep 2026 13:23:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XCP Pulse collects XCP-ng and Xen Orchestra logs on Sun, 13 Sep 2026 14:42:02 GMT]]></title><description><![CDATA[<p dir="auto"><strong>v0.8.0–v0.9.1 — multi-user accounts, self-update, built-in HTTPS, and date ranges.</strong> Three releases since the last update, so bundling them here.</p>
<p dir="auto"><strong>Date ranges.</strong> Collections, extractions, findings runs and the support package can now be scoped to a window instead of always covering the whole bundle — last 24h/7d/30d, since last reboot, or a custom range. XO's own routes still have no date filter, so the first download is unchanged size — the range only narrows what gets kept and reported afterwards.</p>
<p dir="auto"><strong>Redact on demand.</strong> A collection no longer has to redact immediately with whatever rules happen to be on at that moment. There's now a checkbox to store the raw bundle only, and a "Redact now" button on the card afterwards using whichever rules are switched on when you press it.</p>
<p dir="auto"><strong>Multiple user accounts, roles, and an activity log.</strong> This was on the "what is coming" list in the first post and it's in now. Any number of accounts, three roles — admin, operator, viewer (read-only, but can still download what's already stored) — and an Activity page logging logins, settings changes, and job runs.</p>
<p dir="auto"><strong>Optional 2FA.</strong> Per-user TOTP, off by default, each account turns it on for itself. QR code setup, backup codes.</p>
<p dir="auto"><strong>Self-update from the UI</strong>, opt-in and off by default. Checking needs nothing extra; applying an update needs the Docker socket mounted in explicitly, since that's effectively host root, so it's a separate deliberate step — uncomment the socket mount and <code>group_add</code> block in <code>docker-compose.yml</code>, and it needs its <em>own</em> <code>.env</code> file (just <code>DOCKER_GID=...</code>, next to <code>docker-compose.yml</code>, not the same file as <code>xcp-pulse.env</code>) or <code>docker compose up -d</code> fails with <code>unable to find group</code>. <code>.env.example</code> has the one-liner to generate it.</p>
<p dir="auto"><strong>Built-in HTTPS</strong>, no reverse proxy required. Bundles nginx into the image to terminate TLS — self-signed cert on first start, or upload your own from Settings. A reverse proxy still works fine too.</p>
<p dir="auto"><strong>A user manual in the app itself</strong>, under <code>/help</code> — no need to leave XCP Pulse or check out the repo to read how something works.</p>
<h3>Fixed</h3>
<ul>
<li>The account-requirements note from the first two posts was wrong in a way I only found by testing it properly: <code>export:logs</code> — the privilege log downloads actually need — isn't in any built-in XO role, but it <em>can</em> be granted through a custom role. "Test connection" was reading a catalogue that can't tell you that, and told every restricted account it needed full admin regardless. It now actually probes the download endpoint, and the docs walk through creating the custom role via three REST API calls (no UI for it yet on either XO version).</li>
<li>A real concurrency bug: the shared SQLite connection wasn't locked across fetches, only execute, so two requests landing close together could crash a page reading jobs — reproduced it under the test suite's own concurrency test.</li>
<li>Base-OS CVEs patched in the image build (perl-base, libc6, others); CI now runs a Trivy scan on every push.</li>
</ul>
<p dir="auto">Still not fixed: the truncated-download-behind-a-reverse-proxy issue from the last post. Haven't found the actual cause yet.  Also looking for anyone who can test against a remote proxy in a lab setup.  Also open to any other suggestions, features, improvements, UI changes, etc...</p>
<p dir="auto">If any chance someone on Vates would test on their own time.  Things like the support bundle and or the logs themselves are not being manipulated in any unwanted ways (for Vates or the project)</p>
<p dir="auto"><a href="https://github.com/acebmxer/xcp_pulse" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/acebmxer/xcp_pulse</a></p>
]]></description><link>https://xcp-ng.org/forum/post/108482</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108482</guid><dc:creator><![CDATA[acebmxer]]></dc:creator><pubDate>Sun, 13 Sep 2026 14:42:02 GMT</pubDate></item><item><title><![CDATA[Reply to XCP Pulse collects XCP-ng and Xen Orchestra logs on Fri, 11 Sep 2026 16:01:16 GMT]]></title><description><![CDATA[<p dir="auto"><strong>v0.7.0 — findings, category extraction, and a Vates support package.</strong></p>
<p dir="auto">Since the last update, log collection has been through a few fixes and gained three new pieces built on top of it.</p>
<p dir="auto"><strong>Findings, from two sources.</strong> A new <strong>Findings</strong> page reads the XO API (messages, alarms, tasks, missing patches, backup/restore runs) and also scans a collected bundle for storage failures, multipath issues, XAPI exceptions, HA fencing, OOM kills and clock skew — six log-based rules in total now. When both reports describe the same incident (matched by condition and, if both are timestamped, within an hour of each other) each finding gets a small "confirmed by" badge instead of showing up as two unrelated entries.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1789142072836-screenshot_20260911_115408.png" alt="Screenshot_20260911_115408.png" class="img-markdown  img-fluid" width="813" height="564" /></p>
<p dir="auto"><strong>Individual log categories</strong>, pulled out of a bundle already on disk instead of downloading again — XAPI, storage, audit, security, kernel, HA, xenstore, RRD, network, system. Tick categories on the Collect form before collecting, or against an already-stored bundle afterwards.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1789142141211-screenshot_20260911_114713.png" alt="Screenshot_20260911_114713.png" class="img-markdown  img-fluid" width="816" height="667" /></p>
<p dir="auto"><strong>A Vates support package.</strong> One <code>.tgz</code> — redacted bundle, findings (MD + JSON), redaction report, inventory, and a manifest of what's inside and what was masked — instead of downloading each piece separately.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1789142174831-screenshot_20260911_114827.png" alt="Screenshot_20260911_114827.png" class="img-markdown  img-fluid" width="796" height="782" /></p>
<p dir="auto"><strong>Dashboard status panels</strong> now show findings severity, how many redaction rules are off, storage used, and recent job activity at a glance.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1789142371892-screenshot_20260911_115754.png" alt="Screenshot_20260911_115754.png" class="img-markdown  img-fluid" width="814" height="750" /></p>
<h3>Known issue — still unsolved</h3>
<p dir="auto">The truncated-download-behind-a-reverse-proxy bug from the last post is not fixed. <code>logs.tgz</code> has no <code>Content-Length</code> (XCP-ng builds it on the fly), and on my own Nginx Proxy Manager deployment the proxy's connection to XO intermittently closes before the last chunk arrives. Two things tried, neither fixed it:</p>
<ul>
<li><code>proxy_buffering off</code> / <code>proxy_set_header Connection ""</code> — reduced how often it happened, didn't eliminate it. Identical config, run twice back to back, produced one good download and one truncated at the same offset as before.</li>
<li>Suppressing httpx's <code>Accept-Encoding: gzip, deflate</code> header (it was asking the proxy to transport-encode an already-gzipped file) — same result, only reduced frequency, not shipped since it doesn't actually fix anything.</li>
</ul>
<p dir="auto"><code>proxy_http_version 1.1;</code> broke the proxy outright when I tried it, for a reason I don't understand — so that's not the next thing to try either.</p>
<p dir="auto">What XCP Pulse now does about it: reads the archive in streaming order and keeps whatever it read before the stream broke, rather than losing the whole analysis to the last few missing bytes, and says on the report when it ended early. If a collection tells you the bundle ended early, the honest advice is to retry it — not that it's fixed. Documented in <code>docs/installation.md</code> in case someone with more insight into the Nginx/httpx side of this has a fix.</p>
<h3>Also fixed since v0.6.0</h3>
<ul>
<li>The restricted-account warning on the Collect page was showing on every connection, including admin ones — wrong template condition, not a real permission check. Fixed.</li>
<li>The default collection no longer downloads the XAPI audit trail unless you ask for it — <code>xen-bugtool</code> already includes it in the bundle, so it was 770 MiB of duplicate data on every run. Default collection is now the bundle only, ~870 MB / ~3 minutes.</li>
<li>XO's <code>/messages</code> and similar routes were being limited from the <em>oldest</em> end, not the newest — a pool with a lot of history could return findings from a month ago and miss everything recent. Now filtered by time window server-side instead.</li>
</ul>
<p dir="auto"><a href="https://github.com/acebmxer/xcp_pulse" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/acebmxer/xcp_pulse</a></p>
]]></description><link>https://xcp-ng.org/forum/post/108443</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108443</guid><dc:creator><![CDATA[acebmxer]]></dc:creator><pubDate>Fri, 11 Sep 2026 16:01:16 GMT</pubDate></item><item><title><![CDATA[Reply to XCP Pulse collects XCP-ng and Xen Orchestra logs on Mon, 07 Sep 2026 20:45:23 GMT]]></title><description><![CDATA[<p dir="auto"><strong>v0.6.0 — log collection is in.</strong> This was the piece the first post said was next, and it works end to end now.</p>
<p dir="auto">A new <strong>Collect</strong> page runs a per-host collection as a background job: it pulls <code>logs.tgz</code> and the XAPI audit trail from Xen Orchestra, keeps the raw copies, and produces a redacted copy of each. On my own XCP-ng 8.3 pool that came to <strong>434 MiB</strong> for the bundle and <strong>769 MiB</strong> for the audit trail, <strong>2.3 GiB stored</strong> across the five files, with <strong>2,542,805 values masked</strong> — almost all of them session tokens.</p>
<p dir="auto">The download is streamed a megabyte at a time and never held in memory, and every chunk is a cancellation point, so Cancel actually stops a transfer rather than waiting it out. A failed or cancelled download deletes its partial file instead of leaving a half-written bundle sitting there looking like a collection.</p>
<p dir="auto">Both copies are kept and marked <strong>redacted — safe to send</strong> or <strong>raw — unmasked</strong>. Redaction is lossy, and the raw copy is the only thing that can answer "what did that used to say?" afterwards. Each collection writes the same redaction report the preview page produces, so you can see which rules fired — and which were switched off — before anything leaves the box. In the screenshot I had IPv4, MAC, UUIDs and hostnames turned off, and they show as <strong>off</strong> rather than as zero hits. That is deliberate: a partly-masked bundle should be obvious before you attach it to a ticket.</p>
<p dir="auto">There is also a retention policy. The newest <em>n</em> collections are kept whatever their age, and only what is left is judged on age — a long gap in collecting can't empty the store. It shows you what a cleanup would delete and how much space that returns before you press the button.</p>
<p dir="auto"><strong>Expect bugs.</strong> This is still very much a work in progress and it has only ever run against my own pool. If you try it in a different environment, assume things will break — please tell me what did. Known issues right now:</p>
<ul>
<li>The red <strong>"This connection uses a restricted account"</strong> warning on the Collect page shows for <em>every</em> connection, including an administrator one. It is a wrong condition in the template, not a real permission check — ignore it if your account is admin. The screenshot below has it, over a collection that succeeded.</li>
<li>The Collect page says to expect <strong>"433 MB and 100 seconds per host"</strong>. The 100 seconds is the download only; a full collection also fetches the audit trail and redacts both copies, which took <strong>203 seconds</strong> on my pool. Budget three to four minutes.</li>
</ul>
<p dir="auto"><strong>Two more things worth flagging if you try this.</strong></p>
<p dir="auto"><code>logs.tgz</code> sends no <code>Content-Length</code>, so a reverse proxy that buffers will happily hand you a truncated archive with HTTP 200. Mine did. It now detects that and reports the bundle as cut short rather than as a protocol error, and repacks whatever did arrive instead of throwing the lot away. If you are behind Nginx Proxy Manager, <code>proxy_buffering off;</code> and <code>proxy_max_temp_file_size 0;</code> are what fixed the stall for me.</p>
<p dir="auto">The account requirement from the first post has not changed — the log download needs <code>export:logs</code> on host, and on the instance I measured that is only reachable via <strong>Administrator</strong>. Inventory still works fine on <strong>Read only</strong>.</p>
<p dir="auto"><strong>Next up:</strong> individual log categories pulled out of the cached bundle (~35 MB instead of 434 MiB), date ranges, and then findings.</p>
<p dir="auto"><a href="https://github.com/acebmxer/xcp_pulse" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/acebmxer/xcp_pulse</a></p>
<p dir="auto"><img src="/forum/assets/uploads/files/1788812029125-screenshot_20260907_160937.png" alt="Screenshot_20260907_160937.png" class="img-markdown  img-fluid" width="1378" height="1306" /></p>
]]></description><link>https://xcp-ng.org/forum/post/108343</link><guid isPermaLink="true">https://xcp-ng.org/forum/post/108343</guid><dc:creator><![CDATA[acebmxer]]></dc:creator><pubDate>Mon, 07 Sep 2026 20:45:23 GMT</pubDate></item></channel></rss>