# Set rules for logout

**URL:** <https://community.auth0.com/t/set-rules-for-logout/51803>\
**Category:** Get Help\
**Tags:** dashboard, rules, logout\
**Created:** [October 19, 2020, 5:15pm UTC](https://community.auth0.com/t/set-rules-for-logout/51803 "2020-10-19T17:15:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jason10/32/12805_2.png) [@jason10](https://community.auth0.com/u/jason10)\
**Post date:** [October 19, 2020, 5:15pm UTC](https://community.auth0.com/t/set-rules-for-logout/51803/1 "2020-10-19T17:15:31Z")

</div>

Hey,

I currently can trigger rules if a user logs in or signs up via the rules on the dashboard.

How can I do so for logouts?

Thanks

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 19, 2020, 11:28pm UTC](https://community.auth0.com/t/set-rules-for-logout/51803/3 "2020-10-19T23:28:01Z")

</div>

Hi @jason10,

There isn’t currently a logout hook/rule.

You will have to set this up yourself, using your logs.

You can do this with log streaming. For example, you can stream your logs to AWS eventbridge, and trigger a lambda function that will do whatever you like. You can use this same theory to create a webhook from any action that creates a log in auth0.

[https://auth0.com/docs/logs/streams/stream-logs-to-amazon-eventbridge](https://auth0.com/docs/logs/streams/stream-logs-to-amazon-eventbridge)

---

<div class="post-metadata">

**Author:** ![jason10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jason10/32/12805_2.png) [@jason10](https://community.auth0.com/u/jason10)\
**Post date:** [October 20, 2020, 9:09am UTC](https://community.auth0.com/t/set-rules-for-logout/51803/4 "2020-10-20T09:09:29Z")

</div>

Hey Dan,

Thanks for the reply, this is as I feared.

I don’t know about anyone else but I would prefer the logs to export not in folders but simply in an array - is this possible?

Also, the logs don’t send session ID do they? Or is there a way to include it?

---

<div class="post-metadata">

**Author:** ![jason10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jason10/32/12805_2.png) [@jason10](https://community.auth0.com/u/jason10)\
**Post date:** [October 20, 2020, 10:11am UTC](https://community.auth0.com/t/set-rules-for-logout/51803/6 "2020-10-20T10:11:54Z")

</div>

Thanks, this worked.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 20, 2020, 4:00pm UTC](https://community.auth0.com/t/set-rules-for-logout/51803/7 "2020-10-20T16:00:50Z")

</div>

Great! I also sent you a DM about for some follow up.

---

<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:** [November 9, 2020, 9:30pm UTC](https://community.auth0.com/t/set-rules-for-logout/51803/8 "2020-11-09T21:30:21Z")

</div>

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