I have tried a few filters in the log console and found that as soon
as you use (?!...) in the regex you get a server error.
Maybe the console does not implement the full python regex set.
You should make an issue for it.

2008/12/3 Niklas Rosencrantz <[EMAIL PROTECTED]>:
>
> That resulted in serverside error from the console here, while probably 
> proper.
> I was also suggested these:
> ^(?s)(?!.*?(66\.249\.71\.214|213\.89\.16\.95))
>  r'(?!123\.234\.345\.456|456\.567\.678\.789)
> However they also result in server error from the filter logs view.
>
> 2008/12/2 djidjadji <[EMAIL PROTECTED]>:
>>
>> ^(?!(195\.189\.142\.213)|(66.249.71.234)).*HTTP.*$
>>
>> the previous regex matched an empty line too,
>> now the word HTTP must be part of the line
>>
>> 2008/12/2 djidjadji <[EMAIL PROTECTED]>:
>>> ^(?!(195\.189\.142\.213)|(66\.249\.71\.234)).*$
>>>
>>> this will match the complete line unless started with the two named IP 
>>> adresses
>>>
>>> 2008/12/2 Niklas Rosencrantz <[EMAIL PROTECTED]>:
>>>>
>>>> Here's one line in the log that I caused, so I want to negatively
>>>> match it so it won't display:
>>>> 195.189.142.213 - niklasro [02/12/2008:03:14:01 -0800] "GET
>>>> /gallery/ahFjbGFzc2lmaWVkc21hcmtldHIMCxIFSW1hZ2UYtE0M.jpg HTTP/1.1"
>>>> 200 7452
>>>> and the following looks like googlebot. I want to hide this line as
>>>> well with the same regex
>>>> 66.249.71.234  - [02/12/2008:06:47:41 -0800] "GET / HTTP/1.1" 200 6776 - -
>>>>
>>>> i.e I'm looking for the regex equivalent of grep -v "195.189.142.213"
>>>> | grep -v "66.249.71.234"
>>>>
>>>> 2008/12/2 djidjadji <[EMAIL PROTECTED]>
>>>>>
>>>>> Can you give an example of a log line you want to filter?
>>>>>
>>>>> 2008/12/2 Niklas Rosencrantz <[EMAIL PROTECTED]>:
>>>>> > i tried it and couldn't make it. What was needed is everything in the 
>>>>> > log
>>>>> > except that from two or more ip numbers. Maybe something like
>>>>> > [^(123\.456)|(345\.456)]?
>>>>> > thank you
>>>>> >
>>>>> > 2008/12/2 djidjadji <[EMAIL PROTECTED]>
>>>>> >>
>>>>> >> ^(123\.456)|(345\.456)
>>>>> >>
>>>>> >> 2008/12/2 niklasr <[EMAIL PROTECTED]>:
>>>>> >> >
>>>>> >> > Hello
>>>>> >> > How do we filter out requests from two or more ip numbers 
>>>>> >> > (googlebots,
>>>>> >> > developers, etc) in the request log? I tried it like 
>>>>> >> > [^(123\.456|345\.
>>>>> >> > 456)] but that's not it. Thanks in advance.
>>>>> >> > Niklas
>>
>> >
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to