Protecting incident files from deletion

The system automatically protects events and files associated with open incidents from deletion. The functionality allows you to save data that may be needed for investigations.

Note

The system only protects data from open incidents from deletion. Data from closed incidents can be deleted.

If the administrator tries to delete such an event or file, a message will appear: “The event is associated with incident N XXXX, deletion is not possible. Delete the incident or disable protection in the settings.”

How to enable protection

By default, deletion protection is disabled.

To enable protection:

  1. Open the config file:

sudo nano /etc/ibatyr/config
  1. Add the following line to the end of the file and save your changes:

PROTECT_EVENTS_WITH_INCIDENTS = True
  1. Restart the server:

ibatyr restart

What actions does it protect against?

Protection blocks the deletion of events and files in the following cases:

  • deleting a monthly shard in the database;

  • manually deleting an event in the web console;

  • auto-cleaning of events according to policy;

  • auto-cleaning of files according to policy;

  • deleting the object and all computer and user data;

  • deleting events and files using the ibatyr cleandata command;

  • deleting events and files using the ibatyr cleanup command.

How to delete a file or event

To delete an event or file:

  • close the incident,

  • delete the incident,

  • disable protection via the config file.