# Elastic Agent error out with log\_group\_arn, log\_group\_name and log\_group\_name\_prefix config cannot all be empty

**URL:** <https://discuss.elastic.co/t/elastic-agent-error-out-with-log-group-arn-log-group-name-and-log-group-name-prefix-config-cannot-all-be-empty/339414>\
**Category:** Elasticsearch\
**Created:** [July 27, 2023, 9:56am UTC](https://discuss.elastic.co/t/elastic-agent-error-out-with-log-group-arn-log-group-name-and-log-group-name-prefix-config-cannot-all-be-empty/339414 "2023-07-27T09:56:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![The2](https://avatars.discourse-cdn.com/v4/letter/t/9dc877/32.png) [@The2](https://discuss.elastic.co/u/The2)\
**Post date:** [July 27, 2023, 9:56am UTC](https://discuss.elastic.co/t/elastic-agent-error-out-with-log-group-arn-log-group-name-and-log-group-name-prefix-config-cannot-all-be-empty/339414/1 "2023-07-27T09:56:01Z")

</div>

Hello,

I'm trying to use elastic-agent to integrate with AWS to fetch cloudwatch logs. However i'm facing this issue:

> Unit state changed aws-cloudwatch-default-aws-cloudwatch-cloudwatch-481de7b4-7c2d-4fbf-9156-3acdd53e2ee7 (STARTING-\>FAILED): [failed to reload inputs: 1 error: Error creating runner from config: log\_group\_arn, log\_group\_name and log\_group\_name\_prefix config parametercannot all be empty accessing config]

This is really weird because i swear i've set the log\_group\_arn but this error keep showing up.

For example. this is the `Preview API Request` i'm sending for the integrator:

> "cloudwatch-aws-cloudwatch": {  
> "enabled": true,  
> "streams": {  
> "aws.cloudwatch\_logs": {  
> "enabled": true,  
> "vars": {  
> "start\_position": "beginning",  
> "log\_group\_name": "/aws/lambda/Testing",  
> "api\_timeput": "120s",  
> "log\_stream\_prefix": "",  
> "scan\_frequency": "1m",  
> "tags": [  
> "forwarded",  
> "aws-cloudwatch-logs"  
> ],  
> "log\_group\_arn": "arn:aws:logs:ap-southeast-1:\<account\_number\>:log-group:/aws/lambda/Testing:\*",  
> "api\_sleep": "200ms",  
> "data\_stream.dataset": "generic",  
> "log\_streams": [  
> "2023/07/25/[$LATEST]TEST"  
> ],  
> "region\_name": "ap-southeast-1",  
> "preserve\_original\_event": true

Any kind soul has experience, or can help me with debugging this issue?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 24, 2023, 9:56am UTC](https://discuss.elastic.co/t/elastic-agent-error-out-with-log-group-arn-log-group-name-and-log-group-name-prefix-config-cannot-all-be-empty/339414/2 "2023-08-24T09:56:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
