api service that stores full or part of the rest json payloads as a file
send a json payload to:
- POST
/raw
to log a pretty printed json payload - POST
/csv
to write a json payload to csv file based on the config - GET
/csv
to get a csv file content - GET
/health
to get a health status
configuration is formed from the following environment variables:
COLUMNS
- the number of columns to save in the csv fileCOLUMN_<X>
- the keys chain for the X column. Eg:COLUMN_1=foo.bar.baz
will save the value offoo.bar.baz
in the first columnDELIMITER
- the delimiter to use in the csv file. By default,
CSV_FILE
- the optional path to the csv file to write to. By default, the received line will be only loggedRUST_LOG
- the log level. By defaultinfo
PORT
- the port to listen on. By default8080
docker run -it --rm -p 8080:8080 -e COLUMNS=1 -e COLUMN_0=test ghcr.io/j0rsa/json-jar