<div dir="ltr"><div>Hello everyone,</div><div><br></div><div>In order to build a riak destination , the first task is to figure out the </div><div>options syslog-ng plugin  would need to understand, For this we have considered the </div><div>following two use cases</div><div><br></div><div>1) Inserting each log message into its own unique key.A templatable bucket would store </div><div>  keys(time-stamps) and its respective values(log messages)</div><div><br></div><div>2) Inserting each log message into a Set contained under a key.</div><div>  In order to use a set we need to have a bucket type as "set".Rest is similar to the first case.</div><div>   </div><div>   </div><div>To switch between the two cases an option mode() is used with parameters "set" for using a </div><div>set (2nd case) and "store" for the first case.</div><div>   </div><div>Here is a config snippet for the destination:</div><div><br></div><div>destination d_riak {</div><div> riak(</div><div>  server("localhost")</div><div>  port(8087)</div><div>  bucket-type("message")</div><div>  bucket("logs_${YEAR}${MONTH}${DAY}")</div><div>  key("${UNIXTIME}-$(uuid)")</div><div>  value("$(format-json --scope selected-macros)")</div><div>  mode("set")</div><div> );</div><div>};</div><div><br></div><div>I would really like to know if the users would prefer to set the mode and bucket type as separate </div><div>options or  as sub-options under  bucket() as below:</div><div><br></div><div>destination d_riak {</div><div> riak(</div><div>  server("localhost")</div><div>  port(8087)</div><div>  bucket("logs_${YEAR}${MONTH}${DAY}" type("message") mode("store"))</div><div>  key("${UNIXTIME}-$(uuid)")</div><div>  value("$(format-json --scope selected-macros)")</div><div> );</div><div>};</div><div><br></div><div>Any other feedback on the topic is also welcome.</div><div><br></div><div>Thanks,</div><div>Parth</div></div>