This is an exercise in listening on 127.0.0.1:4242
for some simple json messages from fluent-bit
.
fluent-bit -i random -o tcp://127.0.0.1:4242 -p format=json_lines &
cargo run
There are also options for:
--addr
- the bind address to listen on. Defaults to127.0.0.1:4242
--sleep-timeout
- The amount of seconds to wait between web requests. Defaults to60
seconds.--out-file
- Where to write url response from the post requests. Defaults to/dev/stdout
.--max-count
- The number of web requests this process should do before quitting. Defaults tou64::MAX
.
./tests.sh
is a non comprehensive test script. This project is about counting
even and odd values from the random data from fluent-bit
and then sending a
POST
request to paste.c-net.org