'Google Cloud Platform Logging: How to search wildcard strings in all logs

How does one do a simple wildcard search in all the logs? I hate GCP's query language and their documentation is just confusing.

I tried:

text:*MY_STRING_TO_SEARCH_FOR*

Doesn't work.



Solution 1:[1]

Use regex instead: text=~".*MY_STRING_TO_SEARCH_FOR.*"

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 guillaume blaquiere