Open a file in vim
then execute a command
:%s/^\s*/&&
from here
Jira has its own log rotate
However, it doesn't delete old files.
It can be done with crontab though.
#### remove old jira log files longer 180 days
30 2 * * * /usr/bin/find /opt/atlassian/servicedesk/logs/ -maxdepth 1 -type f -mtime +180 -exec rm -rf {} \;
45 2 * * * /usr/bin/find /opt/atlassian/servicedesk/logs/ -maxdepth 1 -type f -mtime +6 -exec gzip -q {} \;
Before:
/etc/logrotate.d/logs
/mnt/shared/project/var/log/*.log
}
After:
1) create a separate additional logrotate conf file /etc/logrotate.d/logs_erp with content below (increased twice rotate 30 -> 60 and plus delaycompress):
cause of the issue in my case --no-dev :
php7.4 /usr/local/bin/composer2 dump-autoload --no-dev --optimize
after running php7.4 /usr/local/bin/composer2 dump-autoload --optimize
disable/enable module was working