[syslog-ng] Syslog-ng 3.16 unable to write to pipe

Aguilu, Miguel miguel.aguilu at atos.net
Tue Apr 9 13:38:07 UTC 2019


We are in the middle of a project to Migrate from 3.0 to 3.16 (latest in redhat distro)
The standard 3.14 config works fine writing to some standard logs in /var/log
But we need to write special files to /opt/log/

  *   In this directory will be a file type pipe to be read by a syslog probe (parse messages into alerts). Using the following configuration NG returns unable to write.

source s_dgram

  { unix-dgram("/dev/log"); };

source s_kernel

  { file("/proc/kmsg" program_override("kernel: ")); };

source s_udp

  { udp(); };

destination netcool        { pipe("/var/log/nco.pipe"); };



log { source(s_dgram);

      source(s_kernel);

      source(s_udp);       filter(f_NOfwflow);

                                        filter(f_NOdata_cent);

                                        filter(f_NOtacacs);

                                        filter(f_netcool);        destination(netcool); };

  *   Even if I remove the filter I get the same error.
  *   Also removed all of the sources with the exception of the upd and got the same error.
  *   Changed the file type to file and getting:
     *   OLLERR occurred while idle; fd='66'
     *   Apr  9 13:17:45 wbucrp-isdmz1a-lb err syslog-ng[2475]: Connection broken; time_reopen='60'
     *   Apr  9 13:17:47 wbucrp-isdmz1b-lb err syslog-ng[10934]: POLLERR occurred while idle; fd='66'
     *   Apr  9 13:17:47 wbucrp-isdmz1b-lb err syslog-ng[10934]: Connection broken; time_reopen='60'
     *   Apr  9 13:17:51 wapcrp-isdmz0a-lb err syslog-ng[3713]: I/O error occurred while writing; fd='38', error='Connection refused (111)'
     *   Apr  9 13:17:51 wapcrp-isdmz0a-lb err syslog-ng[3713]: Connection broken; time_reopen='60'
     *   Apr  9 13:17:51 wapcrp-isdmz0a-lb notice syslog-ng[3713]: Suspending write operation because of an I/O error; fd='38', time_reopen='60'
  *   The permissions in /opt/log are 777 and owned by root which is the user syslog-ng is running under.
  *   Also change the path to where the config was updating file (/varr/log) and attemted to create the pipe and no luck

Here are my global options:

  *   options {
  *       flush_lines (0);
  *   #    time_reopen (10);
  *       log_fifo_size (1000);
  *       chain_hostnames (on);
  *       use_dns (yes);  ## changed test
  *       use_fqdn (yes);
  *       keep_hostname (yes);
  *       owner("root");
  *       group("root");
  *       create_dirs(yes);   #Test
  *       dir_perm(0755);
  *       perm(0644);
  *   };

ANY Ideas?



Thanks
Miguel

[miki1]
Miguel A Aguilu
Netcool Suite SME
Walt Disney Account
Atos Consulting
Mobile: (321) 261-1385
1120 Celebration Blvd
Celebration, FL 34747
Miguel.Aguilu at Atos.net<mailto:Craig.Elliott at Atos.net>
www.atos.net<http://www.atos.net/>
[/Users/aguim114/Library/Containers/com.microsoft.Outlook/Data/Library/Caches/Signatures/signature_1691773396]

Upcoming PTO: TBD

This e-mail and the documents attached are confidential and intended solely for the addressee; it may also be privileged. If you receive this e-mail in error, please notify the sender immediately and destroy it. As its integrity cannot be secured on the Internet, the Atos group liability cannot be triggered for the message content. Although the sender endeavors to maintain a computer virus-free network, the sender does not warrant that this transmission is virus-free and will not be liable for any damages resulting from any virus transmitted.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20190409/f3cd5712/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1693 bytes
Desc: image001.jpg
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20190409/f3cd5712/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 834 bytes
Desc: image002.gif
URL: <http://lists.balabit.hu/pipermail/syslog-ng/attachments/20190409/f3cd5712/attachment-0001.gif>


More information about the syslog-ng mailing list