Possible to forward json logs to hyperledger-fabric #999
Replies: 1 comment
|
@killmasta93 T-Pot stores honeypot events as JSON (and processes them through Logstash into Elasticsearch), so you can forward those events to virtually any downstream system—including Hyperledger Fabric or another permissioned blockchain—but you'll need an integration layer. T-Pot does not provide a native Hyperledger Fabric output plugin. (github.com) A few common approaches are: Option 1: Read the raw JSON logs (recommended)Each honeypot writes persistent JSON logs under the T-Pot data directory, for example: You can write a small application that:
This keeps T-Pot unchanged and avoids modifying its logging pipeline. Option 2: Add another Logstash outputIf you're already using Logstash, you can add an additional output so events are sent somewhere other than Elasticsearch. For example: output {
elasticsearch {
...
}
# Your custom output
}From there, your custom output could:
Logstash is designed to support multiple outputs in a single pipeline. (elastic.co :contentReference[oaicite:0]{index=0}) Option 3: Middleware service (my recommendation)Rather than having Logstash interact directly with Fabric, a cleaner architecture is: The middleware can:
This also keeps the blockchain logic separate from your logging infrastructure. A considerationOne thing to think about is what you want to store on the blockchain. Writing every raw honeypot event directly to Fabric may generate a very high transaction volume. In many cases it's more practical to store:
while keeping the full JSON logs in Elasticsearch or another storage system. This provides tamper evidence without significantly increasing blockchain storage and transaction overhead. One question that would help provide a more specific recommendation:
If this solves your problem, feel free to mark it as the accepted answer so others can find it easily. |
Uh oh!
There was an error while loading. Please reload this page.
Hi
I was wondering if its possible to forward json logs to hyperledger-fabric or another open-source block chain?
Thank you
All reactions