20 May
2015
20 May
'15
10:27 a.m.
"Parth" == Parth Oberoi <htrapdev@gmail.com> writes:
Parth> destination d_riak { Parth> riak( Parth> server("localhost") Parth> port(8087) Parth> bucket("logs_${YEAR}${MONTH}${DAY}" type("message") mode("store")) Parth> key("${UNIXTIME}-$(uuid)") Parth> value("$(format-json --scope selected-macros)") Parth> ); Parth> }; This would be my preferred syntax, because bucket-type is tied to the bucket anyway, so I feel it belongs there, instead of being a top-level option. As for mode()... I'm a bit torn on that, but it feels more natural to have it under bucket(). -- |8]