10933 questions

13039 answers

20332 comments

27469 members

0 votes
236 views 1 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
by
Hello,

But is possible remove just a type of register?

For example when I do: eventslog -p -t EVENTS | grep "|SSH|", show all logs about ssh. But I would like remove just the register about SSH.

Thank you.
Regards