Title: Logging seems to not support type.googleapis.com/google.cloud.audit.AuditLog. · Issue #3218 · googleapis/google-cloud-python · GitHub
Open Graph Title: Logging seems to not support type.googleapis.com/google.cloud.audit.AuditLog. · Issue #3218 · googleapis/google-cloud-python
X Title: Logging seems to not support type.googleapis.com/google.cloud.audit.AuditLog. · Issue #3218 · googleapis/google-cloud-python
Description: @waprin Logging does not seem to support type.googleapis.com/google.cloud.audit.AuditLog. File "test_logging.py", line 9, in
Open Graph Description: @waprin Logging does not seem to support type.googleapis.com/google.cloud.audit.AuditLog. File "test_logging.py", line 9, in
X Description: @waprin Logging does not seem to support type.googleapis.com/google.cloud.audit.AuditLog. File "test_logging.py", line 9, in <module> for entry in client.list_entries(): # API call(...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/3218
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Logging seems to not support type.googleapis.com/google.cloud.audit.AuditLog.","articleBody":"@waprin Logging does not seem to support [type.googleapis.com/google.cloud.audit.AuditLog](https://cloud.google.com/logging/docs/reference/audit/auditlog/rest/Shared.Types/AuditLog).\r\n\r\n\r\n```bash\r\n File \"test_logging.py\", line 9, in \u003cmodule\u003e\r\n for entry in client.list_entries(): # API call(s)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/cloud/iterator.py\", line 219, in _items_iter\r\n for item in page:\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/cloud/iterator.py\", line 163, in next\r\n result = self._item_to_value(self._parent, item)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/cloud/logging/_gax.py\", line 488, in _item_to_entry\r\n resource = MessageToDict(entry_pb)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 133, in MessageToDict\r\n return printer._MessageToJsonObject(message)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 164, in _MessageToJsonObject\r\n return self._RegularMessageToJsonObject(message, js)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 196, in _RegularMessageToJsonObject\r\n js[name] = self._FieldToJsonObject(field, value)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 230, in _FieldToJsonObject\r\n return self._MessageToJsonObject(value)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 162, in _MessageToJsonObject\r\n return methodcaller(_WKTJSONMETHODS[full_name][0], message)(self)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 266, in _AnyMessageToJsonObject\r\n sub_message = _CreateMessageFromTypeUrl(type_url)\r\n File \"/Users/daspecster/.virtualenvs/test-gcp/lib/python2.7/site-packages/google/protobuf/json_format.py\", line 341, in _CreateMessageFromTypeUrl\r\n 'Can not find message descriptor by type_url: {0}.'.format(type_url))\r\nTypeError: Can not find message descriptor by type_url: type.googleapis.com/google.cloud.audit.AuditLog.\r\n```\r\n\r\nThese entries are for things like auth logging/auditing. I think this popped up for me because I just checked all logs and not a specific services log. However I would imagine this would a common log type to support?","author":{"url":"https://github.com/daspecster","@type":"Person","name":"daspecster"},"datePublished":"2017-03-28T14:49:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/3218/google-cloud-python/issues/3218"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a5e0c58f-daee-5ad5-5864-0779082ad9dc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 869A:A7ECB:6E9CCE:959419:6A4D44CF |
| html-safe-nonce | 4e035204dc896b04f27a4129093cd20e4971de51f5d4f8a4a13d7eca66b56db9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjlBOkE3RUNCOjZFOUNDRTo5NTk0MTk6NkE0RDQ0Q0YiLCJ2aXNpdG9yX2lkIjoiNjQ3ODk0NTU1MzQ4MDUwMDQzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2644dfbd162adb94a0d484a7ad59abf496c5b5ba52bbb963218e48d1598ee018 |
| hovercard-subject-tag | issue:217586389 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/3218/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ad0d112d639a0f22669461b559f9d1dd2c74016ac59c5f58deb285b5c35a2910/googleapis/google-cloud-python/issues/3218 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad0d112d639a0f22669461b559f9d1dd2c74016ac59c5f58deb285b5c35a2910/googleapis/google-cloud-python/issues/3218 |
| og:image:alt | @waprin Logging does not seem to support type.googleapis.com/google.cloud.audit.AuditLog. File "test_logging.py", line 9, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | daspecster |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width