| View previous topic :: View next topic |
| Author |
Message |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Mon Dec 07, 2009 9:01 pm Post subject: I want to use <logarchive> |
|
|
Hello, I like my log files & want to have them automatically renumbered when they reach a certain size. But Im not sure what info to put in the <logarchive> tag.
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<logsize>100,000</logsize>
<logarchive> </logarchive>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
Do I put a 1 in there to confirm I want it to perform the action?
Also with the <logsize> do I include the comma in the numbers 100,000 or leave it like 100000. ?
Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Dec 07, 2009 9:38 pm Post subject: |
|
|
logarchive should be zero or non-size (typically 1 is used), log size does not take commas
karl. |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Mon Dec 07, 2009 9:53 pm Post subject: |
|
|
Hello, thankyou for the reply.
So I put 1 for logarchive & this will make it timestamp the logfiles when they reach a certain size & start a fresh one? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Mon Dec 07, 2009 11:39 pm Post subject: |
|
|
that's the idea.
karl |
|
| Back to top |
|
 |
peepo
Joined: 15 Dec 2007 Posts: 88
|
Posted: Wed Dec 09, 2009 10:48 am Post subject: |
|
|
Great, thanks  |
|
| Back to top |
|
 |
esheldon76
Joined: 10 Nov 2009 Posts: 16
|
Posted: Tue May 11, 2010 7:15 pm Post subject: Still not working. :( |
|
|
Here is a copy of my icecast.xml file. What I want to do is have Icecast create a new access.log file when the current one hits 10mb. The one that hits 10mb, I want it to be renamed to access.log_time/datestamp. Any help?
<!-- This config file contains a minimal set of configurable parameters,
and mostly just contains the things you need to change. We created
this for those who got scared away from the rather large and heavily
commented icecast.xml.dist file. -->
<icecast>
<limits>
<clients>50000</clients>
<sources>12</sources>
<client-timeout>300</client-timeout>
</limits>
<authentication>
<source-password>password</source-password>
<relay-password>password</relay-password>
<admin-user>admin</admin-user>
<admin-password>password</admin-password>
</authentication>
<hostname>stream.stream.com</hostname>
<listen-socket>
<port>8083</port>
</listen-socket>
<fileserve>1</fileserve>
<paths>
<logdir>D:\Logs\Icecast2\</logdir>
<webroot>./web</webroot>
<adminroot>./admin</adminroot>
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>1</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize>
<logarchive>1</logarchive>
</logging>
</icecast> |
|
| Back to top |
|
 |
|