📁
GoReplay
  • Build software better, together
  • Getting-Started
  • Home
    • [PRO]-Recording-and-replaying-keep-alive-TCP-sessions
    • [PRO]-Replaying-Binary-protocols
    • [PRO]-Using-S3-for-storing-and-replaying-traffic
    • Capturing-and-replaying-traffic
    • Commercial-FAQ
    • Commercial-Support
    • Compilation
    • Dealing-with-missing-requests-and-responses
    • Development-Setup
    • Distributed-configuration
    • Exporting-to-ElasticSearch
    • FAQ
    • Middleware
    • Rate-limiting
    • Replaying-HTTP-traffic
    • Request-filtering
    • Request-rewriting
    • Running-as-non-root-user
    • Running-on-Windows
    • Saving-and-Replaying-from-file
    • Streaming-from-and-to-Apache-Kafka
    • The-Basics
    • Troubleshooting
Powered by GitBook
On this page
  • Recording data
  • Reading from Kafka
  • Optional JSON format

Was this helpful?

  1. Home

Streaming-from-and-to-Apache-Kafka

GoReplay allows you to use Apache Kafka to stream data from and to GoReplay. It is straightforward to use, similar to the rest of plugins:

Recording data

gor --input-raw :8080 --output-kafka-host '192.168.0.1:9092,192.168.0.2:9092' --output-kafka-topic 'kafka-log'

Reading from Kafka

gor --input-kafka-host '192.168.0.1:9092,192.168.0.2:9092' --input-kafka-topic 'kafka-log' --output-stdout

Optional JSON format

By default, it will write data as raw HTTP payloads. Optionally you can turn on --output-kafka-json-format and --input-kafka-json-format which will format HTTP payloads to a nice looking structured JSON, but be aware of possible performance hits.

PreviousSaving-and-Replaying-from-fileNextThe-Basics

Last updated 4 years ago

Was this helpful?