[syslog-ng]new... simple examples?

Michael Earls Michael.Earls@chmcc.org
Wed, 07 Aug 2002 14:56:50 -0400


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_FDA19C94.86E78B7F
Content-Type: text/plain; charset=Windows-874
Content-Transfer-Encoding: quoted-printable

not sure if it has a config file for logging syslog via tcp, but there
are some examples of logging via udp,=20
=20
here is an example to log udp and filter based on ip address,=20

# Tucson
#
destination 12.9.1.226 {
file("/var/syslog/Arizona/Tucson/JC-Tucson/redback/JC-Tucson.log"); };
filter f_12.9.1.226 { host(12.9.1.226); };          =20
log { source(net); filter(f_12.9.1.226); destination(12.9.1.226); };
destination 12.126.138.90 {
file("/var/syslog/Arizona/Tucson/JC-Tucson/router/JC-Tucson.log"); };
filter f_12.126.138.90 { host(12.126.138.90); };         =20
log { source(net); filter(f_12.126.138.90); destination(12.126.138.90);
};

Nate =97 do we have an example of syslog-ng config file for logging via
tcp?


>>> dbarber@tdschas.com 08/07/02 02:47PM >>>
I must be missing something... Michael, can you point out in the FAQ
where it has a link to  or specific examples of a config log which
uses
tcp to log remotely?=20

thanks,

Dan

On Wed, 2002-08-07 at 14:22, Michael Earls wrote:
> look at the FAQ page
> =20
> Frequently asked questions at
http://www.campin.net/syslog-ng/faq.html=20
> =20
>=20
>=20
> >>> dbarber@tdschas.com 08/07/02 02:12PM >>>
> Hi,
>=20
> Does anyone have a simple example for a config file which will log
all
> logs to a remote host via tcp?
>=20
> or a site that has some examples?
>=20
> thanks,
>=20
> Dan
>=20
>=20
>=20
> _______________________________________________
> syslog-ng maillist  -  syslog-ng@lists.balabit.hu=20
> https://lists.balabit.hu/mailman/listinfo/syslog-ng=20
> Frequently asked questions at
http://www.campin.net/syslog-ng/faq.html=20
>=20
>=20
>=20



_______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu=20
https://lists.balabit.hu/mailman/listinfo/syslog-ng=20
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html




--=_FDA19C94.86E78B7F
Content-Type: text/html; charset=Windows-874
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY style="MARGIN-TOP: 2px; FONT: 8pt Tahoma; MARGIN-LEFT: 2px">
<DIV><FONT face=Arial size=3>not sure if it has a config file for logging syslog 
via tcp, but there are some examples of logging via udp, </FONT></DIV>
<DIV><FONT face=Arial size=3></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=3>here is an example to log udp and filter based on 
ip address, </FONT></DIV>
<DIV><BR><FONT face=Arial size=3># Tucson<BR>#<BR>destination 12.9.1.226 { 
file("/var/syslog/Arizona/Tucson/JC-Tucson/redback/JC-Tucson.log"); };<BR>filter 
f_12.9.1.226 { host(12.9.1.226); 
};&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>log { 
source(net); filter(f_12.9.1.226); destination(12.9.1.226); };<BR>destination 
12.126.138.90 { 
file("/var/syslog/Arizona/Tucson/JC-Tucson/router/JC-Tucson.log"); };<BR>filter 
f_12.126.138.90 { host(12.126.138.90); 
};&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>log { source(net); 
filter(f_12.126.138.90); destination(12.126.138.90); };<BR></FONT></DIV>
<DIV><FONT face=Arial size=3>Nate &#8212; do we have an example of syslog-ng config 
file for logging via tcp?</FONT></DIV>
<DIV><BR><BR>&gt;&gt;&gt; dbarber@tdschas.com 08/07/02 02:47PM &gt;&gt;&gt;<BR>I 
must be missing something... Michael, can you point out in the FAQ<BR>where it 
has a link to&nbsp; or specific examples of a config log which uses<BR>tcp to 
log remotely? <BR><BR>thanks,<BR><BR>Dan<BR><BR>On Wed, 2002-08-07 at 14:22, 
Michael Earls wrote:<BR>&gt; look at the FAQ page<BR>&gt;&nbsp; <BR>&gt; 
Frequently asked questions at <A 
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</A><BR>&gt;&nbsp; 
<BR>&gt; <BR>&gt; <BR>&gt; &gt;&gt;&gt; dbarber@tdschas.com 08/07/02 02:12PM 
&gt;&gt;&gt;<BR>&gt; Hi,<BR>&gt; <BR>&gt; Does anyone have a simple example for 
a config file which will log all<BR>&gt; logs to a remote host via tcp?<BR>&gt; 
<BR>&gt; or a site that has some examples?<BR>&gt; <BR>&gt; thanks,<BR>&gt; 
<BR>&gt; Dan<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; 
_______________________________________________<BR>&gt; syslog-ng maillist&nbsp; 
-&nbsp; syslog-ng@lists.balabit.hu <BR>&gt; <A 
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</A> 
<BR>&gt; Frequently asked questions at <A 
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</A><BR>&gt; 
<BR>&gt; <BR>&gt; 
<BR><BR><BR><BR>_______________________________________________<BR>syslog-ng 
maillist&nbsp; -&nbsp; syslog-ng@lists.balabit.hu<BR><A 
href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</A><BR>Frequently 
asked questions at <A 
href="http://www.campin.net/syslog-ng/faq.html">http://www.campin.net/syslog-ng/faq.html</A><BR><BR></DIV></BODY></HTML>

--=_FDA19C94.86E78B7F--