Skip to content

luci-mod-status: fix syslog page with syslog-ng#8399

Open
Ramon00 wants to merge 1 commit intoopenwrt:masterfrom
Ramon00:fixsyslog
Open

luci-mod-status: fix syslog page with syslog-ng#8399
Ramon00 wants to merge 1 commit intoopenwrt:masterfrom
Ramon00:fixsyslog

Conversation

@Ramon00
Copy link
Contributor

@Ramon00 Ramon00 commented Mar 8, 2026

If you have syslog-ng installed instead of logd then syslog page displays errors.
This commit fixes that.

P.S. Every 5 seconds an error is added to the page via ui.addNotification, not sure if we want to fix that in addition? It does not look very elegant... We could just replace the error box with an error message in the log file box?

If you have syslog-ng installed instead of logd then
syslog page displays errors.
This commit fixes that.

Signed-off-by: Ramon Van Gorkom <Ramon00c00@gmail.com>
@systemcrash
Copy link
Contributor

systemcrash commented Mar 8, 2026

syslog-ng provides a wrapper (it has but not the one called here - yet).

Also, how do you install syslog-ng? Does it remove logd?

@Ramon00
Copy link
Contributor Author

Ramon00 commented Mar 8, 2026

This is the wrapper /usr/libexec/syslog-wrapper that I know works (and also that is the one that was used in the past).

Not sure if it removes logd automatically, but I always remove logd then install syslog-ng.

@Ramon00
Copy link
Contributor Author

Ramon00 commented Mar 8, 2026

two additional things 1) people (including myself) may think that the logfile actually gets created on the suggested location (while nothing is there!):
image
2) why limit to 1000 lines?

@systemcrash
Copy link
Contributor

It's a 'suggestion' - not a default. I suppose inserting a keyword might fix that?

1000 lines is roughly 32kb. It's a good performance balance.

This is the wrapper /usr/libexec/syslog-wrapper that I know works (and also that is the one that was used in the past).

Check the syslog-ng package for its wrapper script. See whether both align.

@Ramon00
Copy link
Contributor Author

Ramon00 commented Mar 9, 2026

Check the syslog-ng package for its wrapper script. See whether both align.

syslog-ng is just writing to /var/log/messages The script syslog-wrapper reads it via logread script. This is a specific syslog-ng version of logread. Its actually explained here

@systemcrash
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants