^(?!(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 -~----------~----~----~----~------~----~------~--~---