(RADIATOR) Splitting logfiles

Hugh Irvine hugh at open.com.au
Mon May 1 17:46:17 CDT 2006


Hello Deniz -

You could do this with a combination of special characters and  
GlobalVar's:

# define GlobalVar's

DefineFormattedGlobalVar 00 FIVE
DefineFormattedGlobalVar 01 FIVE
DefineFormattedGlobalVar 02 FIVE
DefineFormattedGlobalVar 03 FIVE
DefineFormattedGlobalVar 04 FIVE
DefineFormattedGlobalVar 05 TEN
DefineFormattedGlobalVar 06 TEN
DefineFormattedGlobalVar 07 TEN
DefineFormattedGlobalVar 08 TEN
DefineFormattedGlobalVar 09 TEN
DefineFormattedGlobalVar 10 FIFTEEN
DefineFormattedGlobalVar 11 FIFTEEN
DefineFormattedGlobalVar 12 FIFTEEN
DefineFormattedGlobalVar 13 FIFTEEN
DefineFormattedGlobalVar 14 FIFTEEN
DefineFormattedGlobalVar 15 TWENTY
DefineFormattedGlobalVar 16 TWENTY
DefineFormattedGlobalVar 17 TWENTY
DefineFormattedGlobalVar 18 TWENTY
DefineFormattedGlobalVar 19 TWENTY
DefineFormattedGlobalVar 20 TWENTYFIVE
DefineFormattedGlobalVar 21 TWENTYFIVE
DefineFormattedGlobalVar 22 TWENTYFIVE
DefineFormattedGlobalVar 23 TWENTYFIVE
DefineFormattedGlobalVar 24 TWENTYFIVE
DefineFormattedGlobalVar 25 THIRTY
DefineFormattedGlobalVar 26 THIRTY
DefineFormattedGlobalVar 27 THIRTY
DefineFormattedGlobalVar 28 THIRTY
DefineFormattedGlobalVar 29 THIRTY
DefineFormattedGlobalVar 30 THIRTYFIVE
DefineFormattedGlobalVar 31 THIRTYFIVE
DefineFormattedGlobalVar 32 THIRTYFIVE
DefineFormattedGlobalVar 33 THIRTYFIVE
DefineFormattedGlobalVar 34 THIRTYFIVE
DefineFormattedGlobalVar 35 FORTY
DefineFormattedGlobalVar 36 FORTY
DefineFormattedGlobalVar 37 FORTY
DefineFormattedGlobalVar 38 FORTY
DefineFormattedGlobalVar 39 FORTY
DefineFormattedGlobalVar 40 FORTYFIVE
DefineFormattedGlobalVar 41 FORTYFIVE
DefineFormattedGlobalVar 42 FORTYFIVE
DefineFormattedGlobalVar 43 FORTYFIVE
DefineFormattedGlobalVar 44 FORTYFIVE
DefineFormattedGlobalVar 45 FIFTY
DefineFormattedGlobalVar 46 FIFTY
DefineFormattedGlobalVar 47 FIFTY
DefineFormattedGlobalVar 48 FIFTY
DefineFormattedGlobalVar 49 FIFTY
DefineFormattedGlobalVar 50 FIFTYFIVE
DefineFormattedGlobalVar 51 FIFTYFIVE
DefineFormattedGlobalVar 52 FIFTYFIVE
DefineFormattedGlobalVar 53 FIFTYFIVE
DefineFormattedGlobalVar 54 FIFTYFIVE
DefineFormattedGlobalVar 55 SIXTY
DefineFormattedGlobalVar 56 SIXTY
DefineFormattedGlobalVar 57 SIXTY
DefineFormattedGlobalVar 58 SIXTY
DefineFormattedGlobalVar 59 SIXTY

LogFile %L/logfile-%{GlobalVar:%M}


.....


hope that helps

regards

Hugh


On 1 May 2006, at 17:10, Deniz Aydin wrote:

