<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Systemd on Linux Security</title><link>https://linuxtransfer.com/tags/systemd/</link><description>Recent content in Systemd on Linux Security</description><generator>Hugo</generator><language>en</language><lastBuildDate>Mon, 15 Jun 2026 09:54:03 +0200</lastBuildDate><atom:link href="https://linuxtransfer.com/tags/systemd/index.xml" rel="self" type="application/rss+xml"/><item><title>Resolving DNS Issues with resolvectl and systemd-resolved in a Home Network</title><link>https://linuxtransfer.com/post/2026-06-15-resolving-dns-issues-with-resolvectl-and-syst/</link><pubDate>Mon, 15 Jun 2026 09:54:03 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-15-resolving-dns-issues-with-resolvectl-and-syst/</guid><description>&lt;h2 id="introduction-to-dns-resolution">Introduction to DNS Resolution&lt;/h2>
&lt;p>When setting up a home network, DNS resolution is one of those critical components that can be a real pain to troubleshoot. I&amp;rsquo;ve seen this go wrong when people are new to Linux, so let&amp;rsquo;s dive into how to use &lt;code>resolvectl&lt;/code> to resolve DNS issues with &lt;code>systemd-resolved&lt;/code>.&lt;/p>
&lt;h2 id="understanding-systemd-resolved">Understanding systemd-resolved&lt;/h2>
&lt;p>&lt;code>systemd-resolved&lt;/code> is a system service that handles DNS resolution, among other network-related tasks. It&amp;rsquo;s part of the systemd suite and is widely used in many Linux distributions, including Ubuntu, Debian, and Fedora. The real trick is that &lt;code>systemd-resolved&lt;/code> provides improved DNS security and better support for modern DNS protocols like DNS over TLS (DoT) and DNS over HTTPS (DoH). Don&amp;rsquo;t bother with trying to use it without understanding these benefits, as they&amp;rsquo;re a key part of what makes &lt;code>systemd-resolved&lt;/code> so useful.&lt;/p></description></item><item><title>Troubleshooting Slow Network Connectivity with ss and resolvectl on Linux</title><link>https://linuxtransfer.com/post/2026-06-14-troubleshooting-slow-network-connectivity-wit/</link><pubDate>Sun, 14 Jun 2026 08:16:06 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-14-troubleshooting-slow-network-connectivity-wit/</guid><description>&lt;h2 id="introduction-to-network-troubleshooting">Introduction to Network Troubleshooting&lt;/h2>
&lt;p>I&amp;rsquo;ve seen my fair share of slow network connectivity issues on Linux, and having the right tools at your disposal can make all the difference. Two tools that I rely on are &lt;code>ss&lt;/code> and &lt;code>resolvectl&lt;/code>, which can help you diagnose and troubleshoot network issues. In this article, we&amp;rsquo;ll explore how to use these tools to identify and potentially fix slow network connectivity problems.&lt;/p>
&lt;h2 id="understanding-ss">Understanding &lt;code>ss&lt;/code>&lt;/h2>
&lt;p>The &lt;code>ss&lt;/code> command is a replacement for the traditional &lt;code>netstat&lt;/code> command, and it provides more detailed information about network connections, including TCP, UDP, and Unix domain sockets. To get started with &lt;code>ss&lt;/code>, you can use the following command to display all active connections:&lt;/p></description></item><item><title>Taming Disk-Hungry Logs with systemd's Persistent Journal and Log Rotation</title><link>https://linuxtransfer.com/post/2026-06-13-taming-disk-hungry-logs-with-systemds-persist/</link><pubDate>Sat, 13 Jun 2026 11:46:55 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-13-taming-disk-hungry-logs-with-systemds-persist/</guid><description>&lt;h2 id="introduction-to-log-management">Introduction to Log Management&lt;/h2>
&lt;p>I&amp;rsquo;ve seen log management become a major headache for many Linux administrators. Logs are essential for diagnosing issues, detecting security threats, and optimizing system performance, but they can grow rapidly and consume significant disk space. In practice, this can lead to performance issues and even system crashes. To avoid this, we can use systemd&amp;rsquo;s persistent journal and log rotation features.&lt;/p>
&lt;h2 id="understanding-systemds-journal">Understanding systemd&amp;rsquo;s Journal&lt;/h2>
&lt;p>Systemd&amp;rsquo;s journal is a centralized logging system that collects log messages from various system components, including systemd services, kernel messages, and application logs. The real trick is to configure it to use persistent storage, so logs aren&amp;rsquo;t lost upon system reboot. By default, the journal stores log messages in a volatile storage area, which isn&amp;rsquo;t very useful for long-term log management.&lt;/p></description></item><item><title>Using systemd to Manage and Rotate Logs for Forgotten System Services</title><link>https://linuxtransfer.com/post/2026-06-12-using-systemd-to-manage-and-rotate-logs-for-f/</link><pubDate>Fri, 12 Jun 2026 08:50:25 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-12-using-systemd-to-manage-and-rotate-logs-for-f/</guid><description>&lt;h2 id="introduction-to-log-management-with-systemd">Introduction to Log Management with systemd&lt;/h2>
&lt;p>I&amp;rsquo;ve seen many Linux admins struggle with log management, especially when it comes to system services that are often overlooked. Systemd is a powerful system and service manager that provides a wide range of features, including process management, dependency handling, and log management. In this article, I&amp;rsquo;ll focus on using systemd to manage and rotate logs for system services.&lt;/p>
&lt;h2 id="understanding-systemd-logs">Understanding systemd Logs&lt;/h2>
&lt;p>The real trick is to understand how systemd logs work. Systemd logs are stored in a binary format, which can be read using the &lt;code>journalctl&lt;/code> command. This command provides a powerful way to filter, search, and manage system logs. By default, systemd stores logs in &lt;code>/var/log/journal&lt;/code>, but this can be configured to use a different location. Don&amp;rsquo;t bother with trying to read the binary logs directly - just use &lt;code>journalctl&lt;/code>.&lt;/p></description></item><item><title>Taming systemd Timer Services to Run Your Daily Backup at a Reasonable Hour</title><link>https://linuxtransfer.com/post/2026-06-09-taming-systemd-timer-services-to-run-your-dai/</link><pubDate>Tue, 09 Jun 2026 09:05:53 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-09-taming-systemd-timer-services-to-run-your-dai/</guid><description>&lt;h2 id="introduction-to-systemd-timer-services">Introduction to systemd Timer Services&lt;/h2>
&lt;p>I&amp;rsquo;ve been using systemd timer services for years to schedule tasks on my Linux systems, and I have to say, they&amp;rsquo;re a game-changer. Most Linux distributions, including Debian, Arch Linux, and OpenSUSE, use systemd as their default init system, so it&amp;rsquo;s worth learning how to use them. In this article, I&amp;rsquo;ll show you how to use systemd timer services to run daily backups at a reasonable hour.&lt;/p></description></item><item><title>Taming systemd-resolved: Troubleshooting DNS leaks and resolving domain name surprises on Linux desktops and servers</title><link>https://linuxtransfer.com/post/2026-06-05-taming-systemd-resolved-troubleshooting-dns-l/</link><pubDate>Fri, 05 Jun 2026 10:35:34 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-05-taming-systemd-resolved-troubleshooting-dns-l/</guid><description>&lt;h2 id="introduction-to-systemd-resolved">Introduction to systemd-resolved&lt;/h2>
&lt;p>I&amp;rsquo;ve seen systemd-resolved become a crucial part of many Linux distributions, including Ubuntu, Debian, and Fedora, as of 2026. It&amp;rsquo;s designed to provide a robust and secure way to resolve domain names on Linux systems. However, like any complex system, it can sometimes behave unexpectedly, leading to DNS leaks and domain name resolution surprises.&lt;/p>
&lt;h2 id="understanding-dns-leaks">Understanding DNS Leaks&lt;/h2>
&lt;p>A DNS leak occurs when your system sends DNS queries to an unintended DNS server, potentially revealing your browsing history and online activities to third parties. This can happen when your system is configured to use a specific DNS server, but systemd-resolved is not properly configured to respect this setting. Don&amp;rsquo;t bother with manually trying to diagnose DNS leaks - just use online tools such as dnsleaktest.com or &lt;a href="https://ipleak.net">ipleak.net&lt;/a> to check for them.&lt;/p></description></item><item><title>Taming systemd-resolved: How to Configure DNS Settings for Split Horizon Environments</title><link>https://linuxtransfer.com/post/2026-06-04-taming-systemd-resolved-how-to-configure-dns-/</link><pubDate>Thu, 04 Jun 2026 11:14:28 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-04-taming-systemd-resolved-how-to-configure-dns-/</guid><description>&lt;h2 id="introduction-to-systemd-resolved">Introduction to systemd-resolved&lt;/h2>
&lt;p>I&amp;rsquo;ve seen many Linux admins struggle with configuring DNS settings for split horizon environments. systemd-resolved, a DNS resolver component of the systemd suite, can make life easier. In this article, I&amp;rsquo;ll walk you through how to configure DNS settings for split horizon environments using systemd-resolved.&lt;/p>
&lt;h2 id="understanding-split-horizon-environments">Understanding Split Horizon Environments&lt;/h2>
&lt;p>Split horizon environments are network setups where multiple DNS servers provide different answers for the same domain name, depending on the client&amp;rsquo;s location or network. I&amp;rsquo;ve encountered this in organizations with multiple offices or data centers, where different DNS servers serve different locations. For example, a company with offices in the US and Europe might have two separate DNS servers, one for each region, providing different IP addresses for the same domain name.&lt;/p></description></item><item><title>Rescuing a Linux System Stuck in Emergency Mode: A Step-by-Step Recovery Guide</title><link>https://linuxtransfer.com/post/2026-06-03-rescuing-a-linux-system-stuck-in-emergency-mo/</link><pubDate>Wed, 03 Jun 2026 11:47:11 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-03-rescuing-a-linux-system-stuck-in-emergency-mo/</guid><description>&lt;h2 id="introduction-to-emergency-mode">Introduction to Emergency Mode&lt;/h2>
&lt;p>I&amp;rsquo;ve seen this go wrong when a Linux system encounters a critical issue during boot - it may enter Emergency Mode. This mode provides a minimal environment for troubleshooting and recovery. With many Linux distributions, including Debian and Arch Linux, updating their boot processes to use systemd, understanding how to rescue a system stuck in Emergency Mode is crucial.&lt;/p>
&lt;h2 id="identifying-the-issue">Identifying the Issue&lt;/h2>
&lt;p>To rescue a system in Emergency Mode, you first need to identify the cause of the issue. Don&amp;rsquo;t bother with guessing - check the system logs, which are usually available in the &lt;code>/var/log&lt;/code> directory. I usually start with the &lt;code>journalctl&lt;/code> command to view the system logs:&lt;/p></description></item><item><title>Troubleshooting Failed Mounts at Boot Time with systemd and fstab</title><link>https://linuxtransfer.com/post/2026-06-02-troubleshooting-failed-mounts-at-boot-time-wi/</link><pubDate>Tue, 02 Jun 2026 09:15:54 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-02-troubleshooting-failed-mounts-at-boot-time-wi/</guid><description>&lt;h2 id="introduction-to-troubleshooting-failed-mounts">Introduction to Troubleshooting Failed Mounts&lt;/h2>
&lt;p>When I&amp;rsquo;m dealing with a Linux system that won&amp;rsquo;t boot properly, one of the first things I check is the mount points. &lt;code>systemd&lt;/code> and the &lt;code>/etc/fstab&lt;/code> file are crucial in this process, but issues can still arise, leading to failed mounts and potential system instability. In this article, I&amp;rsquo;ll walk you through practical steps to troubleshoot and resolve failed mounts at boot time, focusing on &lt;code>systemd&lt;/code> and &lt;code>fstab&lt;/code> configurations.&lt;/p></description></item><item><title>Taming Disk-Hungry Logs with systemd-journald and logrotate</title><link>https://linuxtransfer.com/post/2026-06-01-taming-disk-hungry-logs-with-systemd-journald/</link><pubDate>Mon, 01 Jun 2026 10:10:58 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-06-01-taming-disk-hungry-logs-with-systemd-journald/</guid><description>&lt;h2 id="introduction-to-log-management">Introduction to Log Management&lt;/h2>
&lt;p>I&amp;rsquo;ve seen log files grow out of control and consume disk space, affecting system performance. To tame disk-hungry logs, I recommend using &lt;code>systemd-journald&lt;/code> and &lt;code>logrotate&lt;/code>. These tools help manage log data, making it easier to troubleshoot, debug, and perform security audits.&lt;/p>
&lt;h2 id="understanding-systemd-journald">Understanding systemd-journald&lt;/h2>
&lt;p>&lt;code>systemd-journald&lt;/code> is a system service that collects and stores log messages from various sources. It provides a centralized logging system, which I find more efficient than traditional text-based log files. To view log messages, use the &lt;code>journalctl&lt;/code> command:&lt;/p></description></item><item><title>Rescuing a Broken Linux System with a systemd Emergency Mode Shell</title><link>https://linuxtransfer.com/post/2026-05-31-rescuing-a-broken-linux-system-with-a-systemd/</link><pubDate>Sun, 31 May 2026 08:26:25 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-31-rescuing-a-broken-linux-system-with-a-systemd/</guid><description>&lt;h2 id="introduction-to-emergency-mode">Introduction to Emergency Mode&lt;/h2>
&lt;p>I&amp;rsquo;ve seen this go wrong when a Linux system encounters a critical issue during boot - it can be a real headache. But, thankfully, Linux has a built-in safety net called emergency mode. This mode kicks in when there&amp;rsquo;s a failed filesystem check or an inability to mount a necessary partition, providing a minimal environment for troubleshooting and repair. With the advancements in Linux, understanding how to use emergency mode is crucial for system administrators and users alike.&lt;/p></description></item><item><title>Troubleshooting DNS Leaks with systemd-resolved and resolv.conf on a Small Linux Server</title><link>https://linuxtransfer.com/post/2026-05-29-troubleshooting-dns-leaks-with-systemd-resolv/</link><pubDate>Fri, 29 May 2026 08:36:48 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-29-troubleshooting-dns-leaks-with-systemd-resolv/</guid><description>&lt;h2 id="introduction-to-dns-leaks">Introduction to DNS Leaks&lt;/h2>
&lt;p>I&amp;rsquo;ve seen DNS leaks cause issues on even the most secure Linux servers. Ensuring your DNS setup is solid is crucial, and one common problem is a DNS leak, where your system inadvertently reveals your DNS queries to unauthorized parties. In this article, I&amp;rsquo;ll walk you through troubleshooting DNS leaks using &lt;code>systemd-resolved&lt;/code> and &lt;code>resolv.conf&lt;/code> on a Linux server.&lt;/p>
&lt;h2 id="understanding-systemd-resolved">Understanding systemd-resolved&lt;/h2>
&lt;p>&lt;code>systemd-resolved&lt;/code> is a powerful tool that provides DNS resolution capabilities. It&amp;rsquo;s designed to be a caching, validating DNS resolver that can also handle DNSSEC validation. To check if &lt;code>systemd-resolved&lt;/code> is running on your system, use the following command:&lt;/p></description></item><item><title>Debugging systemd Service Startup Failures with systemd-analyze and Journalctl</title><link>https://linuxtransfer.com/post/2026-05-28-debugging-systemd-service-startup-failures-wi/</link><pubDate>Thu, 28 May 2026 11:31:56 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-28-debugging-systemd-service-startup-failures-wi/</guid><description>&lt;h2 id="introduction-to-debugging-systemd-services">Introduction to Debugging systemd Services&lt;/h2>
&lt;p>I&amp;rsquo;ve seen this go wrong when you&amp;rsquo;re trying to troubleshoot issues with your Linux system - those pesky systemd services can be a real pain. They&amp;rsquo;re the backbone of your system, managing everything from network connections to system logging. Debugging these services can be a daunting task, especially for those new to Linux administration. Fortunately, systemd provides two powerful tools to help you diagnose and resolve issues: &lt;code>systemd-analyze&lt;/code> and &lt;code>journalctl&lt;/code>.&lt;/p></description></item><item><title>Taming Split DNS Chaos with systemd-resolved and Local Hostname Resolution</title><link>https://linuxtransfer.com/post/2026-05-27-taming-split-dns-chaos-with-systemd-resolved-/</link><pubDate>Wed, 27 May 2026 08:34:11 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-27-taming-split-dns-chaos-with-systemd-resolved-/</guid><description>&lt;h2 id="introduction-to-split-dns-chaos">Introduction to Split DNS Chaos&lt;/h2>
&lt;p>I&amp;rsquo;ve seen this go wrong when working with multiple networks or self-hosted services: split DNS configurations can become a real headache. Luckily, many Linux distributions have started adopting &lt;code>systemd-resolved&lt;/code> as the default DNS resolver, which makes managing split DNS scenarios much simpler. In this article, I&amp;rsquo;ll walk you through how to use &lt;code>systemd-resolved&lt;/code> for local hostname resolution and taming that split DNS chaos.&lt;/p>
&lt;h2 id="understanding-systemd-resolved">Understanding systemd-resolved&lt;/h2>
&lt;p>The real trick is understanding how &lt;code>systemd-resolved&lt;/code> works. It&amp;rsquo;s a systemd component that provides DNS resolution and caching, and it can be configured to use multiple DNS servers and handle split DNS scenarios with ease. To check if &lt;code>systemd-resolved&lt;/code> is enabled on your system, run the following command:&lt;/p></description></item><item><title>Troubleshooting Slow DNS Lookups with systemd-resolved and resolvectl</title><link>https://linuxtransfer.com/post/2026-05-25-troubleshooting-slow-dns-lookups-with-systemd/</link><pubDate>Mon, 25 May 2026 08:57:59 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-25-troubleshooting-slow-dns-lookups-with-systemd/</guid><description>&lt;h2 id="introduction-to-troubleshooting-slow-dns-lookups">Introduction to Troubleshooting Slow DNS Lookups&lt;/h2>
&lt;p>I&amp;rsquo;ve seen slow DNS lookups bring Linux systems to a crawl, and with our increasing reliance on online services, efficient DNS resolution is crucial. This article focuses on troubleshooting slow DNS lookups using &lt;code>systemd-resolved&lt;/code> and &lt;code>resolvectl&lt;/code>, which are integral to many modern Linux distributions.&lt;/p>
&lt;h2 id="understanding-systemd-resolved">Understanding systemd-resolved&lt;/h2>
&lt;p>&lt;code>systemd-resolved&lt;/code> is a system service that provides DNS resolution, replacing traditional implementations like &lt;code>glibc&lt;/code>&amp;rsquo;s resolver. It offers improved security, better DNSSEC handling, and efficient management of multiple DNS servers. To check if it&amp;rsquo;s running on your system, use:&lt;/p></description></item><item><title>Taming systemd-resolved: Avoiding DNS Leaks and Surprises with Split DNS Configurations</title><link>https://linuxtransfer.com/post/2026-05-24-taming-systemd-resolved-avoiding-dns-leaks-an/</link><pubDate>Sun, 24 May 2026 10:21:18 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-24-taming-systemd-resolved-avoiding-dns-leaks-an/</guid><description>&lt;h2 id="introduction-to-systemd-resolved">Introduction to systemd-resolved&lt;/h2>
&lt;p>I&amp;rsquo;ve worked with Linux systems for years, and one thing that&amp;rsquo;s become increasingly important is DNS resolution. systemd-resolved is a DNS resolver component of the systemd suite, designed to provide a flexible and secure way to resolve domain names. It was introduced in systemd version 216, released in 2015, and has since become a standard component in many Linux distributions. By default, systemd-resolved uses a split DNS configuration, which can sometimes lead to DNS leaks and unexpected behavior. I&amp;rsquo;ve seen this go wrong when a system has multiple network interfaces or connections, each with its own DNS resolver configuration.&lt;/p></description></item><item><title>Using systemd to Manage and Rotate Log Files Without Running Out of Disk Space</title><link>https://linuxtransfer.com/post/2026-05-23-using-systemd-to-manage-and-rotate-log-files-/</link><pubDate>Sat, 23 May 2026 11:26:20 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-23-using-systemd-to-manage-and-rotate-log-files-/</guid><description>&lt;h2 id="introduction-to-log-rotation-with-systemd">Introduction to Log Rotation with systemd&lt;/h2>
&lt;p>I&amp;rsquo;ve seen log files consume entire disks, bringing systems to a grinding halt. That&amp;rsquo;s why log rotation is crucial - it ensures your logs don&amp;rsquo;t get out of control. With systemd, you&amp;rsquo;ve got a robust mechanism for managing and rotating logs. In this article, I&amp;rsquo;ll dive into using systemd for log rotation, covering its benefits, configuration, and some practical examples.&lt;/p>
&lt;h2 id="understanding-systemds-role-in-log-rotation">Understanding systemd&amp;rsquo;s Role in Log Rotation&lt;/h2>
&lt;p>systemd&amp;rsquo;s journald is a game-changer for log management. It collects and stores log messages from various sources, including systemd services, kernel messages, and other system components. This centralized logging system makes it easier to manage and rotate logs. By leveraging systemd&amp;rsquo;s capabilities, you can configure log rotation to suit your specific needs, keeping your system stable and secure.&lt;/p></description></item><item><title>Taming systemd-resolved: Tips for Troubleshooting and Customizing DNS Resolution on Linux</title><link>https://linuxtransfer.com/post/2026-05-22-taming-systemd-resolved-tips-for-troubleshoot/</link><pubDate>Fri, 22 May 2026 10:04:50 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-22-taming-systemd-resolved-tips-for-troubleshoot/</guid><description>&lt;h2 id="introduction-to-systemd-resolved">Introduction to systemd-resolved&lt;/h2>
&lt;p>I&amp;rsquo;ve been using systemd-resolved for a while now, and I have to say, it&amp;rsquo;s a big improvement over traditional DNS resolvers. As of 2026, many Linux distributions, including Ubuntu, Debian, and Fedora, have adopted systemd-resolved as the default DNS resolver. While it offers several benefits, including improved security and performance, some users may encounter issues or require customization to suit their specific needs. Don&amp;rsquo;t bother with trying to disable it, though - it&amp;rsquo;s usually worth the effort to get it working right.&lt;/p></description></item><item><title>Using rsync and systemd to Automate Offsite Backups of Selected Config Files and User Data</title><link>https://linuxtransfer.com/post/2026-05-21-using-rsync-and-systemd-to-automate-offsite-b/</link><pubDate>Thu, 21 May 2026 10:49:01 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-21-using-rsync-and-systemd-to-automate-offsite-b/</guid><description>&lt;h2 id="introduction-to-automated-offsite-backups">Introduction to Automated Offsite Backups&lt;/h2>
&lt;p>As a Linux user, you&amp;rsquo;ve probably learned the hard way how important it is to protect your configuration files and user data from loss or corruption. I&amp;rsquo;ve seen this go wrong when a disk fails or a configuration change goes awry. One way to ensure the integrity of this data is to set up automated offsite backups. In this article, we&amp;rsquo;ll explore how to use &lt;code>rsync&lt;/code> and &lt;code>systemd&lt;/code> to create a reliable and efficient backup system.&lt;/p></description></item><item><title>Using jq to Parse and Manipulate JSON Logs from systemd-journald</title><link>https://linuxtransfer.com/post/2026-05-19-using-jq-to-parse-and-manipulate-json-logs-fr/</link><pubDate>Tue, 19 May 2026 08:58:34 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-19-using-jq-to-parse-and-manipulate-json-logs-fr/</guid><description>&lt;h2 id="introduction-to-jq-and-systemd-journald">Introduction to jq and systemd-journald&lt;/h2>
&lt;p>I&amp;rsquo;ve found that working with Linux systems often involves digging through logs to troubleshoot issues. systemd-journald is a key component in this process, collecting and storing log messages from various sources. Since these logs are often in JSON format, tools like &lt;code>jq&lt;/code> become incredibly useful for parsing and manipulation. In this article, I&amp;rsquo;ll walk you through how to use &lt;code>jq&lt;/code> to parse and manipulate JSON logs from systemd-journald.&lt;/p></description></item><item><title>Troubleshooting systemd Service Startup Failures with Dependency Ordering and Journalctl</title><link>https://linuxtransfer.com/post/2026-05-18-troubleshooting-systemd-service-startup-failu/</link><pubDate>Mon, 18 May 2026 10:30:29 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-18-troubleshooting-systemd-service-startup-failu/</guid><description>&lt;h2 id="introduction-to-systemd-service-troubleshooting">Introduction to systemd Service Troubleshooting&lt;/h2>
&lt;p>I&amp;rsquo;ve seen this go wrong when services fail to start due to complex dependency ordering and logging issues. systemd, with its powerful tools for diagnosing problems, makes it easier to identify and fix these issues. In this article, we&amp;rsquo;ll focus on practical examples of using dependency ordering and &lt;code>journalctl&lt;/code> to troubleshoot systemd service startup failures.&lt;/p>
&lt;h2 id="understanding-systemd-dependencies">Understanding systemd Dependencies&lt;/h2>
&lt;p>systemd services are defined in unit files, typically located in &lt;code>/etc/systemd/system/&lt;/code> or &lt;code>/usr/lib/systemd/system/&lt;/code>. These files specify the service&amp;rsquo;s dependencies, which are crucial for determining the order in which services start. Dependencies are defined using directives like &lt;code>Requires&lt;/code>, &lt;code>Wants&lt;/code>, &lt;code>Before&lt;/code>, and &lt;code>After&lt;/code>. For instance, a web server service might require the network service to be started before it can start itself.&lt;/p></description></item><item><title>Taming Log Rotation in systemd: A Practical Approach to Preventing Disk Bloat</title><link>https://linuxtransfer.com/post/2026-05-17-taming-log-rotation-in-systemd-a-practical-ap/</link><pubDate>Sun, 17 May 2026 10:14:26 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-17-taming-log-rotation-in-systemd-a-practical-ap/</guid><description>&lt;h2 id="introduction-to-log-rotation">Introduction to Log Rotation&lt;/h2>
&lt;p>I&amp;rsquo;ve seen this go wrong when log files grow out of control, filling up the disk and causing system instability. That&amp;rsquo;s why log rotation is a crucial aspect of Linux system maintenance. With many Linux distributions, including Debian and Arch Linux, adopting systemd as their default init system, understanding how to manage log rotation in a systemd environment is essential. In practice, this means getting familiar with systemd-journald, the component responsible for collecting and storing log messages.&lt;/p></description></item><item><title>Taming systemd Service Restart Behavior with RestartSec and TimeoutStartSec</title><link>https://linuxtransfer.com/post/2026-05-16-taming-systemd-service-restart-behavior-with-/</link><pubDate>Sat, 16 May 2026 08:13:26 +0200</pubDate><guid>https://linuxtransfer.com/post/2026-05-16-taming-systemd-service-restart-behavior-with-/</guid><description>&lt;h2 id="introduction-to-systemd-service-restart-behavior">Introduction to systemd Service Restart Behavior&lt;/h2>
&lt;p>I&amp;rsquo;ve seen this go wrong when a service fails and systemd keeps restarting it, causing more harm than good. To avoid this, it&amp;rsquo;s essential to understand how systemd handles service restarts. Systemd is a core component of most modern Linux distributions, responsible for managing system services, including their startup, runtime, and shutdown. One of the key aspects of systemd service management is its ability to automatically restart services that fail or terminate unexpectedly. However, this behavior can sometimes lead to unintended consequences, such as a service restarting indefinitely in a failed state. To mitigate this, systemd provides two important directives: &lt;code>RestartSec&lt;/code> and &lt;code>TimeoutStartSec&lt;/code>.&lt;/p></description></item></channel></rss>