# Journalctl error logs

**URL:** <https://community.unix.com/t/journalctl-error-logs/396890>\
**Category:** System Administration\
**Created:** [May 5, 2025, 11:50am UTC](https://community.unix.com/t/journalctl-error-logs/396890 "2025-05-05T11:50:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pmercado](https://community.unix.com/letter_avatar/pmercado/32/6_449c533f586939b6e5f246632a46421f.png) [@pmercado](https://community.unix.com/u/pmercado)\
**Post date:** [May 5, 2025, 11:50am UTC](https://community.unix.com/t/journalctl-error-logs/396890/1 "2025-05-05T11:50:34Z")

</div>

Hi All,

Please help, got multiple error logs in journalctl like these, I'm not sure of these,  
tried to restart rsyslog but still the same error. I have 2 servers and both are the same config and permission for /var/log/syslog and only 1 server got this error and was filling up the space. TYIA

file '/var/log/syslog'[8] write error - see [https://www.rsyslog.com/solving-rsyslog-write-errors/](https://www.rsyslog.com/solving-rsyslog-write-errors/) for help OS er\>  
rsyslogd[762]: action 'action-3-builtin:omfile' (module 'builtin:omfile') message lost, could not be processed. Check for addit\>

---

<div class="post-metadata">

**Author:** ![Neo](https://community.unix.com/user_avatar/community.unix.com/neo/32/22838_2.png) [@Neo](https://community.unix.com/u/Neo)\
**Post date:** [May 5, 2025, 1:19pm UTC](https://community.unix.com/t/journalctl-error-logs/396890/2 "2025-05-05T13:19:21Z")

</div>

> [@pmercado](#):
>
> Please help, got multiple error logs in journalctl like these, I'm not sure of these,

This rsyslog error means it's unable to write to `/var/log/syslog`, which typically points to one of the following on the **failing server only** :

### 🔍 ChatGPT 4o Step-by-step diagnostic (using OODA Loop):

#### 1. **Observe (logs and state)**

Run:

```bash
journalctl -xe | grep rsyslog
ls -l /var/log/syslog
df -h /var

```

Check:

- File **permissions** and **ownership** of `/var/log/syslog` (should be `root:adm` or `root:syslog`)
- If the **filesystem is full**
- If **rsyslog** is choked with too many messages or rate-limiting
- If **SELinux** or **AppArmor** is interfering

#### 2. **Orient (compare working server)**

On the working server:

```bash
ls -l /var/log/syslog
stat /var/log/syslog

```

Compare:

- File size
- Owner/Group
- Permissions (should be `-rw-r-----` or similar)
- Any inode mismatch (e.g. deleted file still open)

#### 3. **Decide (based on findings)**

If file was deleted or rotated improperly, rsyslog might still be writing to an orphaned inode.  
Check with:

```bash
lsof | grep syslog

```

#### 4. **Act (minimal correction)**

Try the following sequence (only on broken server):

```bash
systemctl stop rsyslog
mv /var/log/syslog /var/log/syslog.bak
touch /var/log/syslog
chown syslog:adm /var/log/syslog
chmod 640 /var/log/syslog
systemctl start rsyslog

```

This ensures a fresh file with correct perms and no orphaned descriptors.

* * *

Let me know the output of `ls -l /var/log/syslog` and `df -h` from the broken server if the issue persists.

---

<div class="post-metadata">

**Author:** ![system](https://community.unix.com/uploads/default/original/2X/c/c7e9e16a595259edafe88615719d5c5dcda035c2.png) [@system](https://community.unix.com/u/system)\
**Post date:** [July 4, 2025, 1:20pm UTC](https://community.unix.com/t/journalctl-error-logs/396890/4 "2025-07-04T13:20:11Z")

</div>

Closed on July 4, 2025, 1:20pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
