<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<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="moz-cite-prefix">On 14-09-27 11:58 PM, Wm Lewis wrote:<br>
</div>
<blockquote cite="mid:BLU170-W134573080D23D0ABA915FE2A9BD0@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
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="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
nos-bbs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a class="moz-txt-link-freetext" href="http://www.tapr.org/mailman/listinfo/nos-bbs">http://www.tapr.org/mailman/listinfo/nos-bbs</a>
</pre>
</blockquote>
<br>
</body>
</html>