View Issue Details

IDProjectCategoryView StatusLast Update
0001408unrealircdpublic2003-12-13 22:13
Reportercapitaine Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status closedResolutionopen 
Summary0001408: Keep logs
DescriptionI tried to set Log::maxsize <max-file-size> but since our traffic is not predictable, I find it not very useful.

If would be very nice to have a Log::keeplogs <time>
Example : logs { keeplogs 60D; ...... }

Anyway thanks you !
3rd party modules

Activities

w00t

2003-12-04 23:53

reporter   ~0004206

Err... this may be irrelevant... But what would happen if you got absolutly FLOODED with connects, etc... your logs would grow to an astronomical size, possibly utilising all the HD space..? That is not good.

Would'nt it just make more sense to set a higher logsize than you think you will ever need, but smaller than your HD?

My two cents as ever... ;)

capitaine

2003-12-05 10:37

reporter   ~0004212

Well, I haven't said I would like the Log::maxsize beeing suppressed.

Sure, it's useful for big networks anyway.

w00t

2003-12-08 01:42

reporter   ~0004243

My point is that having a logtime expire would be useless and hard to code...

Make that four cents ;)

capitaine

2003-12-10 19:43

reporter   ~0004281

I agree that keeping logs for legal reasons, like 2 months or more, is useless. But, I don't know very much about C, and if it's hard to code, let's close the case.

Thanks you anyway.

syzop

2003-12-11 18:39

administrator   ~0004309

Ok perhaps I should comment on this.
From my personal experience I know it's better (safer!) to have fixed sizes than to use days (if you've done nt/w2k eventlog sysadmin stuff you'll know why), for example if you got limited hd space, or more likely limited quota.. then you'll run into huge problems if you eat all your space...
But... for some people this _can_ be useful, so it's worth looking at... I haven't worked much (eh not at all) with the logging code, but it doesn't seem too hard to code either... just a stat() call to get the creation time of the logfile and do some calculations.

codemastr

2003-12-11 18:57

reporter   ~0004310

I dunno, seems kinda like this is more a job for a cron script type thing to me.

capitaine

2003-12-13 18:38

reporter   ~0004327

You're right. Size has to be checked.
For the crontab, yes I think so too. It's not revelant to include that in the core server. It may be a module in the future.

syzop

2003-12-13 22:13

administrator   ~0004332

ok well.. then I'll just close it.

Issue History

Date Modified Username Field Change
2003-12-04 23:10 capitaine New Issue
2003-12-04 23:53 w00t Note Added: 0004206
2003-12-05 10:37 capitaine Note Added: 0004212
2003-12-08 01:42 w00t Note Added: 0004243
2003-12-10 19:43 capitaine Note Added: 0004281
2003-12-11 18:39 syzop Note Added: 0004309
2003-12-11 18:57 codemastr Note Added: 0004310
2003-12-13 18:38 capitaine Note Added: 0004327
2003-12-13 22:13 syzop Status new => closed
2003-12-13 22:13 syzop Note Added: 0004332