Token created for many years but stops working after months

I use graylog 7.x on our own bare metal envrinment graylog Open version.

I have a user that uses api and wished to have a tokem for longer time. So I now twice created in GUI token for him for 1000 days and it worked. But after few months it was no longer working.

Is there any way to troubleshoot this , to debug token for how long it is actually valid. ?

Thanks

Are you able to provide specifics? For example, do you have a series of steps we can follow to reproduce the error? Also what version of Graylog (at the bottom of the page in the Web UI).

When you say the token stopped working after a few months, do you know exactly how many days elapsed from creation to when the token stopped working?

For troubleshooting, I would advise to test the token via something like curl and see what HTTP response code you get. I would also check Graylog’s log (e.g. server.log) to see if there are any errors. Additionally, I also reccomend you inspect the contents of the access_tokens collection for your Graylog MongoDB database and verify the token you create or created reflects the expected expires_at timestamp.

Here is an example of an access_token object from my environment:

{
    "_id" : ObjectId("6a21ca1d4e1b0ca1220f6425"),
    "last_access" : ISODate("1970-01-01T00:00:00.000+0000"),
    "expires_at" : ISODate("2029-02-28T18:55:25.216+0000"),
    "created_at" : ISODate("2026-06-04T18:55:25.216+0000"),
    "token_type" : 1,
    "token" : "<redacted>",
    "username" : "drew",
    "NAME" : "test"
}