Kibana logs is full

can anyone help me how to cleanup the kibana.log files under /var/log/kibana directory. kibana.log filled my diskspace and no space to write the logs.

Thanks,
pradeep

cat /dev/null > kibana.log

This will empty the file if you are on a system that supports cat. For example if you have filebeat logs -this is how you can delete your old logs

curl -XDELETE 'localhost:9200/filebeat-2022*?pretty'

thanks. It worked. Just want to make sure its safe to delete the log.

better to setup something in logrotate which can take care rotating this log.

create a file /etc/logrotate.d/kibana and add following

/var/log/kibana/kibana.log {
missingok
weekly
rotate 4
compress
create 644 root root
}

this will rotate your kibana log once a week and keep four such log. rest will get deleted.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.