Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng segmentation fault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Thu Aug 20, 2015 12:15 am    Post subject: syslog-ng segmentation fault Reply with quote

I'm trying to setup syslog_ng for the first time. At the top of the syslog-ng.conf file there is an include

Code:
@include "scl.conf"


This file includes anything from scl/*/*.conf. Should I put my configs in there?

If so, I added one for auth at scl/auth/auth.conf

Code:
destination authlog { file("/var/log/auth.log"); };
filter f_auth { facility(auth); };
filter f_authpriv { facility(auth, authpriv); };
log { source(src); filter(f_authpriv); destination(authlog); };


This is currently causing a segmentation fault.

I would like to know if I am doing things right here. I like the idea of having seperate config files from what gentoo puts in there. This helps avoid problems with dispatch-conf when they are updated.
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Tue Aug 25, 2015 12:06 am    Post subject: Re: syslog-ng segmentation fault Reply with quote

I haven't been near syslog-ng for some time now but a quick Google shows that SCL is the syslog configuration library and going by this: https://bazsi.blogs.balabit.com/2010/07/syslog-ng-contributions-redefined/ that would be one place for local configs.

This bit looks confused to me:
Code:

filter f_auth { facility(auth); };
filter f_authpriv { facility(auth, authpriv); };


You shouldn't get a seg fault from a miss config though unless you have hit a bug. Be sure that syslog-ng is compiled correctly, not waiting a restart, not in @preserved-rebuild (or one of its dependencies)

Sorry can't be more help but no-one else with more knowledge has given you a hand yet.

Cheers
Jon[/quote]
Back to top
View user's profile Send private message
moaxcp
n00b
n00b


Joined: 17 Dec 2014
Posts: 52
Location: Ashburn, VA USA

PostPosted: Tue Aug 25, 2015 8:40 pm    Post subject: Reply with quote

I was able to put the configs directly in the conf file. From my google search I was getting under the impression that the scl was only for plugins not user configs. I was able to add a standard configuration directly to the conf file and it is working now.

I will look into the scl folder more because the link you posted makes it seem like what I was doing is ok.
Back to top
View user's profile Send private message
gerdesj
l33t
l33t


Joined: 29 Sep 2005
Posts: 621
Location: Yeovil, Somerset, UK

PostPosted: Wed Aug 26, 2015 12:45 am    Post subject: Reply with quote

moaxcp wrote:
I was able to put the configs directly in the conf file. From my google search I was getting under the impression that the scl was only for plugins not user configs. I was able to add a standard configuration directly to the conf file and it is working now.

I will look into the scl folder more because the link you posted makes it seem like what I was doing is ok.


Glad it is working. I think you are right and SCL is for vendor provided stuff.

According to this: https://www.balabit.com/sites/default/files/documents/syslog-ng-ose-3.5-guides/en/syslog-ng-ose-v3.5-guide-admin/html/config-file.html config files are in a directory. I haven't used syslog-ng in ages but I bet any file in there named something.conf will get included and if you put a number on the front of the filename they will be included in that order.

Cheers
Jon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum