# rotate or purge logs - problem with djigzo.log - general handling

**URL:** <https://community.ciphermail.com/t/rotate-or-purge-logs-problem-with-djigzo-log-general-handling/242>\
**Category:** Gateway\
**Created:** [October 28, 2011, 10:31am UTC](https://community.ciphermail.com/t/rotate-or-purge-logs-problem-with-djigzo-log-general-handling/242 "2011-10-28T10:31:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![matthiasdort1](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@matthiasdort1](https://community.ciphermail.com/u/matthiasdort1)\
**Post date:** [October 28, 2011, 10:31am UTC](https://community.ciphermail.com/t/rotate-or-purge-logs-problem-with-djigzo-log-general-handling/242/1 "2011-10-28T10:31:12Z")

</div>

Helo,

i have tried to rotate the logfile /var/log/djigzo.log. In the result the new  
touched logfie will not be write by the gateway anymore. The problem could  
not be solved with booting the system.

Independent from this, is there any way to purge or rotate the logs via the  
webinterface? I suppose, that the log info will be stored into the postgres  
database? Over the time the logs will be bigger and bigger..

Kind regards

Matthias

---

<div class="post-metadata">

**Author:** ![martijn](https://dub1.discourse-cdn.com/flex017/user_avatar/community.ciphermail.com/martijn/32/127_2.png) [@martijn](https://community.ciphermail.com/u/martijn)\
**Post date:** [October 28, 2011, 10:39am UTC](https://community.ciphermail.com/t/rotate-or-purge-logs-problem-with-djigzo-log-general-handling/242/2 "2011-10-28T10:39:32Z")

</div>

> i have tried to rotate the logfile /var/log/djigzo.log. In the result the new  
> touched logfie will not be write by the gateway anymore. The problem could  
> not be solved with booting the system.

/var/log/djigzo.log is only a symlink to  
/usr/share/djigzo/logs/james.wrapper.log so log rotating wouldn't work.

you can try to restore the symlink:

ln -s /usr/local/djigzo/logs/james.wrapper.log /var/log/djigzo.log

The logs are written using Log4J (a Java library) and not using the  
system loggers.

> Independent from this, is there any way to purge or rotate the logs via the  
> webinterface? I suppose, that the log info will be stored into the postgres  
> database? Over the time the logs will be bigger and bigger..

The log files are automatically rotated. By default max 5 log files of  
10MB each will be created. If you want more or less log files and/or the  
size of the log file should be larger/smaller, you can edit the config file:

/usr/share/djigzo/conf/james/SAR-INF/environment.xml

see part:

\<rotation type="revolving" init="0" max="5"\>  
&nbsp;&nbsp;\<size\>10485760\</size\>  
\</rotation\>

Kind regards,

Martijn Brinkers

> **···**
>
> On 10/28/2011 12:31 PM, matthiasdort wrote:
> 
> --  
> Djigzo open source email encryption

---

<div class="post-metadata">

**Author:** ![matthiasdort1](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@matthiasdort1](https://community.ciphermail.com/u/matthiasdort1)\
**Post date:** [October 28, 2011, 11:41am UTC](https://community.ciphermail.com/t/rotate-or-purge-logs-problem-with-djigzo-log-general-handling/242/3 "2011-10-28T11:41:55Z")

</div>

> Fr Okt 28 2011 12:39:32 CEST von "Martijn Brinkers" \<martijn(a)djigzo.com\>  
> Betreff: Re: rotate or purge logs - problem with djigzo.log  
> -general handling
> 
> > i have tried to rotate the logfile /var/log/djigzo.log. In the result the  
> > new  
> > touched logfie will not be write by the gateway anymore. The problem could  
> > not be solved with booting the system.
> 
> /var/log/djigzo.log is only a symlink to  
> /usr/share/djigzo/logs/james.wrapper.log so log rotating wouldn't work.
> 
> you can try to restore the symlink:
> 
> ln -s /usr/local/djigzo/logs/james.wrapper.log /var/log/djigzo.log
> 
> The logs are written using Log4J (a Java library) and not using the  
> system loggers.
> 
> > Independent from this, is there any way to purge or rotate the logs via the  
> > webinterface? I suppose, that the log info will be stored into the  
> > postgres  
> > database? Over the time the logs will be bigger and bigger..
> 
> The log files are automatically rotated. By default max 5 log files of  
> 10MB each will be created. If you want more or less log files and/or the  
> size of the log file should be larger/smaller, you can edit the config  
> file:
> 
> /usr/share/djigzo/conf/james/SAR-INF/environment.xml
> 
> see part:
> 
> \<rotation type="revolving" init="0" max="5"\>  
> \<size\>10485760\</size\>  
> \</rotation\>

Oh :-o / thank you!

I have not seen, that it was a symbolic link. Sometimes i have tomatos on my  
eyes. 🙂

> **···**
>
> > On 10/28/2011 12:31 PM, matthiasdort wrote:
