Skip to content

AWS Logs Custom integration - log_stream_prefix key with a typo #3608

@arielromeo

Description

@arielromeo

Hi All,

I'm using elastic.co hosted solution, the way to reproduce the error is:

  1. Create an Agent policy
  2. Add Custom AWS Log package/integration.
  3. Enable "Collect Logs from CloudWatch"
  4. Enter a "Log group ARN", "Region Name" and "Log Stream Prefix"
  5. Save and apply.

After doing that, you will notice that property "Log Stream Prefix" is not used. The reason seems to be the following one:

There exist a key mismatch between the field manifest for log_streamS_prefix (streams in plural) defined in manifest (

) and log_stream_prefix (stream in singular) used in the template file:

The workaround I'm using right now is to do what was described in steps 2-4 using the API (POST, api/fleet/package_policies) and push my package with both keys in vars section of the json sent.

I hope you guys can take this and fix it soon in reward all the hours I spent tracing this bug. :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions