Skip to content

WebTop: send login events to the system journal #8250

Description

@stephdl

WebTop keeps a record of every login, but none of it reaches the system journal. The Wazuh module reads the journal, so today it cannot see WebTop logins. Admins want an alert when someone fails to log in, and when a user logs in from a country they have not allowed. Wazuh needs one line per login, with the user name, the client IP and whether it worked.

Proposed solution

WebTop already writes every login, logout and failed login to an internal log that is turned off by default. Turn it on and send it to the system journal, so each event shows up as one line at login time, with a fixed prefix that Wazuh can match.

Alternative solutions

A small service that reads the WebTop database every few seconds and writes new logins to the journal. It works, but it adds a delay, a background process and more code to maintain than turning on the log WebTop already has.

See also

Activity

  1. self-assigned this
    on Oct 19, 2026
  2. added theissue type on Oct 19, 2026
  3. added this to the NethServer 8.11 milestone on Oct 19, 2026
  4. moved this from ToDo to In Progress in NethServeron Oct 20, 2026
  5. stephdl commented on Oct 22, 2026

    @stephdl
    Author

    QA: WebTop auth log to journald (#324)

    Version: 1.5.17-dev.1

    api-cli run update-module --data '{"module_url":"ghcr.io/nethserver/webtop:1.5.17-dev.1","instances":["webtop1"],"force":true}'
    journalctl -f | grep webtop-auth
    
    • Valid login: one webtop-auth: line with user and client IP.
    • Wrong password or unknown user: one webtop-auth: line.
    • Logout: no line.
    • Username with a line break: still one line, no forged second line.
    • Line not duplicated, no extra timestamp, other WebTop logs unchanged.
  6. moved this from In Progress to Testing in NethServeron Oct 22, 2026
  7. added
    testingPackages are available from testing repositories
    on Oct 22, 2026
  8. lucagasparini commented on Oct 22, 2026

    @lucagasparini

    Test VERIFIED
    Very good job 👍

  9. removed
    testingPackages are available from testing repositories
    on Oct 22, 2026
  10. moved this from Testing to Verified in NethServeron Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

verifiedAll test cases were verified successfully

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions