Thanks for your detailed answer, Vinny!

We don't use Google authentication but our own, so I guess we are out of 
luck and have to resort to matching simple log messages. I'm wondering, 
regular expression wise, what would be the best way to mark each request 
with the user and company name. The goal would be to have zero accidental 
matches of other log messages.

Maybe something like:

*<user:bob.harris> <company:google>*


So by using '<' and '>' as well as an identifier I could match requests 
made by a person or a company.

Do you think there is a better way?


On Friday, February 28, 2014 8:49:10 AM UTC+1, Vinny P wrote:
>
> On Wed, Feb 26, 2014 at 8:35 AM, stephanos <[email protected]<javascript:>
> > 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.

Reply via email to