<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Homelab on Techobyte Blog</title>
    <link>/tags/homelab/</link>
    <description>Recent content in Homelab on Techobyte Blog</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <lastBuildDate>Sun, 01 Nov 2026 11:00:13 -0500</lastBuildDate>
    <atom:link href="/tags/homelab/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Raspberry Pi Syslog Monitoring</title>
      <link>/posts/rpi-syslog-monitoring/</link>
      <pubDate>Sun, 01 Nov 2026 11:00:13 -0500</pubDate>
      <guid>/posts/rpi-syslog-monitoring/</guid>
      <description>&lt;p&gt;While I was poking around in my AT&amp;amp;T modem&amp;rsquo;s admin UI, I discovered it can forward logs to syslog. I had a Raspberry Pi 3B sitting around doing absolutely nothing. So I plugged it into one of the modem&amp;rsquo;s LAN ports and setup rsyslog to collect the events from the modem.&lt;/p&gt;
&lt;p&gt;I have a separate Unifi network behind the modem, so this Raspberry Pi is on the Unifi&amp;rsquo;s WAN, but my house&amp;rsquo;s LAN. It collects network events passing between the networks. But why stop there?&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>While I was poking around in my AT&amp;T modem&rsquo;s admin UI, I discovered it can forward logs to syslog. I had a Raspberry Pi 3B sitting around doing absolutely nothing. So I plugged it into one of the modem&rsquo;s LAN ports and setup rsyslog to collect the events from the modem.</p>
<p>I have a separate Unifi network behind the modem, so this Raspberry Pi is on the Unifi&rsquo;s WAN, but my house&rsquo;s LAN. It collects network events passing between the networks. But why stop there?</p>
<p>I connect the isolated AT&amp;T and Unifi networks with my self-hosted Netbird VPN. If you&rsquo;re a fan of Tailscale but want to host it yourself, I highly recommend it! I have a <a href="https://github.com/redjax/docker_templates/tree/main/templates/networking/docker_netbird">Docker Compose stack for you</a> if you want to get started.</p>
<p>After a week or so of manually tail-ing the logs, I decided to setup Grafana Alloy to export formatted log events to a Loki container. And that quickly spiralled into creating a Grafana dashboard for all of my network traffic. I can see how many log events happen in a given time period, where the traffic originated and where it&rsquo;s headed.</p>
<p><img alt="Modem logs dashboard" loading="lazy" src="/posts/rpi-syslog-monitoring/grafana1.png#center"></p>
<p>As any self-respecting tinkerer will appreciate, I was not satisfied to stop there, with a useful dashboard charting my home network&rsquo;s traffic. Surely, Unifi&rsquo;s gateway can also export to syslog, right?</p>
<p>Correct! I&rsquo;m running rsyslog and Alloy in containers on my Unifi controller&rsquo;s host (also a Docker image), and a &ldquo;satellite&rdquo; Loki database so I don&rsquo;t overwhelm my poor, underpowered Raspberry Pi. The Alloy container on the controller exports to the local Loki instance, which Grafana connects to over my Netbird VPN.</p>
<p><img alt="Unifi dashboard" loading="lazy" src="/posts/rpi-syslog-monitoring/grafana2.png#center"></p>
<p>I added some widgets to see overall traffic, and tables for the top 20 source/destination IPs and ports.</p>
<p><img alt="Unifi network stats dashboard" loading="lazy" src="/posts/rpi-syslog-monitoring/grafana3.png#center"></p>
<p>But how will I know when the Raspberry Pi is overloaded or running out of disk space? I needed a way to chart metrics like RAM and CPU usage, network saturation, and available disk space, so I added Prometheus to the stack. It scrapes a node_exporter container on the Unifi controller and the Raspberry Pi, allowing me to chart system resources alongside the network traffic.</p>
<p><img alt="Prometheus resource usage dashboard" loading="lazy" src="/posts/rpi-syslog-monitoring/grafana4.png#center"></p>
<p>The full stack:</p>
<p><img alt="Dockhand full stack" loading="lazy" src="/posts/rpi-syslog-monitoring/full-stack.png#center"></p>
<p>The next step is going to be adding a large disk for log retention. This is quickly filling up the internal 64GB SD card in the Pi, and with the price of hardware, I will have to wait for a donation from someone getting rid of an old computer or something. I&rsquo;m also organizing the workspace directory for this into a git repository so I can share it on Github. It will have the central syslog + Loki + Prometheus + Grafana server, and subdirectories for &ldquo;satellite&rdquo; instances of Loki, Prometheus, etc.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
