user10332687
user10332687

Reputation:

Viewing all logs in stackdriver

I find myself toggling between different 'resources' to view my logs in stackdriver. For example:

enter image description here

Is there a way to view all combined logs from a single view? Most go to "Global", but many do not as well.

Upvotes: 0

Views: 445

Answers (2)

Daniel t.
Daniel t.

Reputation: 1055

I believe you can do textual search across all logs, but it will not be as granular as resource type based search. You can try this with the Advanced filter feature.

On the top right corner of the search box, click the drop down menu and select "Convert to advanced filter". Then delete the "resource.type=xyz" line and type the string you want to search.

As alternative the gcloud sdk cli to search the logs without specifying resource type - for instance, gcloud logging read error --limit 1 would look for "error" string across all your logs and show only 1 matching entry.

Upvotes: 1

Rafa Diaz
Rafa Diaz

Reputation: 46

Just convert the filter to advanced view and select the resource types that you need

resource.type="bigquery_resource" OR resource.type="gce_instance" OR resource.type="audited_resource"

That will show you the logs for bigquery and audit and gce in a single view.

Upvotes: 1

Related Questions