# Log Streams -\> Googleapis (Chronicle)

**URL:** <https://community.auth0.com/t/log-streams-googleapis-chronicle/128093>\
**Category:** Get Help\
**Tags:** logs, management-api\
**Created:** [February 22, 2024, 4:59pm UTC](https://community.auth0.com/t/log-streams-googleapis-chronicle/128093 "2024-02-22T16:59:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![renato.coneglian](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/renato.coneglian/32/55072_2.png) [@renato.coneglian](https://community.auth0.com/u/renato.coneglian)\
**Post date:** [February 22, 2024, 4:59pm UTC](https://community.auth0.com/t/log-streams-googleapis-chronicle/128093/1 "2024-02-22T16:59:43Z")

</div>

Hi, we are trying to post Auth0 Logs using a Custom Webhook Stream to a Google Chronicle.

In the URL, we are using:  
[https://eu-chronicle.googleapis.com/v1alpha/projects/xxxxxxx/locations/eu/instances/xxxxxxx/feeds/xxxxxxxx:importPushLogs](https://eu-chronicle.googleapis.com/v1alpha/projects/xxxxxxx/locations/eu/instances/xxxxxxx/feeds/xxxxxxxx:importPushLogs)

In authorization token we tried several ways:

X-goog-api-key=XXXXXXX  
“X-goog-api-key” : “XXXXXXX”  
{“X-goog-api-key” : “XXXXXXX”}

When using this in a python script, it works returning a 200 status:

[session.post](http://session.post/)([https://eu-chronicle.googleapis.com/v1alpha/projects/xxxxxxx/locations/eu/instances/xxxxxxx/feeds/xxxxxxxx:importPushLogs](https://eu-chronicle.googleapis.com/v1alpha/projects/xxxxxxx/locations/eu/instances/xxxxxxx/feeds/xxxxxxxx:importPushLogs), data=“DINKDOINK1”, headers={“X-goog-api-key”:“XXXXXXXXX”})

But when using it in Auth0, we receive:

“error”: {  
“code”: “403”,  
“message”: “Forbidden”,  
“details”: “{\n "error": {\n "code": 403,\n "message": "Method doesn’t allow unregistered callers (callers w”  
}

What should we do?

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [February 23, 2024, 1:32pm UTC](https://community.auth0.com/t/log-streams-googleapis-chronicle/128093/2 "2024-02-23T13:32:42Z")

</div>

Hi @renato.coneglian , thanks for posting!

I will try to help.

> [@renato.coneglian](#):
>
> But when using it in Auth0, we receive:

Where do you use this code snippet to call google’s APIs in Auth0? In Actions?

> [@renato.coneglian](#):
>
> “error”: {  
> “code”: “403”,  
> “message”: “Forbidden”,  
> “details”: “{\n “error”: {\n “code”: 403,\n “message”: "Method doesn’t allow unregistered callers (callers w”  
> }

Did you receive this error on the google side?

I think you have to ship the google’s project identifier when calling Google APIs.  
So to connect the client (your script used to call Google’s APIs) with some [quota/billing related identifier](https://cloud.google.com/docs/quotas/set-quota-project).

Something like `GOOGLE_CLOUD_QUOTA_PROJECT` =`<your project ID>`

Please let us now your thoughts!

---

<div class="post-metadata">

**Author:** ![renato.coneglian](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/renato.coneglian/32/55072_2.png) [@renato.coneglian](https://community.auth0.com/u/renato.coneglian)\
**Post date:** [February 23, 2024, 2:01pm UTC](https://community.auth0.com/t/log-streams-googleapis-chronicle/128093/3 "2024-02-23T14:01:25Z")

</div>

Hi Marcelina! Thanks for the answer.

We are trying to send the logs to Chronicle, so we are configuring a Custom Webhook inside Monitoring → Streams.

This erros are appearing inside the Stream Health tab with a Forbidden status.

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/7/3727a4907eef8d9b9883559ba6b5dd7aefb7f731.png)  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/2/b/2b18de03f0ae6347ce7fa87aa15ed1381a1713af.png)

---

<div class="post-metadata">

**Author:** ![renato.coneglian](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/renato.coneglian/32/55072_2.png) [@renato.coneglian](https://community.auth0.com/u/renato.coneglian)\
**Post date:** [February 27, 2024, 1:00pm UTC](https://community.auth0.com/t/log-streams-googleapis-chronicle/128093/4 "2024-02-27T13:00:48Z")

</div>

Solved by Auth0 Support:

Hello Renato,

Thanks for contacting Auth0 Support, my name is Federico Coppede, glad to assist,

It’s not possible to set custom headers with log streams, if you add your api-key to the authorization token input, it will be sent in the Authorization header.

You could add that key as a query string to your URL as explained here:

> **[使用 API 密钥进行身份验证  |  Authentication  |  Google Cloud](https://cloud.google.com/docs/authentication/api-keys?hl=zh-cn)**

[https://eu-chronicle.googleapis.com/v1alpha/projects/xxxxxxx/locations/eu/instances/xxxxxxx/feeds/xxxxxxxx:importPushLogs?key=API\_KEY](https://eu-chronicle.googleapis.com/v1alpha/projects/xxxxxxx/locations/eu/instances/xxxxxxx/feeds/xxxxxxxx:importPushLogs?key=API_KEY)

Let me know how that goes,

Thank you!

–  
Federico Coppede  
Lead, Developer Support Engineer - LatAm, [https://auth0.com](https://auth0.com)

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [February 27, 2024, 1:44pm UTC](https://community.auth0.com/t/log-streams-googleapis-chronicle/128093/5 "2024-02-27T13:44:52Z")

</div>

Thanks so much for sharing!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 12, 2024, 1:45pm UTC](https://community.auth0.com/t/log-streams-googleapis-chronicle/128093/6 "2024-03-12T13:45:31Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
