Hi Bekir,

The "LogLevel" configuration directive on the module level has been added
to NXLog Enterprise Edition v5.0 and this is not yet available in the
NXLog CE version.

Please check the NXLog Community Edition Reference Manual for the
supported options and features.

Regards,
Botond


On Wed, 19 Aug 2020 11:57:28 +0000
Bekir Niyaz <bagaf...@hotmail.com> wrote:

> Hi all,
> Got this config file, gettin error in input module <Input pg01> because of 
> Loglevel keyword. But in documantation its say it is possible
> https://nxlog.co/documentation/nxlog-user-guide/ref-config.html#config_module_LogLevel
> Is it bug or sommeting wrong with my config.
> 
> Best regards.
> 
> Nxlog version:  nxlog-ce-2.10.2150
> Os: CentOS 7
> 
> 
> Config file
> 
> CacheDir %pg01_nxlog_root%
> SpoolDir %pg01_nxlog_root%
> 
> Pidfile %pg01_nxlog_root%/nxlog.pid
> 
> LogFile /var/log/nxlog/nxlog.log
> LogLevel INFO
> 
> ########################################
> # Modules                              #
> ########################################
> <Extension _multiline>
>     Module          xm_multiline
>     HeaderLine      /^t=/
> #    HeaderLine      /^t=\d\d\d\d-\d\d-\d\d\ \d\d:\d\d:\d\d\./
> </Extension>
> 
> <Input pg01>
>     Module          im_file
>     LogLevel        Debug
>     File            '/var/lib/pgsql/nxlog/copy-cbspg12db01-pg.log'
>     SavePos         TRUE
>     ReadFromLast    TRUE
>     ActiveFiles     4
>     CloseWhenIdle   TRUE
>     PollInterval    1
>     InputType       _multiline
>     <Exec>
>         $raw_event = replace($raw_event, "\n", " ");
>         $raw_event = replace($raw_event, "\r", " ");
>         $raw_event = replace($raw_event, "^t=", "", 1);
>         $raw_event = replace($raw_event, "\ p=", ",", 1);
>         $raw_event = replace($raw_event, "\ h=", ",", 1);
> #       $raw_event = replace($raw_event, "\ db\=", "\",\"", 1);
> #       $raw_event = replace($raw_event, "\ u\=", "\",\"", 1);
> #       $raw_event = replace($raw_event, "\ x\=", "\",", 1);
>     </Exec>
> </Input>
> 
> <Processor pg01_buffer>
>     Module          pm_buffer
>     MaxSize         52428800
>     WarnLimit       10485760
>     Type            Mem
> </Processor>
> 
> <Output pg01_nxlog>
>     Module          om_file
>     File            '/var/lib/pgsql/nxlog/pg02-nxlog'
> </Output>
> 
> ########################################
> # Routes                               #
> ########################################
> <Route 1>
>     Path        pg01 => pg01_buffer => pg01_nxlog
> </Route>


_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to