cells-enterprise admin clean logs

./cells-enterprise 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-enterprise admin clean logs --service=log --threshold=50MB

./cells-enterprise 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

      --broker string                           Pub/sub service for events between services (currently nats only) (default "memory")
      --nats_address string                     NATS server address (default ":4222")
      --nats_cluster_address string             NATS server cluster address
      --nats_cluster_routes string              NATS server cluster routes
      --nats_monitor_port int                   Expose nats monitoring endpoints on a given port (default 8222)
      --nats_streaming_cluster_bootstrap        NATS streaming bootstrap cluster
      --nats_streaming_cluster_id string        NATS streaming cluster ID (default "cells")
      --nats_streaming_cluster_node_id string   NATS streaming cluster node id
      --nats_streaming_cluster_peers string     NATS streaming list of cluster peers
      --nats_streaming_clustered                NATS streaming clustered
      --nats_streaming_store string             NATS streaming store type (default "MEMORY")
      --port_broker int                         Port used to start a broker discovery service (default 8003)
      --port_registry int                       Port used to start a registry discovery service (default 8000)
      --registry string                         Registry used to manage services (currently nats only) (default "memory")
      --transport string                        Transport protocol for RPC (default "grpc")


Auto generated by Pydio Cells Enterprise Distribution v3.0.2 on 11-Nov-2021
Back to top