I ve been trying to make syslog listen in port 514 for the past 2 days but in vain. All am trying to achieve is do a logging in syslog using sysloghandler in python on (localhost, 514) socket. The solaris version is 5.10 The syslog process seems to be running fine. I enabled log_from_remote by changing the config svccfg -s svc:/system/system-log setprop config/log_from_remote = true and by doing a restart on syslog service. When I checked netstat after this
-bash-3.00# netstat -a | grep syslog *.syslog Idle
It does list the process but still it does not seem to listen in port 514
With the pfiles command I checked the details of the syslog process
-bash-3.00# pfiles 24828 24828: /usr/sbin/syslogd Current rlimit: 65536 file descriptors 0: S_IFDIR mode:0755 dev:29,128 ino:2 uid:0 gid:0 size:1024 O_RDONLY / 1: S_IFDIR mode:0755 dev:29,128 ino:2 uid:0 gid:0 size:1024 O_RDONLY / 2: S_IFDIR mode:0755 dev:29,128 ino:2 uid:0 gid:0 size:1024 O_RDONLY / 3: S_IFDOOR mode:0444 dev:289,0 ino:55 uid:0 gid:0 size:0 O_RDONLY|O_LARGEFILE FD_CLOEXEC door to nscd /var/run/name_service_door 4: S_IFCHR mode:0000 dev:280,0 ino:6238 uid:0 gid:0 rdev:41,39 O_RDWR /devices/pseudo/udp@0:udp 5: S_IFCHR mode:0600 dev:280,0 ino:50855940 uid:0 gid:3 rdev:97,0 O_WRONLY|O_APPEND|O_NOCTTY|O_LARGEFILE /devices/pseudo/sysmsg@0:sysmsg 6: S_IFREG mode:0644 dev:29,132 ino:7107 uid:0 gid:0 size:476 O_WRONLY|O_APPEND|O_NOCTTY|O_LARGEFILE /var/adm/messages 7: S_IFREG mode:0644 dev:29,132 ino:7084 uid:0 gid:3 size:0 O_WRONLY|O_APPEND|O_NOCTTY|O_LARGEFILE /var/log/syslog 8: S_IFCHR mode:0000 dev:280,0 ino:5014 uid:0 gid:0 rdev:21,6 O_RDONLY /devices/pseudo/log@0:log 9: S_IFDOOR mode:0777 dev:288,0 ino:0 uid:0 gid:0 size:0 O_RDWR FD_CLOEXEC door to syslogd
The "/devices/pseudo/udp@0:udp" does not seems to list any socket on localhost:514. And the netstat seems to list no other process operating on port 514 and there seems to be no error logs after starting the syslog so am assuming syslog is starting fine.
Could any of you please help me to find the solution to this problem? Many thanks in advance!