[Bug 221] New: syslog-ng 2.1.4 on rhel 5.8
https://bugzilla.balabit.com/show_bug.cgi?id=221 Summary: syslog-ng 2.1.4 on rhel 5.8 Product: syslog-ng Version: 2.1.x Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: jk_kathi1@yahoo.com Type of the Report: --- Estimated Hours: 0.0 Red Hat Enterprise Linux Server release 5.8 (Tikanga) Syslog-ng version : syslog-ng-2.1.4-9.el5 Library installed : libnet-1.1.5-1.el5 /etc/syslog-ng/syslog-ng.conf file settings options { sync (0); time_reopen (10); log_fifo_size (1000); long_hostnames (off); use_dns (no); use_fqdn (no); create_dirs (no); keep_hostname (yes); }; source s_sys { file ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ("/dev/log"); internal(); # udp(ip(0.0.0.0) port(514)); }; source s_file { file("/opt/CA/siteminder/log/smps.log"); }; destination d_file { file("/var/log/messages"); }; destination d_remote_q1 { udp("x.x.x.x" port(514)); }; log { source(s_sys); destination(d_file); }; log { source(s_file); destination(d_file); destination(d_remote_q1); }; Syslog-ng executes fine , able to record all the OS logs . When i start syslog-ng the first time it polls the smps.log and forwards all the entries from that file to remote server , but after that any new events getting logged does not get processed even when syslog-ng is running in the background. The issue is syslog-ng is not able to monitor the App log smps.log in real time . This happens only for the app log , normal OS events gets processes immediately Tried logging a simple mesage using logger I did try running syslog-ng in debug mode , these are the results /sbin/syslog-ng -Fedv Syslog connection established; from='AF_INET(0.0.0.0:0)', to='AF_INET(x.x.x.x:514)' Running application hooks; hook='1' syslog-ng starting up; version='2.1.4' EOF occurred while reading; fd='3' Syslog connection accepted; from='AF_UNIX(anonymous)', to='AF_UNIX(/dev/log)' Syslog connection accepted; from='AF_UNIX(anonymous)', to='AF_UNIX(/dev/log)' Incoming log entry; line='<85>Feb 14 15:04:03 sshd[797]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=10.58.99.83 user=admin' Initializing destination file writer; template='/var/log/messages', filename='/var/log/messages' Incoming log entry; line='<86>Feb 14 15:04:06 sshd[797]: Failed password for admin from 10.58.99.83 port 64622 ssh2' EOF occurred while reading; fd='8' Closing log reader fd; fd='8' Syslog connection accepted; from='AF_UNIX(anonymous)', to='AF_UNIX(/dev/log)' Incoming log entry; line='<86>Feb 14 15:04:16 sshd[797]: Accepted password for admin from 10.58.99.83 port 64622 ssh2' EOF occurred while reading; fd='8' Closing log reader fd; fd='8' EOF occurred while reading; fd='7' Closing log reader fd; fd='7' Syslog connection accepted; from='AF_UNIX(anonymous)', to='AF_UNIX(/dev/log)' Incoming log entry; line='<86>Feb 14 15:04:16 sshd[797]: pam_unix(sshd:session): session opened for user admin by (uid=0)' Syslog connection accepted; from='AF_UNIX(anonymous)', to='AF_UNIX(/dev/log)' Incoming log entry; line='<13>Feb 14 15:04:22 admin: Test message' EOF occurred while reading; fd='8' Closing log reader fd; fd='8' Syslog connection accepted; from='AF_UNIX(anonymous)', to='AF_UNIX(/dev/log)' Incoming log entry; line='<86>Feb 14 15:04:48 su: pam_unix(su-l:session): session opened for user root by admin(uid=500)' Syslog connection accepted; from='AF_UNIX(anonymous)', to='AF_UNIX(/dev/log)' Incoming log entry; line='<86>Feb 14 15:05:00 su: pam_unix(su-l:session): session opened for user smuser by admin(uid=0)' But i do not see any debugs messages for smps.log getting processed ( even though the file is getting updated ) Any ideas Is this is a shortcoming in syslog-ng 2.1.4 . I cannot compile the latest version of syslog-ng since there is a limitation on my production system ( cannot compile anything due to security concerns ) so i am need of a syslog-ng rpm package other than 2.1.4 that works on RHEL 5 or if i can fix the issue in the existing version Appreciate any help Thanks Kathi -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=221 --- Comment #1 from Balazs Scheidler <bazsi@balabit.hu> 2013-02-14 22:55:27 --- this is a limitation of 2.1 which is ancient. you need a newer version, at least 3.0 where this was introduced, but 3.3 is at least recommended. epel should have more recent syslog-ng version. balabit also supports rhel5 with its pe product, but freshrpms or google could help too. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=221 --- Comment #2 from Balazs Scheidler <bazsi@balabit.hu> 2013-02-14 22:56:45 --- maybe I wasn't clear: following files was added as a feature in 3.0, earlier the file driver was for stuff like /proc/kmsg -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=221 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |FEATURE --- Comment #3 from Balazs Scheidler <bazsi@balabit.hu> 2013-02-14 22:57:36 --- wontfix in 2.1 -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=221 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|FEATURE |NEW -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=221 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution| |WONTFIX Status|NEW |RESOLVED --- Comment #4 from Balazs Scheidler <bazsi@balabit.hu> 2013-02-15 05:57:00 --- fix resolution -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=221 --- Comment #5 from Sandor Geller <sandor.geller@morganstanley.com> 2013-02-15 08:47:37 --- Correct me if I'm wrong but following files was implemented in 2.1, it just wasn't enabled by default so a positive follow_freq() interval must get specified in the file source definition. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=221 --- Comment #6 from Balazs Scheidler <bazsi@balabit.hu> 2013-02-15 21:49:24 --- you actually may be right, so definitely worth a shot. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com