If you would switch to a json format, you likely would lost an ability to see logs via UI (I suppose that you use a some kind of UI), your only option would be a shell.
If I have a Windows node, how should I add this to the config.yaml file?
I tried without the starting ā and the ending \ but the node do not start if the log.customā¦ line is in the config.yaml file.
Iām not realy sure, but the notation is different; check the other params in config how they are written. The ā=ā sign is replaced with ā:ā and so on.
You could try:
log.level: info
log.custom-level: āpiecestore=fatal,ā¦ā
ā¦with straight quotes. Iām on iPhone, I donāt know how are you see them.
Thank you for the hint, this one is working, no need for quote signs:
log.level: info
log.custom-level: collector=ERROR,piecestore=ERROR
Is there a way to get rid of these log entries?
2024-07-25T16:40:01Z INFO orders.12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs sending {"Process": "storagenode", "count": 717}
2024-07-25T16:40:01Z INFO orders.12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S sending {"Process": "storagenode", "count": 15124}
2024-07-25T16:40:01Z INFO orders.1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE sending {"Process": "storagenode", "count": 745}
2024-07-25T16:40:01Z INFO orders.121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6 sending {"Process": "storagenode", "count": 97}
2024-07-25T16:40:01Z INFO orders.12L9ZFwhzVpuEKMUNUqkaTLGzwY9G24tbiigLiXpmZWKwmcNDDs finished {"Process": "storagenode"}
2024-07-25T16:40:01Z INFO orders.121RTSDpyNZVcEU84Ticf2L1ntiuUimbWgfATz21tuvgk3vzoA6 finished {"Process": "storagenode"}
2024-07-25T16:40:02Z INFO orders.1wFTAgs9DP5RSnCqKV1eLf6N9wtk4EAtmN5DpSxcs8EjT69tGE finished {"Process": "storagenode"}
2024-07-25T16:40:04Z INFO orders.12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S finished {"Process": "storagenode"}
--log.custom-level=orders=WARN
doesnāt work
The āordersā is not a separate process like the walkers. The logs are generated by the storagenode main process. So you canāt set a log level just for it.
If you canāt do by this feature, you can override the docker entrypoint and use grep
to filter out the lines you donāt want.
For example before this was a feature: Disk usage discrepancy? - #342 by Ambifacient
With the latest update to 1.111.4 my logs get spammed with these lines every minute
2024-08-29T10:20:42Z INFO piecestore:monitor readability check done {"Process": "storagenode", "Duration": "110.668Āµs"}
How to get rid of these? I already set piecestore=FATAL
and added piecestore:monitor=ERROR
now, but it doesnāt work.
I donāt know if itās related to readability check interval; if this is the case, you can increase the check interval to 5 min and delay the log entries. I use 60 min on a slow node, but itās not recommended. Anyway, this logging should also use a custom level.
Yes, itās highly not recommended, because now the node cannot detect a hardware issue when it may occur. And a hour could be enough to disqualify the node if it cannot pass any audit, especially with a 15 seconds timeout for the first attempt. This piece would be audited three more times with a GET_REPAIR though, but could it help if the HW is hanging?
But it will, I hope:
It will show at DEBUG
level now.
What version is ānowā? Iām not smart enough to read it from that link. The change is not in 1.112.2.
Ver. 113. You can see the change in that tread.
Thanks, but how? Can you take a screenshot and circle the version number?