[syslog-ng] format-json reverse order?
Scheidler, Balázs
balazs.scheidler at balabit.com
Sat Oct 31 13:28:30 CET 2015
Hi,
I've encountered a case where format-json orders keys not alphabetically,
but rather in the other direction. Can you remember any reason for that?
This is the only patch needed to fix the order, but I've figured there may
have been some reason behind the ordering.
static gint
vp_walk_cmp(const gchar *s1, const gchar *s2)
{
- return strcmp(s2, s1);
+ return strcmp(s1, s2);
}
Thanks in advance,
--
Bazsi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20151031/dc76eee3/attachment.htm
More information about the syslog-ng
mailing list