Thanks for the clarification of the feature set currently implemented Nicholas. 
I'll open an ER as described.

/ Jonas

> On 22 juni 2016, at 17:54, 'Nicholas (Google Cloud Support)' via Google App 
> Engine <[email protected]> wrote:
> 
> Thanks for sharing your questions and situation with the community!
> 
> There currently is no way of getting only the textPayload attribute of each 
> log entry from the command line by itself.  Your use of shell-fu is an 
> effective workaround and a very common approach for this sort of command line 
> task.  I might consider using the yaml format instead of list as it the 
> output is somewhat cleaner making it perhaps less prone to grep regular 
> expression errors.  Other output formats can be found in the gcloud reference.
> 
> If you would like to avoid using grep and see this feature implemented in the 
> gcloud beta logging component (keeping in mind that it is currently in Beta), 
> feel free to file a new feature request on the gcloud SDK public issue 
> tracker.  Be sure to include as much information and business case as 
> possible.
> 
> Hope this helps.
> 
>> On Wednesday, June 22, 2016 at 5:15:47 AM UTC-4, Jonas Tingeborn wrote:
>> Is there a way to get the gcloud command to output just the textPayload 
>> attribute values?
>> 
>> I haven't managed to figure out a good way of how to extract only the log 
>> lines that an app submitts to stackdriver, without all the metadata 
>> associated with the log entry, of which the actual log line is just one of 
>> many attributes.
>> 
>> Currently I've had to resort to some shell-fu in order to get the log output 
>> in a form akin to what logging locally to file would have yielded.
>> To get logs from a given docker container in container engine I presently do 
>> something like the following:
>> 
>> gcloud beta logging read '<query-expression>' --format list | grep ' 
>> textPayload: ' | cut -c17- > relevant_log_lines
>> 
>> PS. thanks for providing a CLI for stackdriver, very handy indeed.
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Google App Engine" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/google-appengine/RDIJ5x-m-1U/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/google-appengine.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/0e779563-80a1-4d5f-b1ba-e355d89b6d9e%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/9BA71A69-2810-4528-985E-A2F57A5832E9%40tomologic.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to