Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 914 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 914 Bytes

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