FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
728 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 anonymous

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 anonymous
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