3

AppEngine logs viewer has the ability to filter by labels. For example if I want to find all logs where the url starts with /static, I can put the filter with Labels option selected as

path:/static.* 

However, what should I put such that the filter shows logs that do NOT match this pattern? Attempting examples here crashed the log viewer.

Community
  • 1
  • 1
sathishvj
  • 1,394
  • 2
  • 17
  • 28

1 Answers1

4

The syntax should have been

path:/(?!static).*

However, this does not work either.

In the meantime, assuming you have no other urls starting with s, you could do

path:/[^s].*

ps: next time you find a crash or a bug, could you please file an issue at http://code.google.com/p/googleappengine/issues/list.

EDIT:

In the general case the regex would be

path:/([^s]|s[^t]|st[^a]|sta[^t]|stat[^i]|stati[^c]).* 
Sebastian Kreft
  • 7,819
  • 3
  • 24
  • 41
  • The latter is exactly what I am doing now. But I have two URIs starting with "s". – sathishvj Aug 15 '12 at 20:10
  • Depending on the other url, you could do something like: path:/([^s]|s[^t]).* (this assumes the second character of the other url is not a t). If, for example, the first differing character is the 4th one, you could use path:/([^s]|sta[^i]).* – Sebastian Kreft Aug 15 '12 at 21:05
  • In the general case the regex would be path:/([^s]|s[^t]|st[^a]|sta[^t]|stat[^i]|stati[^c]).* – Sebastian Kreft Aug 15 '12 at 21:10
  • Not the most elegant of solutions, but it works. In the absence of another option, can you please add this to your answer so that I may upvote it for posterity? – sathishvj Aug 16 '12 at 21:45
  • I know, but at least it solves the problem. I already filed an internal ticket for this. – Sebastian Kreft Aug 17 '12 at 18:18