<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Thanks, Bob.<BR>
<BR>
That seems to have done the trick.<BR>
<BR>
Bill<BR>
KG6BAJ<BR> <BR>
<DIV>
<HR id=stopSpelling>
Date: Sun, 28 Sep 2014 05:45:39 -0400<BR>From: bobtenty@gmail.com<BR>To: nos-bbs@tapr.org<BR>Subject: Re: [nos-bbs] Changing JNOS log file name<BR><BR><BR>Yes that is possible, I changed the name to "nos.log"<BR><BR>Open main.c of the source with an editor and look for the line....<BR><BR>sprintf (ML, "%s/%2.2s%3.3s%2.2s", LogsDir, cp + 8, cp + 4, cp + 22);<BR><BR>- Around line 1101 in function nos_log() -<BR><BR>I changed it to:<BR><BR><BR> /* sprintf (ML, "%s/%2.2s%3.3s%2.2s", LogsDir, cp + 8, cp + 4, cp + 22); */<BR><BR> sprintf(ML, "%s/%s", LogsDir, "nos.log"); /* 28Sep2014, Boudewijn(Bob) VE3TOK, changed log name to nos.log */<BR><BR><BR>Recompile!<BR><BR>73,<BR><BR>Bob VE3TOK<BR><BR><BR><BR><BR>
<DIV class=ecxmoz-cite-prefix>On 14-09-27 11:58 PM, Wm Lewis wrote:<BR></DIV>
<BLOCKQUOTE cite=mid:BLU170-W134573080D23D0ABA915FE2A9BD0@phx.gbl>
<STYLE><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></STYLE>
<DIV dir=ltr>Currently JNOS automatically names its log files in the format [ddmmyy] (example : "25Sept14" or "01Jan14")<BR> <BR>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?<BR> <BR>Then I could use use linux's log-rotate feature to rotate the logs say, once a week.<BR> <BR>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.<BR> <BR>Only, the intrusion detection software (Fail2Ban) needs the log file name to always be the same name. <BR> <BR>Anyone know if it's possible to setup jnos so it always keeps the log file name the same?<BR> <BR>Thanks<BR>Bill - KG6BAJ <BR></DIV><BR>
<FIELDSET class=ecxmimeAttachmentHeader></FIELDSET> <BR><PRE>_______________________________________________
nos-bbs mailing list
<A class=ecxmoz-txt-link-abbreviated href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</A>
<A class=ecxmoz-txt-link-freetext href="http://www.tapr.org/mailman/listinfo/nos-bbs" target=_blank>http://www.tapr.org/mailman/listinfo/nos-bbs</A>
</PRE></BLOCKQUOTE><BR><BR>_______________________________________________ nos-bbs mailing list nos-bbs@tapr.org http://www.tapr.org/mailman/listinfo/nos-bbs</DIV> </div></body>
</html>