> Hi,
>
> Thanks for your help. I am still using to log file for every hour. But
> now I need to rotate them for ever five minutes, as they getting  
> bigger
> for an hour. We can do with this with scripting but, I think its  
> better
> do with this radiator if its possible.
>
> -----Original Message-----
> From: Hugh Irvine [mailto:hugh at open.com.au]
> Sent: Monday, May 01, 2006 10:02 AM
> To: Deniz Aydin
> Cc: Patrick Renkens; radiator at open.com.au
> Subject: Re: (RADIATOR) Splitting logfiles
>
>
>
> Hello Deniz -
>
> This will create a new log file every hour:
>
> LogFile  %L/log-%Y-%m-%d-%H
>
> and this will create a new log file every minute:
>
> LogFile  %L/log-%Y-%m-%d-%H-%M
>
> See section 5.2 in the Radiator 3.14 reference manual ("doc/ 
> ref.html").
>
> regards
>
> Hugh
>
>
>
>
> On 1 May 2006, at 16:49, Deniz Aydin wrote:
>
>> Hi,
>>
>> Is there possibility to rotate log files for every 5 minute or sth
>> like
>> that?
>>
>> -----Original Message-----
>> From: owner-radiator at open.com.au [mailto:owner-
>> radiator at open.com.au] On
>> Behalf Of Hugh Irvine
>> Sent: Saturday, April 29, 2006 2:12 AM
>> To: Patrick Renkens
>> Cc: radiator at open.com.au
>> Subject: Re: (RADIATOR) Splitting logfiles
>>
>>
>>
>> Hello Patrick -
>>
>> You can use special characters in the file name:
>>
>> For example
>>
>>
>> LogFile %L/log-%Y-%m-%d
>
>> will generate logs in the LogDir directory with file names like this:
>>
>> log-2006-04-29
>>
>> a new log file will be created every day.
>>
>> See section 5.4.9 in the Radiator 3.14 reference manual ("doc/
>> ref.html").
>>
>> The special characters are defined in section 5.2 of the manual.
>>
>> regards
>>
>> Hugh
>>
>>
>>
>> On 28 Apr 2006, at 21:49, Patrick Renkens wrote:
>>
>>>
>>> Hi all,
>>>
>>> Since we have different types of users, for instance Wireless and
>>> dail-in users, I would like to split loginfo into separate logfiles
>>> for these kind of users.
>>>
>>> If I define a logfile with the global parameter 'LogFile' and I  
>>> use a
>
>>> <Log File> clause in a handler, it seems that loginfo is stored in
>>> both the defined logfiles.
>>>
>>> Is there a way to split loginfo without duplicating information?
>>> Thanks in advance.
>>>
>>> --
>>>
>>> Regards,
>>> Patrick Renkens
>>>
>>>
>>>
>>> --
>>> Archive at http://www.open.com.au/archives/radiator/
>>> Announcements on radiator-announce at open.com.au
>>> To unsubscribe, email 'majordomo at open.com.au' with 'unsubscribe
>>> radiator' in the body of the message.
>>
>>
>> NB:
>>
>> Have you read the reference manual ("doc/ref.html")?
>> Have you searched the mailing list archive (www.open.com.au/archives/
>> radiator)? Have you had a quick look on Google (www.google.com)?
>> Have you included a copy of your configuration file (no secrets),
>> together with a trace 4 debug showing what is happening?
>>
>> --
>> Radiator: the most portable, flexible and configurable RADIUS server
>> anywhere. Available on *NIX, *BSD, Windows, MacOS X.
>> -
>> Nets: internetwork inventory and management - graphical, extensible,
>> flexible with hardware, software, platform and database independence.
>> -
>> CATool: Private Certificate Authority for Unix and Unix-like systems.
>>
>>
>> --
>> Archive at http://www.open.com.au/archives/radiator/
>> Announcements on radiator-announce at open.com.au
>> To unsubscribe, email 'majordomo at open.com.au' with 'unsubscribe
>> radiator' in the body of the message.
>
>
> NB:
>
> Have you read the reference manual ("doc/ref.html")?
> Have you searched the mailing list archive (www.open.com.au/archives/
> radiator)?
> Have you had a quick look on Google (www.google.com)?
> Have you included a copy of your configuration file (no secrets),
> together with a trace 4 debug showing what is happening?
>
> -- 
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. Available on *NIX, *BSD, Windows, MacOS X.
> -
> Nets: internetwork inventory and management - graphical, extensible,
> flexible with hardware, software, platform and database independence.
> -
> CATool: Private Certificate Authority for Unix and Unix-like systems.
>
>


NB:

Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/ 
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.


--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list