[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> </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);
}; <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);
}; <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 — do we have an example of syslog-ng config
file for logging via tcp?</FONT></DIV>
<DIV><BR><BR>>>> dbarber@tdschas.com 08/07/02 02:47PM >>><BR>I
must be missing something... Michael, can you point out in the FAQ<BR>where it
has a link to 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>> look at the FAQ page<BR>> <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>> <BR>> <BR>> >>> dbarber@tdschas.com 08/07/02 02:12PM
>>><BR>> Hi,<BR>> <BR>> Does anyone have a simple example for
a config file which will log all<BR>> logs to a remote host via tcp?<BR>>
<BR>> or a site that has some examples?<BR>> <BR>> thanks,<BR>>
<BR>> Dan<BR>> <BR>> <BR>> <BR>>
_______________________________________________<BR>> syslog-ng maillist
- 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>> <BR>>
<BR><BR><BR><BR>_______________________________________________<BR>syslog-ng
maillist - 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--