Skip to content

uptime-kuma parser is not working correctly after version 2.2.1 #1731

@Nirzak

Description

@Nirzak

Describe the bug
When using uptime kuma on non docker environment it's not parsing the log correctly. All login failure logs are getting unparsed

To Reproduce
Install uptime kuma traditionally or point the docker environment uptime kuma logs to a bind mount path.
then add the following config to read the logs from the file

filenames:

  • /var/log/uptime-kuma/uptime-kuma-error.log
    labels:
    type: uptime-kuma

Expected behavior
It should parse the login failure logs correctly. For example: my login failure logs are like in the following pattern
2026-03-24T20:48:03+06:00 [AUTH] WARN: Incorrect username or password for user testuser. IP=ip

but after I am running cscli collection inspect timokoessler/uptime-kuma

I have seen that it's completely getting unparsed.

Screenshots

Image

Additional context
Later I have seen that newest version of uptime kuma (2.2.1) is actually producing logs that are hard coded ansi colors which appears if we check the log with less command instead of tail command

ESC[36m2026-03-24T22:22:35+06:00ESC[0m [ESC[38;5;208mAUTHESC[0m] ESC[33mWARN:ESC[0m Incorrect username or password for user thisistest. IP=IP

So after handling the escape ansi colors on the grok pattern it's working correctly.
So this is a issue for both docker and non docker environment actually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions