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?