Antei
Antei

Reputation: 39

Stackdriver logs - getting stats

Is there a way to find stats like how many requests were responded with status=200 and how many with status=500 after filtering logs by specific text ?

Upvotes: 1

Views: 60

Answers (1)

Kirk Kelsey
Kirk Kelsey

Reputation: 4544

You can create a Log Based Metric to track stats from now on, but it is not possible to have the metric filled from existing logs or to get the stats via a one-off query.

Upvotes: 1

Related Questions