On Wed, Feb 26, 2014 at 8:35 AM, stephanos <[email protected]> wrote:
> we would like to filter our logs by user as well as by company. > The dashboard provides filtering by "Labels" and explains that these are > "regular expressions for filtering Apache Combined logs". It also lists a > few valid labels including "user" and "identd_user". > How can I specify the values for those labels so that App Engine will > parse them correctly? > Hi Stephan, It's a fairly straightforward regular expression. Here's a simple example: I uploaded a Go application which uses Google Accounts to log in, then logged in with my *vinnyapp* Gmail account. Then I went into logs and searched for my login. Here's an example of the search (note that the *labels* radiobox is selected): http://imgur.com/1qeJ5tZ and here's an example of one of the logs that the search pulled up: http://imgur.com/XteD1FN . Note that my Google account is listed in the logs. If you're using the built-in Users service, the logs should automatically record the user logging in. If you're not, then you'll have to find a different way of recording the current user and inspecting the logs. ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
