# CloudWatchLogsDataSourceConfig

Configuration for CloudWatch Logs data source.

- Source: [`aws-bedrockagentcore/lib/evaluation/types.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/evaluation/types.ts#L268)
- Type last changed: v2.255.0 · 19 May 2026

## Example

```ts
const evaluation = new agentcore.OnlineEvaluationConfig(this, 'MyEvaluation', {
  onlineEvaluationConfigName: 'my_evaluation',
  evaluators: [
    agentcore.EvaluatorSelector.builtin(agentcore.BuiltinEvaluator.HELPFULNESS),
    agentcore.EvaluatorSelector.builtin(agentcore.BuiltinEvaluator.CORRECTNESS),
  ],
  dataSource: agentcore.DataSourceConfig.fromCloudWatchLogs({
    logGroupNames: ['/aws/bedrock-agentcore/my-agent'],
    serviceNames: ['my-agent.default'],
  }),
});
```

## Properties

- `logGroupNames`: string[] (required) — The list of CloudWatch log group names to monitor for agent traces.

- `serviceNames`: string[] (required) — The list of service names to filter traces within the specified log groups. Used to identify relevant agent sessions.

  For agents hosted on AgentCore Runtime, service name follows the format:
  `<agent-runtime-name>.<agent-runtime-endpoint-name>`
