Closed agperson closed 8 years ago
Dumping KV contents using kv read results in outputs like the following (when using the json/prettyjson format):
[ { "Key": "foo", "CreateIndex": 8988, "ModifyIndex": 8988, "LockIndex": 0, "Flags": 0, "Value": "bar", "Session": "" } ]
However, the KV bulkload input format expects this:
{ "foo": "bar" }
Ideally there should be a way to either a) dump in the format expected or; b) accept the format that is dumped.
I have updated the wiki with documentation of the format for bulkload and example of using JQ to transform between the formats. I withdraw this request.
Dumping KV contents using kv read results in outputs like the following (when using the json/prettyjson format):
However, the KV bulkload input format expects this:
Ideally there should be a way to either a) dump in the format expected or; b) accept the format that is dumped.