Fortinet white logo
Fortinet white logo

CLI Reference

db rebuild

db rebuild

Use this command to clean and rebuild the FortiWeb appliance’s database for disklog. Please note in HA mode, running execute db rebuild on master appliance will take effect on all slaves simultaneously.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

For some cases, it would take a long time to complete database rebuild depending on how many logs the system has. While the database is rebuilding, new generated logs are postponed to be written to the database so the newly generated logs are not available immediately on GUI. The logs are all saved in log files. No logs would be lost.

Syntax

execute db rebuild

Related topics

db rebuild

db rebuild

Use this command to clean and rebuild the FortiWeb appliance’s database for disklog. Please note in HA mode, running execute db rebuild on master appliance will take effect on all slaves simultaneously.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

For some cases, it would take a long time to complete database rebuild depending on how many logs the system has. While the database is rebuilding, new generated logs are postponed to be written to the database so the newly generated logs are not available immediately on GUI. The logs are all saved in log files. No logs would be lost.

Syntax

execute db rebuild

Related topics