# Log aggregation

> The logs can be forwarded to a Vector log aggregator by providing a discovery ConfigMap for the aggregator and by enabling the log agent

The logs can be forwarded to a Vector log aggregator by providing a discovery ConfigMap for the aggregator and by enabling the log agent:

```yaml
spec:
  clusterConfig:
    vectorAggregatorConfigMapName: vector-aggregator-discovery
  masters:
    config:
      logging:
        enableVectorAgent: true
  regionServers:
    config:
      logging:
        enableVectorAgent: true
  restServers:
    config:
      logging:
        enableVectorAgent: true
```

Further information on how to configure logging, can be found in [Logging](https://docs.stackable.tech/home/stable/concepts/observability/logging/index.md).
