CLX archive - 1998: Re[2]: Log files

Re[2]: Log files

Arnold Bosch (szuvzghs@opanet.cz)
Mon, 24 Aug 1998 12:20:59 +0200


Hello Bernhard,

Monday, 24 August 1998, you wrote:

Bernhard> Dear Luiz and other CLX users,

Ben, I think what Luiz mend and what we discussed yesterday on WWC channel 9000,
is that what he (and I) would like, is a separate logging from clx in the
already existing logfiles, without manipulating the /etc/syslog.conf
file. So logging directly to /usr/local/clx/log/ io.log err.log and
crit.log (and if wanted debug.log) So no interfering of syslogd in
between. No entries at all in /usr/adm/messages and /usr/adm/syslog.

Since there are many different flavors of syslogd hanging around, this
seems to be a bit more 'straight forward'.

>> Ben, what about to have a "standard" log in clxd.log including there all
>> clx activities (leveled by the syslog_lev parameter) ? Wouldn't be a
>> little bit more simpler than actually is?

Bernhard> clxd.log only contains connections coming in via clxd. I cannot write a
Bernhard> log entry when the connection terminates because of the following:

Bernhard> 1. clxd gets started by inetd because a connections ocurrs
Bernhard> 2. clxd authorizes the user and makes a log entry
Bernhard> 3. then it execs the net_usr interface script, i.e. the clxd process
Bernhard> goes away and it is replaced with net_usr (that is what exec is
Bernhard> all about).
Bernhard> 4. When the user logs out, net_usr terminates normally.

Bernhard> If we had to write a log entry now, then net_usr would have to know
Bernhard> if the connection came in by Internet or standard ax.25.
Bernhard> The idea behind clxd.log was to check for Internet connects and find
Bernhard> out any misbehaviour. It was never intended for user statistics.

Bernhard> You should use the Postgres database table us_log for this. There
Bernhard> you have all the information required. However, it's no longer a
Bernhard> plain ASCII file but you must use PSQL commands to retrieve the
Bernhard> information. But it's not as difficult as you may think. Take a look
Bernhard> at the us_adm or read_ak1a scripts to see how it's done.

Bernhard> 73 Ben, DL6RAI (@work)
Bernhard> --
Bernhard> Bernhard Buettner - Systemmanagement, LFK-FTE4 Telefon: 089/607-26921
Bernhard> Email: ksqutc@travel.com.au Fax: 089/607-22172

Best regards,
Arnold, PE1IVQ mailto:terhi.victor@logonet.com