Hi I''m using logsock in Fedora 4. But I see this error messages: When the socket file is not created: "connect to logsock: No such file or directory" when creating the socket file with "mknod <socketfile> p": "connect to logsock: Connection refused" How to create socket file? Regards, Humphrey
On Wed, 24 May 2006, Humphrey Widjaja wrote:> Hi > > I''m using logsock in Fedora 4. > > But I see this error messages: > > When the socket file is not created: > "connect to logsock: No such file or directory"I can''t tell without some more context, but I would guess that you have specified a logsock in a directory that does not exist. Could you send you configuration and the full output of flowd.conf? Also remember that logsock is still pretty experimental :)> when creating the socket file with "mknod <socketfile> p": > "connect to logsock: Connection refused"No, don''t do that - the log socket is created automatically. -d
On 5/24/06, Damien Miller <djm at mindrot.org> wrote:> > I can''t tell without some more context, but I would guess that you > have specified a logsock in a directory that does not exist. >The directory is exist as I could create the file with mknod. As an alternate of socket file, I create /opt/_flowd/.fifo (with "mknod <fifofile> p") and a PERL script to read from .fifo and write it to another file with changing the filename every 15mins in this format: flow.dat.yymmdd.HHMM The reason of my script is to change the log filename every 15mins.> > Could you send you configuration and the full output of flowd.conf? >[root at localhost _flowd]# grep -v ^# flowd.conf logsock "/opt/_flowd/.sock" logfile "/opt/_flowd/.fifo" pidfile "/var/run/flowd.pid" listen on 0.0.0.0:1111 listen on 0.0.0.0:1112 flow source 10.0.0.0/8 store ALL> > Also remember that logsock is still pretty experimental :) >I know that and I want to be part of the experiment :) Thanks for replying me