[syslog-ng] [Question]: Initialisation step in syslog-ng-3.25.1
Peter Kokai (pkokai)
Peter.Kokai at oneidentity.com
Tue Feb 18 06:12:50 UTC 2020
Hello,
Yes, you should. (but in the reverse order: first call init, and set the desired value).
(see syslog-ng/main.c or modules/dbparser/pdbtool/pdbtool.c for example usage)
--
Kokan
On Tue, Feb 18, 2020 at 11:00:19AM +0530, Nitish Saboo wrote:
> CAUTION: This email originated from outside of the organization. Do not follow guidance, click links, or open attachments unless you recognize the sender and know the content is safe.
>
> I am using syslog-ng-3.25.1.I am initialising syslog-ng in the following manner:
>
>
> int initialize_engine(const gchar* _module_path)
> {
> resolvedConfigurablePaths.initial_module_path = _module_path;
>
> app_startup();
> msg_init(TRUE);
>
> [*]//resolved_configurable_paths_init(&resolvedConfigurablePaths);
>
> configuration = cfg_new(0x0302);
> cfg_set_global_paths(configuration);
> cfg_load_module(configuration, "basicfuncs");
> cfg_load_module(configuration, "syslogformat");
> pattern_db_global_init();
> return 0;
> }
>
> I have assigned value to 'resolvedConfigurablePaths.initial_module_path' to provide module-path location.
> Do I have to add this step [*]'resolved_configurable_paths_init(&resolvedConfigurablePaths)' that is commented currently in initialize_engine method ?
>
> Thanks,
> Nitish
> ______________________________________________________________________________
> Member info: https://nam05.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.balabit.hu%2Fmailman%2Flistinfo%2Fsyslog-ng&data=02%7C01%7Cpeter.kokai%40oneidentity.com%7C0eeaae96b877480f1e6908d7b433ada3%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637176006367265273&sdata=RMuDoreTCn5TYPAdZEEfpER0WiZToiM6lt15cudcYE0%3D&reserved=0
> Documentation: https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fsupport%2Fdocumentation%2F%3Fproduct%3Dsyslog-ng&data=02%7C01%7Cpeter.kokai%40oneidentity.com%7C0eeaae96b877480f1e6908d7b433ada3%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637176006367265273&sdata=8zD0zQdHucQNNqZgJZAcv2YT9l8J0hL8FEnpIyePZ%2BI%3D&reserved=0
> FAQ: https://nam05.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.balabit.com%2Fwiki%2Fsyslog-ng-faq&data=02%7C01%7Cpeter.kokai%40oneidentity.com%7C0eeaae96b877480f1e6908d7b433ada3%7C91c369b51c9e439c989c1867ec606603%7C0%7C0%7C637176006367265273&sdata=HsccoRwcYL8pKQL8e6QDfqGQeSb9kvdhnwZk6V1eLCU%3D&reserved=0
>
More information about the syslog-ng
mailing list