[syslog-ng] Writing JSON message to a MongoDB destination
Evan Rempel
erempel at uvic.ca
Wed Mar 6 21:39:12 CET 2013
It should have been in your package.
What OS are you using (which package management are you using0.
You can then check the package contents. RPM example is
linnet.comp.uvic.ca% rpm -qa | grep -i syslog-ng
UVic-syslog-ng-stats-1.0-0.x86_64
UVic-syslog-ng-3.4.1-2.el6.x86_64
UVic-syslog-ng-config-std-3.3-3.x86_64
linnet.comp.uvic.ca% rpm -q --filesbypkg UVic-syslog-ng-3.4.1-2.el6.x86_64 | grep -i json
UVic-syslog-ng /usr/local/lib64/syslog-ng/libjson-plugin.la
UVic-syslog-ng /usr/local/lib64/syslog-ng/libjson-plugin.so
Mine looks odd because we build our own RPMs and packaging.
Evan.
On 03/06/2013 12:18 PM, Al Itchon wrote:
> I now get this error:
>
> Starting syslog-ng: Plugin module not found in 'module-path'; module-path='/usr/local/lib/syslog-ng', module='json-plugin'
> Using a global log-iw-size() option was removed, please use a per-source log-iw-size();
> Error parsing parser expression, parser plugin json-parser not found in /usr/local/etc/syslog-ng.conf at line 39, column 3:
>
> json-parser(prefix(".json."));
> ^^^^^^^^^^^
>
> Looks like I'm missing the plugin? Can't you point me to where I can find the plugin?
>
> -----Original Message-----
> From: syslog-ng-bounces at lists.balabit.hu [mailto:syslog-ng-bounces at lists.balabit.hu] On Behalf Of Evan Rempel
> Sent: Wednesday, March 06, 2013 3:12 PM
> To: Syslog-ng users' and developers' mailing list
> Subject: Re: [syslog-ng] Writing JSON message to a MongoDB destination
>
> @module json-plugin
>
> this is needed in the config
>
> On 03/06/2013 12:09 PM, Al Itchon wrote:
>> I tried using I'm getting an error trying to use json-parser here:
>>
>> parser p_json {
>>
>> json-parser(prefix(".json."));
>>
>> };
>>
>> But I get this error:
>>
>> Error parsing parser expression, parser plugin json-parser not found in /usr/local/etc/syslog-ng.conf at line 38, column 3:
>>
>> json-parser(prefix(".json."));
>>
>> I'm pretty sure I'm using syslog-ng 3.4.1. Any idea on what I'm missing?
>>
>>
>>
>> ______________________________________________________________________
>> ________ Member info:
>> https://lists.balabit.hu/mailman/listinfo/syslog-ng
>> Documentation:
>> http://www.balabit.com/support/documentation/?product=syslog-ng
>> FAQ: http://www.balabit.com/wiki/syslog-ng-faq
>>
>
>
--
Evan Rempel erempel at uvic.ca
Senior Systems Administrator 250.721.7691
Data Centre Services, University Systems, University of Victoria
More information about the syslog-ng
mailing list