5182 questions

6320 answers

10137 comments

6255 members

0 votes
61 views 0 comments
by
Hello,

Is there a way from the command line to empty or rotate the eventlogs (/usr/bin/eventslog)?

Rgds,

Matt

1 Answer

0 votes
by

Hello,

You can remove all logs by executing the following commands:

  • Go to log folder using command: cd /log/
  • Run command: rm log.db
  • Run command: /etc/init.d/eventslog restart

You cannot change in which file the logs will be saved by default, you can only copy log.db file contents to another file.

Regards.

Best answer