Hello Attila, I believe you want to be looking into Logs-based Metric Labels 
<https://cloud.google.com/logging/docs/logs-based-metrics/labels> which 
allow you to specify a regular expression to run on your logs when defining 
them. To make you you understand the entire picture, you should read the 
entire Logs-based Metrics 
<https://cloud.google.com/logging/docs/logs-based-metrics/> section.

On Saturday, November 18, 2017 at 2:41:24 PM UTC-5, Attila-Mihaly Balazs 
wrote:
>
> Hello,
>
> I'm trying to set up a log based metric based on some values extracted 
> from the log lines. However I can't seem to find the field from which to 
> extract the log line(s). I tried "textPayload" and "protoPayload.line[0]", 
> however neither seem to work. Also, I couldn't find an example for this 
> case in the documentation (which seems to show log based metrics based on 
> other fields like "status code" or "user agent").
>
> Did anyone set up a log based metric based on values extracted from the 
> logged line(s)? If so, which field did you use?
>
> Thanks,
> Attila Balazs
>

-- 
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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
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/761b48c1-a62a-4610-94a6-6af3ea512779%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appengine... Attila-Mihaly Balazs
    • [google-appe... 'Yannick (Cloud Platform Support)' via Google App Engine
      • [google-... Attila-Mihaly Balazs
        • [goo... 'Yannick (Cloud Platform Support)' via Google App Engine
          • ... Attila-Mihaly Balazs

Reply via email to