Author |
Message
|
techboy99 |
Posted: Mon Apr 03, 2006 1:27 pm Post subject: BlockIP2 log rotation |
|
|
Newbie
Joined: 03 Apr 2006 Posts: 7
|
Is it possible to do log rotation with the BlockIP2 exit? |
|
Back to top |
|
 |
oz1ccg |
Posted: Tue Apr 04, 2006 12:16 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
There are currently no log rotation logic implemented in the exit code at this moment.
This feature might come in a future release. But it might cost more cpu. You could use the LogFormat=<spec>; specification in your configuration file.
And the use the date option like this:
LogFormat=ND;
I've also got plans about moving the default log location from C:\ to <install_path>\exits to keep the locations the same.
-- Lock it or Lose it --  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
techboy99 |
Posted: Tue Apr 04, 2006 6:14 am Post subject: |
|
|
Newbie
Joined: 03 Apr 2006 Posts: 7
|
Thanks for the info.
We're currently trying to convert some of our MQ installs away from using a homegrown security exit to the BlockIP2 exit (the guy who wrote our exit left). One of the features we like about the homegrown exit is that it will do log rotation.
We currently have MQ Server installed on over 288 machines on a variety of platforms (Windows, Solaris, HP-UX, AIX, etc). Managing the logs manually will be a major undertaking.
Would you have any interest in seeing the log rotation code from our exit? |
|
Back to top |
|
 |
oz1ccg |
Posted: Tue Apr 04, 2006 10:26 am Post subject: |
|
|
 Yatiri
Joined: 10 Feb 2002 Posts: 628 Location: Denmark
|
First of all, I'm allways interested in seeing how other have done it. Sometimes it can give inspiration. I've received many comments about BlockIP2 over the years and other security exits for review.
About the "log rotation code" it's allready implemented in version 2.46 that is uploaded. So it wasn't so far away
-- Lock it or Lose it --  _________________ Regards, Jørgen
Home of BlockIP2, the last free MQ Security exit ver. 3.00
Cert. on WMQ, WBIMB, SWIFT. |
|
Back to top |
|
 |
techboy99 |
Posted: Tue Apr 04, 2006 11:02 am Post subject: |
|
|
Newbie
Joined: 03 Apr 2006 Posts: 7
|
Wow, it's like you were reading our minds or something.
Cool, I've downloaded the new version, we're testing it now.
If you still like to see our exit code, let me know I'll email it to you or whatever.
Thanks. |
|
Back to top |
|
 |
techboy99 |
Posted: Tue Apr 04, 2006 11:57 am Post subject: |
|
|
Newbie
Joined: 03 Apr 2006 Posts: 7
|
We're trying out the new Log Parms with 2.46 and with the following in the blockspec:
LogCount=5;
LogDrive=d;
LogFileName=blockip2;
LogFormat=NCD;
LogSize=500;
I get the following in the log:
2006-04-04|15:41:25|Invalid value was specified for LogSize, value reset to default.
2006-04-04|15:41:25|Invalid value was specified for LogSize, value reset to default.
And the log doesn't seem to wrap at any point (not at the set value and not at the stated 200KB default). This happens on a Solaris box as well....
If you need any other doc, let me know.
Thanks. |
|
Back to top |
|
 |
techboy99 |
Posted: Tue Apr 04, 2006 12:46 pm Post subject: |
|
|
Newbie
Joined: 03 Apr 2006 Posts: 7
|
Sorry, just an update. I was able to get the log to roll over, but I had to comment out the LogFormat parm:
LogCount=5;
LogDrive=d;
LogFileName=blockip2;
#LogFormat=NC;
LogSize=102400;
And I still get the following in the log:
2006-04-04|16:22:01|Invalid value was specified for LogSize, value reset to default.
2006-04-04|16:22:01|Invalid value was specified for LogSize, value reset to default.
2006-04-04|16:22:01|Connection accepted, Channel [QXX.SERVER] ConName [10.92.XX.XXX] Pattern [127.0.0.1;10.92.XX.XX;] Flags
Doesn't seem to matter what I put in the LogSize field either.
Thanks for your help. |
|
Back to top |
|
 |
techboy99 |
Posted: Thu Apr 06, 2006 5:19 am Post subject: |
|
|
Newbie
Joined: 03 Apr 2006 Posts: 7
|
As an update to anyone who might be monitoring this thread. The new BlockIP2 version 2.47 corrects the problems I was having with the new Log Parms.
If you want to use Log Rotation make sure you grab the newest version.
And thanks very much to Jørgen for all your hard work.  |
|
Back to top |
|
 |
|