<?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>Journalctl on Kenno&#39;s Open Note</title>
    <link>https://blog.khmersite.net/tags/journalctl/</link>
    <description>Recent content in Journalctl on Kenno&#39;s Open Note</description>
    <image>
      <title>Kenno&#39;s Open Note</title>
      <url>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</url>
      <link>https://blog.khmersite.net/%3Clink%20or%20path%20of%20image%20for%20opengraph,%20twitter-cards%3E</link>
    </image>
    <generator>Hugo -- 0.154.0</generator>
    <language>en</language>
    <lastBuildDate>Fri, 26 Mar 2021 19:15:29 +1100</lastBuildDate>
    <atom:link href="https://blog.khmersite.net/tags/journalctl/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Clean Up Systemd Journal Logs</title>
      <link>https://blog.khmersite.net/p/clean-up-systemd-journal/</link>
      <pubDate>Fri, 26 Mar 2021 19:15:29 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/clean-up-systemd-journal/</guid>
      <description>&lt;p&gt;On my Fedora 33 system, the systemd journal is persistently logged. Over time, the size of the log accumulate quite a lot.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# du -shx journal/
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;4.2G    journal/
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;I already cleaned up the log twice in the past, but I already forgot how to do it. To fix my short-term memory, I&amp;rsquo;m going to document how I do this by following this blog post &lt;a href=&#34;https://ma.ttias.be/clear-systemd-journal/&#34;&gt;Clear systemd journal&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The command for cleaning up old logs is &lt;code&gt;journalctl&lt;/code&gt; with the option &lt;code&gt;--vaccume-time=OLDER_THAN_TIME&lt;/code&gt;. To read more about this, we can check the &lt;code&gt;journactl&lt;/code&gt; manual page. (&lt;code&gt;man journalctl&lt;/code&gt; and search for &lt;code&gt;vacuume&lt;/code&gt; key word.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>Cleaning Up Systemd Journal Logs</title>
      <link>https://blog.khmersite.net/p/cleaning-up-systemd-journal-logs/</link>
      <pubDate>Sat, 10 Oct 2020 00:16:23 +1100</pubDate>
      <guid>https://blog.khmersite.net/p/cleaning-up-systemd-journal-logs/</guid>
      <description>&lt;p&gt;&amp;ldquo;Bad boys, whatcha want. Watcha want, whatcha gonna do when the root is full?&amp;rdquo;&lt;/p&gt;
&lt;p&gt;Actually, what are you gonna do when the journald taking up lots of space? For example, during the operating system upgrade on my desktop, the free space on &lt;code&gt;/&lt;/code&gt; is not sufficient.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-console&#34; data-lang=&#34;console&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Error Summary
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;-------------
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disk Requirements:
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;   At least 5643MB more space needed on the / filesystem.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;So, I check how much space the systemd-journald log was consuming:&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
