When trying to create a custom log integration for an elastic-agent this error pops up:
Datastreams matching "logs-custom.log-*" already exist and are not managed by this package, force flag is required
After some research, I found out that it specifically has to do with the dataset. I am trying to use custom.log as the dataset. Which is the way Elastic's naming convention says how it should be done, but the error still shows. I don't know what the error means with: "are not managed by this package". Why would this be an issue and how can I solve it. Because on our other environment this does not occur?
P.S. the force flag is not a preferred option because of automation.