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 

How to exlclude sertain entries from logs... ?

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



Joined: 14 Oct 2008
Posts: 18

PostPosted: Wed Jun 15, 2011 5:02 pm    Post subject: How to exlclude sertain entries from logs... ? Reply with quote

Hi All!

The recent unexpected problem with my icecast server follows Wink:
Some kind of misconfigured web application (chat) at foreign resource
(not sure that is kind of DDOS attack) causes it's clients to download stream's playlist file e.g. :
the stream name is ehr64, so file ehr64.m3u is downloaded.
Code:
213.102.153.53 - - [15/Jun/2011:19:11:56 +0300] "GET /ehr64.m3u HTTP/1.1" 200 97 "http://85.31.101.166/juicy/chat/themes/default/ffmp3-config.swf" "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.100 Safari/534.30" 0

Each download is 97 bytes long, is legitimate itself & seems not to produce noticeable load, but access log entry for it is 260 bytes Wink. It takes 15 minutes to fill 10MB log file ;-(.

Am I missing some build-in functionality to exclude writing access log entries based on any kind or pattern (referer in this case).

I tried adding
Code:

<mount>
  <mount-name>/ehr64.m3u</mount-name>
  <skip-accesslog>yes</skip-accesslog>
</mount>


but with no luck ....

Thanks in advance.
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Jun 15, 2011 6:15 pm    Post subject: Reply with quote

that option is only in the kh tree, if you are on 2.3.2 then that isn't available. You could place those IPs in the ban file but that would affect all connections from that IP which may be an issue for you.

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



Joined: 14 Oct 2008
Posts: 18

PostPosted: Thu Jun 16, 2011 10:13 am    Post subject: Reply with quote

karlH wrote:
that option is only in the kh tree, if you are on 2.3.2 then that isn't available.
karl.


I'm using Icecast 2.3.2-kh21a (btw, serving 3000+ listeners on vps with 512 MB RAM - thanks Karl).
"Banning" clients from accessing server entirely I think is better done through firewall (in progress).
My wish/hope was to get kind of pattern filtering, for entries in log file, that are useless for me...
Back to top
View user's profile Send private message
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Thu Jun 16, 2011 5:17 pm    Post subject: Reply with quote

That setting was added around kh22 time so you may of missed out on it with that version.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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