Hi sir,
I want to exclude some logs to lower the cost. I can select those logs inside log explorer but I cannot filter them by using exact the same query inside “log routing sink exclusion filter”. I can still see those logs 1 day after I applied the exclusion filter. can anyone help to give some advise?
I search and filter by this query:
resource.type=“cloud_run_revision”
resource.labels.service_name=“XXXXX”
textPayload=~"Get Cache From Redis, Key = "
NOT textPayload =~ “content_id=”
Hi @no-name_1 ,
Welcome to Google Cloud Community!
I understand that you cannot exclude some logs using the Log router sink. Did you create a query inside the inclusion filter? If so, please provide it along with the query for the exclusion filter. Your log router sink must have both the inclusion and exclusion filter so it will not result in higher than expected resource usage. Also, please try to add logical operators such as AND and OR in your query and see if it works.
Additionally, you can check and see some sample queries here for your reference.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.
1 Like
Hi ronnelg,
thx for your attention, please read my post as I had provided info you asked.
no-name