Blockscout: Log eating space

Created on 3 Jun 2019  路  6Comments  路  Source: blockscout/blockscout

I have deployed blockscout on azure with a Poa network. I have faced few issues, but I've managed to get the explorer working but I am getting still a repetitive error in the log :

err
therefore the log file's size is quickly becoming huge (X Gigbytes).
Am wondering how can i redirect the log or disable it?

question

All 6 comments

@bellaj which version of parity are you using?

@bellaj which version of parity are you using?
@ayrat555
I am using :

Parity v1.10.6-stable-bc0d134-20180605

Thanks @vbaranov
would you please explain what are max_bytes and keep parameters?
I presume it's max size (Gb) and how many days to keep the log, right?

One more thing, the file who is growing quickly is error.log not explorer.log

there is an issue https://github.com/paritytech/parity-ethereum/issues/8725 that was fixed in v2.0.0. I believe it's causing your issue

@bellaj

I presume it's max size (Gb) and how many days to keep the log, right?

No, this is the size of each file in bytes and the maximum number of files to keep.

Logs rotation was introduced here https://github.com/poanetwork/blockscout/pull/958

Editing the logger backends to do file rotation every 50mb and keep
the last 19 log files per logger backend. 50mb * 20 = ~1gb

Was this page helpful?
0 / 5 - 0 ratings