[syslog-ng]syslog-ng blanks in Servicename

Lixin Liu syslog-ng@lists.balabit.hu
Fri, 9 May 2003 11:36:00 -0700

Is it possible to DNS to verify the valid hostnames? Our syslog produces ma=
bogus hostnames and it is almost impossible to list all of them in bad_host=



-----Original Message-----
From: syslog-ng-admin@lists.balabit.hu [mailto:syslog-ng-admin@lists.balabi=
t.hu] On Behalf Of Balazs Scheidler
Sent: Friday, May 09, 2003 9:42 AM
To: syslog-ng@lists.balabit.hu
Subject: Re: [syslog-ng]syslog-ng blanks in Servicename

On Fri, May 09, 2003 at 10:24:22AM -0600, markallen wrote:
> I recently read a thread that described an option you can set so your =

> not logging blanks in servernames. I seen where I can set the option =

> to ignore bogus hostnames but how do you ignore bogus hostnames that =

> start with a tab?
> =

> This is what I'm currently using:
> =

> options { =

> bad_hostname("snmp|AFSR|AFSR.PSYND|Delete|In|UDBH|Use|ready32"); };
> =

> I would like to exclude everything that starts with a tab as well. =

> Does anyone have any suggestions?

options { bad_hostname("\t"); };

here's the set of special characters you can use (quoting cfg-lex.l):

<string>\\a                { append_char(7); }
<string>\\n                { append_char(10); }
<string>\\r                { append_char(13); }
<string>\\t                { append_char(9); }
<string>\\v                { append_char(11); }

e.g \a, \n, \r, \t and \v are all supported special characters (similarly t=

-- =

PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB=
1 _______________________________________________
syslog-ng maillist  -  syslog-ng@lists.balabit.hu https://lists.balabit.hu/=
Frequently asked questions at http://www.campin.net/syslog-ng/faq.html