RE: [syslog-ng] Creating a named pipe (FIFO)
Good morning Peter: thank you for your reply Does the name of the named pipe need to be the same as the destination line mkfifo splunk; destination splunk { pipe("/var/syslog-ng/syslog_fifo"); }; This is what I currently have in the config file now, and I am still getting an error. Thank you TIM My entire syslog-ng.conf is posted at http://www.pastebin.com/616048 Thank you Timothy A. Holmes IT Manager / Network Admin / Web Master / Computer Teacher Medina Christian Academy A Higher Standard... Jeremiah 33:3 Jeremiah 29:11 Esther 4:14
-----Original Message----- From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng- bounces@lists.balabit.hu] On Behalf Of HÖLTZL Péter Sent: Wednesday, March 22, 2006 9:07 AM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] Creating a named pipe (FIFO)
On Wed, 2006-03-22 at 08:50 -0500, Timothy A. Holmes wrote:
I did some investigation and asked a few questions on IRC, and someone told me that I needed to use the mkpipe command, however I have been unable to locate (using google) the proper syntax for the mkpipe command.
you can create pipes by 'mknod PIPENAME p' command on any linux box. 'mkfifo PIPENAME' makes the same pipe as well.
Péter
-- BalaBit IT Bizt. Kft | Tel: +36 1 371-0540 | GnuPG Fingerprint: holtzl.peter@balabit.hu | Mobil: +36 20 366-9667 | 796B C9D3 E492 B006 C8B2 http://www.balabit.hu/ | Fax: +36 1 208-0875 | 4D1F 5320 28E3 9A1B 3FC6
Hi Timothy, Insted of putting mkfifo into the syslog-ng.conf, add the command 'mkfifo /var/syslog-ng/syslog_fifo' from a command prompt when you are root. regards, Péter
Does the name of the named pipe need to be the same as the destination line mkfifo splunk;
-- BalaBit IT Bizt. Kft | Tel: +36 1 371-0540 | GnuPG Fingerprint: holtzl.peter@balabit.hu | Mobil: +36 20 366-9667 | 796B C9D3 E492 B006 C8B2 http://www.balabit.hu/ | Fax: +36 1 208-0875 | 4D1F 5320 28E3 9A1B 3FC6
On Wed, Mar 22, 2006 at 03:35:07PM +0100, H?LTZL P?ter wrote:
Hi Timothy,
Insted of putting mkfifo into the syslog-ng.conf, add the command 'mkfifo /var/syslog-ng/syslog_fifo' from a command prompt when you are root.
I never feed off to named pipes, but if I did I'd pipe to a program destination that made sure the pipe exists (creates it if it doesn't already) and feeds the data into the pipe for me. Granted this introduces some complication, but your pipe should always be there. I might be overlooking something basic (I've enver actually tried this approach), but it certainly seems better than hoping the pipe exists via some out-of-band mechanism. -- Nate "We Americans... bear the ark of liberties of the world." - Samuel Clemens
participants (3)
-
HÖLTZL Péter
-
Nate Campi
-
Timothy A. Holmes