<p dir="ltr">I don't really have an opinion right here. Those with actual experience with risk should chime in.</p>
<div class="gmail_quote">On May 19, 2015 1:21 PM, "Parth Oberoi" <<a href="mailto:htrapdev@gmail.com">htrapdev@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
<br>______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
<br></blockquote></div>