Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log file taking too much space quickly #9793

Closed
BlockgenStudio opened this issue Apr 2, 2024 · 4 comments
Closed

log file taking too much space quickly #9793

BlockgenStudio opened this issue Apr 2, 2024 · 4 comments
Labels

Comments

@BlockgenStudio
Copy link

Description

Is there a method to customize the logging storage settings, such as configuring the frequency and level of detail? Currently, the default logging mechanism is causing rapid growth, accumulating 70GB per week, which way exceeds my preferred rate.

Type of the installation

Manual from the source code

Type of the JSON RPC archive node

Geth

Type of the chain

L2

Link to the page

No response

Steps to reproduce

No response

Backend version

v6.2

Frontend version

No response

Elixir & Erlang/OTP versions

1.14.5

Operating system

linux

Additional information

No response

@GimluCom
Copy link
Contributor

GimluCom commented Apr 2, 2024

Are there any errors in your logs?

@BlockgenStudio
Copy link
Author

maybe but not the error that is major. for time being, is there a way just reduce or turn off the log?

@GimluCom
Copy link
Contributor

GimluCom commented Apr 8, 2024

Why not correct the error? You may configure it in config/ or setup a cron job to delete logs every hour/day.

@vbaranov
Copy link
Member

@BlockgenStudio you can re-configure log rotation in the codebase

Log rotation config looks like and it is configured for each file individually:

rotate: %{max_bytes: 52_428_800, keep: 19}

There is no env var to manage log rotation config yet. If you use pre-built image of the Blockscout, you could configure log rotation outside the app via cron as Gimlu noticed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants