# Log aggregation

> Forward logs to a Vector aggregator by enabling the log agent and specifying a discovery ConfigMap.

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
  brokers:
    config:
      logging:
        enableVectorAgent: true
  coordinators:
    config:
      logging:
        enableVectorAgent: true
  historicals:
    config:
      logging:
        enableVectorAgent: true
  middleManagers:
    config:
      logging:
        enableVectorAgent: true
  routers:
    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).
