Skip to content

Configuring RSK node logging file verbosity

Ruben Altman edited this page Nov 13, 2017 · 20 revisions

You can configure the desired log verbosity for your RSK node installation according to your needs. More information can be found at: Logback Project

Requirements

  • RSK Node Installed
  • SSH Access
  • SuperUser Access (sudo)

Log level options

This image describes the log table for your reference.

Log Levels

Setting your desired verbosity configuration

You need to edit logback.xml file to set your desired level of verbosity.

sudo vi /etc/rsk/logback.xml
</appender>
<logger name="newcontractdetails" level="ERROR"/>
<logger name="execute" level="ERROR"/>
<logger name="blockvalidator" level="ERROR"/>
<logger name="blockexecutor" level="ERROR"/>
<logger name="general" level="ERROR"/>
<logger name="gaspricetracker" level="ERROR"/>
<logger name="web3" level="ERROR"/>
<logger name="repository" level="ERROR"/>
<logger name="VM" level="ERROR"/>
<logger name="blockqueue" level="ERROR"/>
<logger name="io.netty" level="ERROR"/>
<logger name="block" level="ERROR"/>
<logger name="minerserver" level="ERROR"/>
<logger name="txbuilderex" level="ERROR"/>
<logger name="pendingstate" level="ERROR"/>
<logger name="hsqldb.db" level="ERROR"/>
<logger name="TCK-Test" level="ERROR"/>
<logger name="db" level="ERROR"/>
<logger name="net" level="ERROR"/>
<logger name="start" level="ERROR"/>
<logger name="cli" level="ERROR"/>
<logger name="txs" level="ERROR"/>
<logger name="gas" level="ERROR"/>
<logger name="main" level="ERROR"/>
<logger name="trie" level="ERROR"/>
<logger name="org.hibernate" level="ERROR"/>
<logger name="peermonitor" level="ERROR"/>
<logger name="bridge" level="ERROR"/>
<logger name="org.springframework" level="ERROR"/>
<logger name="rlp" level="ERRORRequierements"/>
<logger name="messagehandler" level="ERROR"/>
<logger name="sync" level="ERROR"/>
<logger name="BtcToRskClient" level="ERROR"/>
<logger name="ui" level="ERROR"/>
<logger name="java.nio" level="ERROR"/>
<logger name="org.eclipse.jetty" level="ERROR"/>
<logger name="wire" level="ERROR"/>
<logger name="BridgeSupport" level="ERROR"/>
<logger name="jsonrpc" level="ERROR"/>
<logger name="wallet" level="ERROR"/>
<logger name="blockchain" level="ERROR"/>
<logger name="blockprocessor" level="ERROR"/>
<logger name="state" level="ERROR"/>

<root level="ERROR">
    <appender-ref ref="stdout"/>
    <appender-ref ref="FILE-AUDIT"/>
</root>
  • Save your changes
  • RSK logback.xml config will watch and apply changes without restarting RSK Node. (The watcher can take up to 1 hour to notice the changes and reload the logging configuration)
  • RSK logs with default installation will rotate on daily basis and/or when the log file reach 100MB

Using this configuration the application will be ONLY log ERROR events

RSK log files can be found in:

Real time log:

/var/log/rsk/rsk.log

Compressed logs:

/var/log/rsk/rskj-YYYY-MM-DD.N.log.gz
Clone this wiki locally