Skip to content
Discussion options

You must be logged in to vote

Hello @brazhenko @marchuk-vlad , I've also been looking into the issue of access logs being cleared periodically and have done some analysis of the source code. Here are my findings, which should answer the question.

This behavior is indeed by design and is related to a scheduled task within the application.

1. Where is the log clearing logic?

The logic for clearing the access log is part of a scheduled job found in web/job/check_client_ip_job.go. This job runs every 10 seconds, but it only clears the log if more than an hour (3600 seconds) has passed since the last time it was cleared.

The specific function that performs the clearing is clearAccessLog() within the same file. Before clear…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brazhenko
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants