[Bug 246] New: Enhancement: add support for array values
https://bugzilla.balabit.com/show_bug.cgi?id=246 Summary: Enhancement: add support for array values Product: syslog-ng Version: 3.4.x Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: bugzilla.balabit@faxm0dem.org Type of the Report: --- Estimated Hours: 0.0 It would be great to support arrays in addition to name-value pairs and tags. This would for instance allow for a @TAGS array, instead of the space-separated $TAGS string, which you need to parse on the remote end when sending json format to an application. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=246 --- Comment #1 from Balazs Scheidler <bazsi@balabit.hu> 2013-08-19 16:18:22 --- we've been pondering with this idea for a while just never got around to implement it. my vision about syslog-ng values is that they are equivalent to json dot notation, eg -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=246 --- Comment #2 from Fabien Wernli <bugzilla.balabit@faxm0dem.org> 2013-08-20 10:20:59 --- it seems your comment was truncated -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=246 --- Comment #3 from Balazs Scheidler <bazsi@balabit.hu> 2013-08-20 13:24:28 --- indeed :) I was posting from my phone and was interrupted while typing my answer. anyway, my vision is to use syslog-ng values the same as JavaScript dot notation, which is equivalent to JSON. We already support a recursive JSON dictionary as the syslog-ng message model, even have rudimentary support for types with the latest typehint work by Algernon (not yet integrated). Once we have that and array support in place, our data model would be complete. We even have a means to enumerate properties of a message and do "subselects" of name-value pairs using value-pairs() option available in a number of destinations. Throwing an "official" transport protocol in place (which would be just a combination of json-parser() and one of the already existing transports), we would have a rich event delivery infrastructure, potentially supporting everything from legacy syslog to application specific logging. I'm progressing slowly towards this vision as I'm my limited time is spent in closing the gap between the syslog-ng PE and the OSE trees. See my latest work on the wild card file source stuff that PE has had for years. It's not a simple merging effort as PE/OSE has diverged somewhat in the past and I want much better unit test coverage than is available in the PE implementation. I'd appreciate contributions towards this goal, even though the data structure used to encapsulate LogMessage is not the simplest thing on Earth because of its performance sensitive nature, and adding arrays on top is not simple either. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=246 Gergely Nagy <algernon@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |algernon@balabit.hu AssignedTo|bazsi@balabit.hu |algernon@balabit.hu --- Comment #4 from Gergely Nagy <algernon@balabit.hu> 2013-08-26 10:50:19 --- This is something I want too, and had a proof of concept patch for it too at some point, but the code was horrible, so it never got pushed. I need to dust it off and refactor it into something sensible. Support for arrays is definitely coming, though. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=246 Gergely Nagy <algernon@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com