Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

I want to use <logarchive>

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Mon Dec 07, 2009 9:01 pm    Post subject: I want to use <logarchive> Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Dec 07, 2009 9:38 pm    Post subject: Reply with quote

logarchive should be zero or non-size (typically 1 is used), log size does not take commas

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Mon Dec 07, 2009 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Dec 07, 2009 11:39 pm    Post subject: Reply with quote

that's the idea.

karl
Back to top
View user's profile Send private message Send e-mail Visit poster's website
peepo



Joined: 15 Dec 2007
Posts: 88

PostPosted: Wed Dec 09, 2009 10:48 am    Post subject: Reply with quote

Great, thanks Smile
Back to top
View user's profile Send private message
esheldon76



Joined: 10 Nov 2009
Posts: 16

PostPosted: Tue May 11, 2010 7:15 pm    Post subject: Still not working. :( Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber