I'm using regex to search Google Cloud Logs for requests that are longer than 1000ms
Here are some example requests:
{
...
textPayload: "GET /getUser 200 - - 5380.879 ms",
...
}
{
...
textPayload: "GET /getUser 200 - - 34.879 ms",
...
}
Here is the search I'm using:
textPayload =~ "^(GET)|(POST).*[1-9][0-9][0-9][0-9]|\d{4,}(\sms)$"
I only want to return the one that ends with a value of over 1000.000 ms
but my regex doesn't seem to work. What am I doing wrong?