Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Logs Router Sinks and using wildcards in filters

Hello, when creating a Log Sink to route logs, is it possible to use wildcards or regex for the filters? I would like to route logs based on the logname. However, I saw now that the logname contains the severity level of the log message, e.g. filter: logName:"projects/xyz/logs/sp.info.settlement-processor" OR logName:"projects/xyz/logs/sp.warning.settlement-processor" OR logName:"projects/xyz/logs/sp.notice.settlement-processor" OR logName:"projects/xyz/logs/sp.error.settlement-processor" OR logName:"projects/xyz/logs/sp.debug.settlement-processor"

Any ideas?

Cheers,

Reik

Solved Solved
0 2 2,877
1 ACCEPTED SOLUTION

Howdy Reik,

I think this sounds exactly what you are looking for:

 

 
The answer appears to be a solid "yes" ... you can use regular expressions when building sink routing filters.

View solution in original post

2 REPLIES 2

Howdy Reik,

I think this sounds exactly what you are looking for:

 

 
The answer appears to be a solid "yes" ... you can use regular expressions when building sink routing filters.

Thanks @kolban exactly what I was hoping for.

Top Labels in this Space
Top Solution Authors