# Disable logs on files

**URL:** <https://forum.genieacs.com/t/disable-logs-on-files/817>\
**Category:** Uncategorized\
**Created:** [June 2, 2020, 5:30pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817 "2020-06-02T17:30:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rogerioalves](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rogerioalves/32/613_2.png) [@rogerioalves](https://forum.genieacs.com/u/rogerioalves)\
**Post date:** [June 2, 2020, 5:30pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/1 "2020-06-02T17:30:14Z")

</div>

does anyone know how to disable logs saved in /var /log/genieacs/.

To save space and processing.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [June 2, 2020, 6:15pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/2 "2020-06-02T18:15:09Z")

</div>

You don’t say which version of GenieACS you are using, nor how you are starting the processes.

We still use v1.1 and so we redirect the console logs to /var/log/genieacs via \>\>.

Logs are incredibly powerful to figure out what went wrong. I suggest you leave them enabled and instead setup log rotation.

---

<div class="post-metadata">

**Author:** ![rogerioalves](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rogerioalves/32/613_2.png) [@rogerioalves](https://forum.genieacs.com/u/rogerioalves)\
**Post date:** [June 2, 2020, 6:38pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/3 "2020-06-02T18:38:29Z")

</div>

Sorry, I use version 1.2. The logs are really good, so I would like to disable and enable them only when necessary.

---

<div class="post-metadata">

**Author:** ![rogerioalves](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rogerioalves/32/613_2.png) [@rogerioalves](https://forum.genieacs.com/u/rogerioalves)\
**Post date:** [June 2, 2020, 6:45pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/4 "2020-06-02T18:45:14Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/d315e29cdb8a22b004118951b53bd1234b28ac0a.png)

I deleted it a short time ago, as I have many devices they grow very fast.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [June 2, 2020, 8:13pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/5 "2020-06-02T20:13:28Z")

</div>

200k isn’t much data 😃. I do very extensive logging in our environment and our cwmp log file gets to about 180m per day, but compresses down to 12m.

```
$ gzip --list /var/log/genieacs/genieacs-cwmp.log-20200602.gz
     compressed uncompressed ratio uncompressed_name
       12231048 180150236 93.2% /var/log/genieacs/genieacs-cwmp.log-20200602
```

---

<div class="post-metadata">

**Author:** ![rogerioalves](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rogerioalves/32/613_2.png) [@rogerioalves](https://forum.genieacs.com/u/rogerioalves)\
**Post date:** [June 2, 2020, 8:25pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/6 "2020-06-02T20:25:54Z")

</div>

![image](https://canada1.discourse-cdn.com/flex035/uploads/genieacs/original/1X/be154e17b3e2ca3979e56c86bde56667bd75fd7a.png)

I had just erased it, it was 161mb, now it’s 425mb.

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [June 3, 2020, 7:58pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/7 "2020-06-03T19:58:18Z")

</div>

I don’t use 1.2 so you will have to dig in, but you can disable access logging. look for a param like cwmp\_access\_log\_file

---

<div class="post-metadata">

**Author:** ![rogerioalves](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/rogerioalves/32/613_2.png) [@rogerioalves](https://forum.genieacs.com/u/rogerioalves)\
**Post date:** [June 5, 2020, 2:33pm UTC](https://forum.genieacs.com/t/disable-logs-on-files/817/8 "2020-06-05T14:33:47Z")

</div>

I did it, but I didn’t know if it was the right way.
