Use Elastic Stack
Elastic Stack (ELK) is an open-source log management platform you can use with Besu. To use ELK, configure the following for your deployment:
-
Filebeat - This configuration ingests logs. See the example Filebeat configuration.
-
Metricbeat - This configuration collects metrics from the nodes at regular defined intervals and outputs them to Redis for storage. Redis provides a highly available mechanism enabling storage by any of the Elastic Beats and pulled by Logstash as required. See the example Metricbeat configuration.
-
Pipeline configuration - This defines the JSON format used for Besu logs and automatically picks up any new log fields. See the example pipeline configuration.
noteThe pipeline configuration must match the your log format. If using the default log format, you can use the Grok plugin to extract the log fields.