# How to mask PII in Auth0 logs?

**URL:** <https://community.auth0.com/t/how-to-mask-pii-in-auth0-logs/99771>\
**Category:** Get Help\
**Tags:** insights-monitoring, tenant-log-streams\
**Created:** [February 6, 2023, 3:33am UTC](https://community.auth0.com/t/how-to-mask-pii-in-auth0-logs/99771 "2023-02-06T03:33:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jemdelcarmen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jemdelcarmen/32/42474_2.png) [@jemdelcarmen](https://community.auth0.com/u/jemdelcarmen)\
**Post date:** [February 6, 2023, 3:33am UTC](https://community.auth0.com/t/how-to-mask-pii-in-auth0-logs/99771/1 "2023-02-06T03:33:18Z")

</div>

Hi,

Currently we are streaming logs directly into Splunk and that works great.

Recently however, there has been a request to remove or mask personally identifiable information from the logs, like names and email addresses.

What is the simplest way to achieve this?

---

<div class="post-metadata">

**Author:** ![yoav](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yoav/32/26050_2.png) [@yoav](https://community.auth0.com/u/yoav)\
**Post date:** [February 24, 2023, 4:58pm UTC](https://community.auth0.com/t/how-to-mask-pii-in-auth0-logs/99771/2 "2023-02-24T16:58:24Z")

</div>

1. List item

Hi @jemdelcarmen

There are a few approaches you can take currently:

- filter out any logs that you do not need and might contain the PII information you mentioned above - [Log Stream Filters](https://auth0.com/docs/customize/log-streams/event-filters)
- stream the logs to a data lake and then transform the data / mask the relevant fields before sending them to Splunk
- I wonder if there is a way to mask these fields on the Splunk side when the logs are streamed over

I hope this helps

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 27, 2023, 8:37am UTC](https://community.auth0.com/t/how-to-mask-pii-in-auth0-logs/99771/3 "2023-02-27T08:37:10Z")

</div>

Thank you @yoav for helping on this one!

---

<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 13, 2023, 8:37am UTC](https://community.auth0.com/t/how-to-mask-pii-in-auth0-logs/99771/4 "2023-03-13T08:37:32Z")

</div>

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