Freeswitch log

48 views
Skip to first unread message

John

unread,
Sep 2, 2018, 11:37:37 PM9/2/18
to freeswitch-ru
How disable logs ???

I use the command so that after 1 day logs are deleted, but one day has passed they have not removed

i use /usr/bin/find /usr/local/freeswitch/log -name "freeswitch.log.*" -mtime +1 -delete

i need use this command too? kill -HUP `cat /usr/local/freeswitch/run/freeswitch.pid`



Oleg Z.

unread,
Sep 3, 2018, 2:14:17 PM9/3/18
to freeswitch-ru
CentOS6:
my command
/usr/bin/find  /var/log/freeswitch/freeswitch.log.* -mtime +4 -print -exec rm {} \;
i don't use kill -HUP

John

unread,
Sep 3, 2018, 10:14:57 PM9/3/18
to freeswitch-ru
Олег ты просто ввел??

/usr/bin/find  /var/log/freeswitch/freeswitch.log.* -mtime +4 -print -exec rm {} \;

А в конце че?  {} \;

понедельник, 3 сентября 2018 г., 6:37:37 UTC+3 пользователь John написал:
Message has been deleted

ros tel

unread,
Sep 3, 2018, 11:11:50 PM9/3/18
to freeswitch-ru
In switch.conf set loglevel = warning

<configuration name="switch.conf" description="Core Configuration">
  <settings>
...
    <param name="loglevel" value="warning"/>
...
  </settings>
</configuration>

This will reduce the size of the log files several times


понедельник, 3 сентября 2018 г., 8:37:37 UTC+5 пользователь John написал:

ros tel

unread,
Sep 3, 2018, 11:16:16 PM9/3/18
to freeswitch-ru
After rotation, the creation time of the file is equal to the time at which the rotation occurred.
Will be deleted only on the next day.


понедельник, 3 сентября 2018 г., 8:37:37 UTC+5 пользователь John написал:
How disable logs ???
Reply all
Reply to author
Forward
0 new messages