Why is my export sink from Stackdriver only loading the latest audit logs into BigQuery and no historical?

我与影子孤独终老i 提交于 2021-02-10 05:51:31

问题


I created an export sink in Stackdriver to load audit logs into BigQuery. I want to be able to see audit logs from the past 3 months. However, when I queried the tables in BigQuery, I am only seeing logs from today and no earlier.

I applied the following filters to my export sink. I also tried removing the timestamp filter but still only seeing logs from today and no prior.

resource.type="bigquery_dataset" timestamp > "2019-05-01T23:59:09.739Z"


回答1:


Exports only work for new entries.

Per the documentation -- "exporting happens for new log entries only, you cannot export log entries that Logging received before your sink was created."

https://cloud.google.com/logging/docs/export/#how_sinks_work



来源:https://stackoverflow.com/questions/56940912/why-is-my-export-sink-from-stackdriver-only-loading-the-latest-audit-logs-into-b

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!