Skip to content

Http server handles POST of json data and pass on to a sink, e.g. Kafka

Notifications You must be signed in to change notification settings

salekseev/dashbase-collect

Repository files navigation

dashbase-collect

Http server handles POST of json data and pass on to a sink, e.g. Kafka

start server

./bin/run_dashbase_collector.sh -s CONF_FILE

example:

./bin/run_dashbase_collector.sh -s conf/console-sink.json

start a syslog collector server

./bin/run_dashbase_collector.sh -s conf/console-sink.json --syslog

curl examples:

curl -X POST http://localhost:4567/upload/john -F file=@sample_data/events.json

curl -H "Content-Encoding:gzip" -X POST http://localhost:4567/upload/john -F file=@sample_data/events.json.gz

cat sample_data/single_event.json | curl -H "Content-Type: application/json" -X POST http://localhost:4567/collect/john --data @-

cat sample_data/multiple_events.json | curl -H "Content-Type: application/json" -X POST http://localhost:4567/collect/john?isBatch=true --data @-

webpage

http://localhost:4567

About

Http server handles POST of json data and pass on to a sink, e.g. Kafka

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published