[nos-bbs] Changing JNOS log file name

Michael E Fox - N6MEF n6mef at mefox.org
Sun Sep 28 01:52:48 EDT 2014


Also, the use of logrotate and appended date or sequence number would make the rotated/historical logs sort in order, instead of the current order such as:

 

01Aug14

01Sep14

02Aug14

02Sep14 … etc.

 

Michael

 

 

From: nos-bbs-bounces at tapr.org [mailto:nos-bbs-bounces at tapr.org] On Behalf Of Michael E Fox - N6MEF
Sent: Saturday, September 27, 2014 10:06 PM
To: Wm Lewis; TAPR xNOS Mailing List
Subject: Re: [nos-bbs] Changing JNOS log file name

 

+1

 

Spool/mail.log works that way.  I, too, would prefer logs/jnos.log with logrotate.

 

Michael

N6MEF

 

 

Sent from my Verizon Wireless 4G LTE smartphone

 

-------- Original message --------

From: Wm Lewis 

Date:09/27/2014 8:58 PM (GMT-08:00) 

To: TAPR xNOS Mailing List 

Subject: [nos-bbs] Changing JNOS log file name 

 

Currently JNOS automatically names its log files in the format [ddmmyy] (example : "25Sept14" or "01Jan14")
 
Is there a way to change the name of the logs to something like "jnos.log" and have jnos always leave the log file name the same?
 
Then I could use use linux's log-rotate feature to rotate the logs say, once a week.
 
I'm using an intrusion detection software scanning the logs for "bad login" and automatically ban ip addresses that have 3 or more failed login attempts, via an iptables drop command.
 
Only, the intrusion detection software (Fail2Ban) needs the log file name to always be the same name. 
 
Anyone know if it's possible to setup jnos so it always keeps the log file name the same?
 
Thanks
Bill - KG6BAJ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/attachments/20140927/5915ad58/attachment.html>


More information about the nos-bbs mailing list