cells admin clean logs

Truncate log indexes to a given size



Appart from rotated log files, logs are indexed inside an on-file database for high-performance analysis and search. These indexes are rotated (50MB size by default) and you can use this command to remove the oldest index files. The most recent index will always be kept. Specify the size threshold using bytes unit: 50MB, 5mb, 1GB, etc...


Truncate log indexes to 50MB :

$ ./cells admin clean logs --service=log --threshold=50MB

./cells admin clean logs [flags]


  -h, --help               help for logs
  -s, --service string     Log service to truncate (use log by default) (default "log")
  -t, --threshold string   Size of logs to keep, specify in bytes (e.g 50MB, 1GB, ...)

Options inherited from parent commands

      --advertise_address string   Default advertise address (default "")
      --broker string              Pub/sub service for events between services (default "grpc://:8030")
      --config string              Configuration storage URL. Supported schemes: etcd|etcd+tls|file|grpc|mem|vault|vaults (default "file:///home/teamcity/.config/pydio/cells/pydio.json")
      --discovery string           Registry and pub/sub (default "grpc://:8030")
      --registry string            Registry used to contact services (default "grpc://:8030")


Auto generated by Pydio Cells Home Edition v4.2.1 on 22-May-2023
Back to top