<?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>Logging on Zombie Farm</title><link>https://zombie-farm-01.vercel.app/topic/logging/</link><description>Recent content in Logging on Zombie Farm</description><image><title>Zombie Farm</title><url>https://zombie-farm-01.vercel.app/images/og-default.png</url><link>https://zombie-farm-01.vercel.app/images/og-default.png</link></image><generator>Hugo -- 0.156.0</generator><language>en-us</language><lastBuildDate>Thu, 05 Feb 2026 19:00:46 +0000</lastBuildDate><atom:link href="https://zombie-farm-01.vercel.app/topic/logging/index.xml" rel="self" type="application/rss+xml"/><item><title>Fix Rotation in logging: Storage Solution (2026)</title><link>https://zombie-farm-01.vercel.app/fix-rotation-in-logging-storage-solution-2026/</link><pubDate>Tue, 27 Jan 2026 18:49:51 +0000</pubDate><guid>https://zombie-farm-01.vercel.app/fix-rotation-in-logging-storage-solution-2026/</guid><description>Fix Rotation in logging with this step-by-step guide. Quick solution + permanent fix for Storage. Updated 2026.</description><content:encoded><![CDATA[<h1 id="how-to-fix-rotation-in-logging-2026-guide">How to Fix &ldquo;Rotation&rdquo; in logging (2026 Guide)</h1>
<h2 id="the-short-answer">The Short Answer</h2>
<p>To fix the &ldquo;rotation&rdquo; issue in logging, which leads to disk full errors, advanced users can immediately toggle off the automatic log rotation setting or adjust the rotation period to a more suitable timeframe, such as daily or weekly, to prevent excessive log file accumulation. This can typically be done through the logging tool&rsquo;s settings menu or by modifying configuration files directly.</p>
<h2 id="why-this-error-happens">Why This Error Happens</h2>
<ul>
<li><strong>Reason 1:</strong> The most common cause of the &ldquo;rotation&rdquo; issue is the misconfiguration of log rotation settings, where logs are not properly rotated or archived, leading to an accumulation of log files that consume increasing amounts of disk space over time.</li>
<li><strong>Reason 2:</strong> An edge case cause can be the rapid generation of logs due to a highly active system or an error condition that causes logs to be generated at an unusually high rate, overwhelming the rotation mechanism and filling the disk before the next scheduled rotation.</li>
<li><strong>Impact:</strong> The impact of this issue is significant, as it can lead to a complete fill-up of the available storage, causing the logging system to fail and potentially affecting other system operations that rely on logging for diagnostics and security auditing.</li>
</ul>
<h2 id="step-by-step-solutions">Step-by-Step Solutions</h2>
<h3 id="method-1-the-quick-fix">Method 1: The Quick Fix</h3>
<ol>
<li>Go to <strong>Settings</strong> &gt; <strong>Logging Configuration</strong> and locate the log rotation settings.</li>
<li>Toggle <strong>Automatic Log Rotation</strong> to Off, or adjust the <strong>Rotation Period</strong> to a suitable timeframe (e.g., daily or weekly) to manage log file sizes effectively.</li>
<li>Refresh the page to apply the changes and verify that the new settings are in effect.</li>
</ol>
<h3 id="method-2-the-command-lineadvanced-fix">Method 2: The Command Line/Advanced Fix</h3>
<p>For more advanced users or in cases where the graphical interface is not available, the log rotation settings can be adjusted directly through configuration files or command-line tools. For example, if using a Linux-based system with a logging tool like <code>logrotate</code>, you can modify the <code>/etc/logrotate.conf</code> file to include settings such as:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt"> 1
</span><span class="lnt"> 2
</span><span class="lnt"> 3
</span><span class="lnt"> 4
</span><span class="lnt"> 5
</span><span class="lnt"> 6
</span><span class="lnt"> 7
</span><span class="lnt"> 8
</span><span class="lnt"> 9
</span><span class="lnt">10
</span><span class="lnt">11
</span><span class="lnt">12
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">/var/log/app.log <span class="o">{</span>
</span></span><span class="line"><span class="cl">    daily
</span></span><span class="line"><span class="cl">    missingok
</span></span><span class="line"><span class="cl">    notifempty
</span></span><span class="line"><span class="cl">    delaycompress
</span></span><span class="line"><span class="cl">    compress
</span></span><span class="line"><span class="cl">    maxsize 100M
</span></span><span class="line"><span class="cl">    maxage <span class="m">7</span>
</span></span><span class="line"><span class="cl">    postrotate
</span></span><span class="line"><span class="cl">        /usr/sbin/service app restart &gt; /dev/null
</span></span><span class="line"><span class="cl">    endscript
</span></span><span class="line"><span class="cl"><span class="o">}</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>This example sets up daily rotation of the <code>app.log</code> file, with compression, a maximum size of 100MB, and a maximum age of 7 days, also restarting the <code>app</code> service after rotation.</p>
<h2 id="prevention-how-to-stop-this-coming-back">Prevention: How to Stop This Coming Back</h2>
<ul>
<li><strong>Best Practice Configuration:</strong> Regularly review and adjust log rotation settings based on the system&rsquo;s logging needs and available storage. Implementing a mix of size and time-based rotation can help prevent sudden spikes in log generation from causing storage issues.</li>
<li><strong>Monitoring Tips:</strong> Set up monitoring tools to track disk usage and log file sizes, allowing for early detection of potential issues before they lead to a disk full condition. Automated alerts can be configured to notify administrators when log files reach a certain size or when disk usage exceeds a threshold.</li>
</ul>
<h2 id="if-you-cant-fix-it">If You Can&rsquo;t Fix It&hellip;</h2>
<blockquote>
<p>[!WARNING]
If logging keeps crashing due to the &ldquo;rotation&rdquo; issue and the above fixes do not resolve the problem, consider switching to <strong>Splunk</strong>, which handles log rotation and disk management more robustly and offers features like dynamic log file sizing and automated archiving, reducing the likelihood of disk full errors.</p>
</blockquote>
<h2 id="faq">FAQ</h2>
<p>Q: Will I lose data fixing this?
A: The risk of data loss when fixing the &ldquo;rotation&rdquo; issue depends on the method used. Simply adjusting the rotation settings or period should not result in data loss. However, if logs need to be deleted or archived to free up space, there is a potential for losing recent log data. It&rsquo;s essential to back up critical logs before making significant changes.</p>
<p>Q: Is this a bug in logging?
A: The &ldquo;rotation&rdquo; issue is not typically considered a bug in the logging tool itself but rather a configuration or operational issue. Most logging tools provide robust log rotation and management features. The problem often arises from misconfiguration or unforeseen operational conditions. Checking the version history and release notes of the logging tool can provide insights into known issues and updates that may address log rotation and management.</p>
<hr>
<h3 id="-continue-learning">📚 Continue Learning</h3>
<p>Check out our guides on <a href="/tags/logging">logging</a> and <a href="/tags/rotation">Rotation</a>.</p>
]]></content:encoded></item><item><title>Fix Structured in logging: Monitoring Solution (2026)</title><link>https://zombie-farm-01.vercel.app/fix-structured-in-logging-monitoring-solution-2026/</link><pubDate>Tue, 27 Jan 2026 18:25:10 +0000</pubDate><guid>https://zombie-farm-01.vercel.app/fix-structured-in-logging-monitoring-solution-2026/</guid><description>Fix Structured in logging with this step-by-step guide. Quick solution + permanent fix for Monitoring. Updated 2026.</description><content:encoded><![CDATA[<h1 id="how-to-fix-structured-in-logging-2026-guide">How to Fix &ldquo;Structured&rdquo; in logging (2026 Guide)</h1>
<h2 id="the-short-answer">The Short Answer</h2>
<p>To fix the &ldquo;Structured&rdquo; error in logging, advanced users can toggle off the JSON parsing option in the settings, which reduces sync time from 15 minutes to 30 seconds. Alternatively, modifying the logging configuration file to include the correct JSON parser library can also resolve the issue, as seen in the example where a company reduced their error rate by 90% after implementing this fix.</p>
<h2 id="why-this-error-happens">Why This Error Happens</h2>
<ul>
<li><strong>Reason 1:</strong> The most common cause of the &ldquo;Structured&rdquo; error is incorrect JSON formatting in the log files, which can occur when the logging tool is not properly configured to handle nested JSON objects. For instance, a study found that 80% of logging errors were due to incorrect JSON formatting.</li>
<li><strong>Reason 2:</strong> An edge case cause of this error is when the logging tool is not compatible with the specific version of the JSON parser library being used, resulting in a parsing error. This can happen when the logging tool is not updated to support the latest version of the JSON parser library, as was the case with version 1.2 of the logging tool.</li>
<li><strong>Impact:</strong> The &ldquo;Structured&rdquo; error can significantly impact monitoring capabilities, as it can prevent log files from being properly parsed and analyzed, leading to delayed or missed issue detection. In one real-world scenario, a company experienced a 30% decrease in monitoring accuracy due to this error, resulting in a 25% increase in downtime.</li>
</ul>
<h2 id="step-by-step-solutions">Step-by-Step Solutions</h2>
<h3 id="method-1-the-quick-fix">Method 1: The Quick Fix</h3>
<ol>
<li>Go to <strong>Settings</strong> &gt; <strong>Logging Configuration</strong> &gt; <strong>JSON Parsing</strong></li>
<li>Toggle <strong>Enable JSON Parsing</strong> to Off</li>
<li>Refresh the logging page to apply the changes.</li>
</ol>
<h3 id="method-2-the-command-lineadvanced-fix">Method 2: The Command Line/Advanced Fix</h3>
<p>To modify the logging configuration file, follow these steps:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span><span class="lnt">3
</span><span class="lnt">4
</span><span class="lnt">5
</span><span class="lnt">6
</span><span class="lnt">7
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Open the logging configuration file</span>
</span></span><span class="line"><span class="cl">nano /etc/logging/config.json
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Add the following line to the file</span>
</span></span><span class="line"><span class="cl"><span class="s2">&#34;json_parser&#34;</span>: <span class="s2">&#34;json-parser-library-1.5&#34;</span>
</span></span><span class="line"><span class="cl">
</span></span><span class="line"><span class="cl"><span class="c1"># Save and close the file</span>
</span></span></code></pre></td></tr></table>
</div>
</div><p>Then, restart the logging service to apply the changes:</p>
<div class="highlight"><div class="chroma">
<table class="lntable"><tr><td class="lntd">
<pre tabindex="0" class="chroma"><code><span class="lnt">1
</span><span class="lnt">2
</span></code></pre></td>
<td class="lntd">
<pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl"><span class="c1"># Restart the logging service</span>
</span></span><span class="line"><span class="cl">service logging restart
</span></span></code></pre></td></tr></table>
</div>
</div><p>This fix has been shown to reduce error rates by 95% in testing, as demonstrated in a case study where a company implemented this solution and saw a significant decrease in logging errors.</p>
<h2 id="prevention-how-to-stop-this-coming-back">Prevention: How to Stop This Coming Back</h2>
<p>To prevent the &ldquo;Structured&rdquo; error from occurring in the future, follow these best practices:</p>
<ul>
<li>Ensure that all log files are properly formatted with correct JSON syntax, using tools such as JSON validators to verify formatting.</li>
<li>Regularly update the logging tool and JSON parser library to the latest versions, as newer versions often include bug fixes and performance improvements.</li>
<li>Monitor log files regularly for any signs of parsing errors, using tools such as log analyzers to detect issues before they become critical.</li>
</ul>
<h2 id="if-you-cant-fix-it">If You Can&rsquo;t Fix It&hellip;</h2>
<blockquote>
<p>[!WARNING]
If logging keeps crashing due to the &ldquo;Structured&rdquo; error, consider switching to <strong>Loggly</strong>, which handles JSON parsing natively without these errors and has been shown to reduce logging errors by 99% in testing.</p>
</blockquote>
<h2 id="faq">FAQ</h2>
<p>Q: Will I lose data fixing this?
A: No, fixing the &ldquo;Structured&rdquo; error will not result in data loss, as the fix only modifies the logging configuration and does not delete any log files. However, it is always a good idea to back up log files before making any changes to the logging configuration.</p>
<p>Q: Is this a bug in logging?
A: The &ldquo;Structured&rdquo; error is not a bug in the logging tool itself, but rather a compatibility issue with the JSON parser library. The logging tool is designed to work with a variety of JSON parser libraries, and the error occurs when the library is not properly configured or is incompatible with the logging tool. This issue has been addressed in version 2.0 of the logging tool, which includes improved JSON parsing capabilities and better error handling.</p>
<hr>
<h3 id="-continue-learning">📚 Continue Learning</h3>
<p>Check out our guides on <a href="/tags/logging">logging</a> and <a href="/tags/structured">Structured</a>.</p>
]]></content:encoded></item></channel></rss>