Skip to content
This repository has been archived by the owner on Oct 9, 2020. It is now read-only.

Analyze ledger data stored within a Hyperledger Fabric peer (key updates and operational data such as number of blocks and transactions).

License

Notifications You must be signed in to change notification settings

hyperledger-labs/blockchain-analyzer

Repository files navigation

Blockchain Analyzer: Analyzing Hyperledger Fabric Ledger, Transactions

Description

Each blockchain platform, including Hyperledger Fabric, provides a way to record information on blockchain in an immutable manner. In the case of Hyperledger Fabric, information is recorded as a key/value pair. All previous updates to a key are recorded in the ledger of a Hyperledger Fabric peer, but only the latest value of a key can be easily queried (see documentation). This mechanism makes it challenging to perform analysis of updates to a key. Further, if an application groups together certain keys for application-level functions, it is challenging to analyze them together. In order to perform information provenance, it is necessary to analyze all updates to a single key or group of keys that together comprise an information unit.

To address this issue, we have created a project which can be used to analyze ledger data stored within a Hyperledger Fabric peer. This project can also be used to analyze operational data, such as number of blocks and transactions.

Currently, the project includes:

  1. an Elastic beats module (in Go), that ships ledger data from a Hyperledger peer to an Elasticsearch instance.

  2. generic Kibana dashboards, that allow selection of a particular key and visualization updates to it (channel, id, timestamp etc) - similar to Hyperledger Explorer.

  3. scripts to create Hyperledger Fabric network in different configurations, i.e., basic, mulitchannel, and appledemo.

  4. a program to generate test data

  5. a standalone utility to dump Fabric transaction data as JSON file for loading and analyzing in any document store.

  6. scripts to start and stop Elasticsearch and Kibana.

Eventual goal

The eventual goal of this project is to evaluate transactions of any blockchain using any document databases or search engines such as MongoDB, CouchDB, or Elastic stack.

Project background

This project was developed as part of Hyperledger summer internship program.

Getting Started

We recommend that you start with the instructions for basic network.

Once you have it up and running, you can try the multichannel, and appledemo.

If you want to learn more about fabricbeat configuration or connect it to your own blockchain network, click here.

If you want to understand dataflow involving fabricbeat, click here.

License

The Apache 2.0 License applies to the whole project, except for the stack directory and its contents.

Maintainers:

Salman Baset
Balazs Prehoda

About

Analyze ledger data stored within a Hyperledger Fabric peer (key updates and operational data such as number of blocks and transactions).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •