# Log users

**URL:** <https://forum.pritunl.com/t/log-users/1320>\
**Category:** Pritunl VPN\
**Created:** [August 16, 2023, 10:45am UTC](https://forum.pritunl.com/t/log-users/1320 "2023-08-16T10:45:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristian](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cristian](https://forum.pritunl.com/u/cristian)\
**Post date:** [August 16, 2023, 10:45am UTC](https://forum.pritunl.com/t/log-users/1320/1 "2023-08-16T10:45:15Z")

</div>

it is possible to delete the logs where there are the public ip of the users connected in vpn?

or through a script act in the mongodb and change all public IPs with a fake IP assigned in a variable

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [August 16, 2023, 5:45pm UTC](https://forum.pritunl.com/t/log-users/1320/2 "2023-08-16T17:45:49Z")

</div>

There’s no functionality in Pritunl to disable logging.

---

<div class="post-metadata">

**Author:** ![cristian](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cristian](https://forum.pritunl.com/u/cristian)\
**Post date:** [August 16, 2023, 6:06pm UTC](https://forum.pritunl.com/t/log-users/1320/3 "2023-08-16T18:06:28Z")

</div>

Ok and possibile use a script for chance pubblic ip in the mongodb?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [August 17, 2023, 4:10am UTC](https://forum.pritunl.com/t/log-users/1320/4 "2023-08-17T04:10:15Z")

</div>

Some of the logs also exist on the server. Scripts could be written to modify both but the functionality isn’t in Pritunl.

---

<div class="post-metadata">

**Author:** ![cristian](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cristian](https://forum.pritunl.com/u/cristian)\
**Post date:** [August 17, 2023, 5:29am UTC](https://forum.pritunl.com/t/log-users/1320/5 "2023-08-17T05:29:30Z")

</div>

> [@zach](#):
>
> could

indeed, could you tell me the location and the files that can be deleted so that I can create a script to insert in the crontab that I will run every minute. Then I was wondering if I can also include the / temp folder in the script in order to delete old server confs that are no longer used (except those that are logically in use). .

I add, not being very good with mongodb, I ask those who know how to do it, a small script that replaces the client’s public IP address in the db with a fantasy one. Thank you
