-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Elastic Agent] Agent datastreams are conflicting with Filebeat setup #19369
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@michalpristas What I see above in the error comes probably from the agent / Filebeat run through the Agent. Is Agent somehow interferring with other filebeat binaries? |
I am confused by this. @mostlyjason Could you share the YML configuration that you are using for filebeat? |
I'm just using the default filebeat.yml with the cloud.id and and cloud.auth pasted in. Seems to be reproducable since I tried it with a fresh 8.0 cluster on staging, and a fresh directory for filebeat and elastic agent. The error message is generated by standalone filebeat. You can see I'm running the setup command in the directory where I extracted the filebeat tar.gz. |
@mostlyjason i'm confused by this as well. are you running agent + filebeat (independent of filebeat included in agent) on the same machine and then try to configure the standalone one? |
So, taking a step back and looking more deeply in the error messages.
I do have a theory, there is a conflict between the ILM policy in ingest manager and the one shipped with Filebeat, what point me to this is the datastream error I am not sure if this is an error with Agent / Filebeat but instead with how we deal with packages, @michalpristas Can you try to reproduce the above use case? |
Thanks @ph thats a helpful breakdown. @michalpristas yes what you said is correct |
@michalpristas Lets try to reproduce on our hand, but I suspect the problem isn't on the agent and the Filebeat side but in EPM. |
I have found this issue with Metricbeat too:
Once this error appears Metricbeat stops ingesting, so it could affect working deployments where giving a try to the Agent. Steps to reproduce:
Then original metricbeat cannot ingest anymore. To reproduce this it is not I can reproduce it with this metricbeat configuration:
And elastic agent on standalone mode (not managed by fleet), this configuration seems to be enough:
|
@jsoriano I am going to reproduce it thanks for the config. |
@jsoriano The error that you see:
This is in the metricbeat log? |
Yes, this is in the Metricbeat log. |
@jsoriano Just to clarify the steps. In your reproducable case, did you ever run kibana / ingest manager? |
Yes, I run Kibana and ES with the 8.0.0-SNAPSHOTs, and Metricbeat and Agent built from master. Not sure though if I opened the ingest manager UI, I think I didn't do it on my last try with the posted configurations, but I could try again to confirm. Are you having problems to reproduce this? |
Checking with @blakerouse we aren't sure how this is possible yet. |
assigning me as i'm playing with it |
I've haven't been able to reproduce it, looking at the error its maybe a package that we install via EPM. :( |
An update of this, I have tried to reproduce it again with master and with 7.x, good news is that with 7.x this issue doesn't happen to me. So maybe this is caused by some breaking change in Beats/ES/Kibana for 8.x and we are good with 7.x, but we should be careful in case we backport what is causing this. To reproduce this I am using Elasticsearch and Kibana from the scenario in https://github.com/elastic/integrations/tree/master/testing/environments. I don't open Kibana or install any package on any moment. For master:
Note: running
For 7.x:
|
not sure what changed but today i'm hitting some race on ^^^ edit: i may have a clue actually |
@jsoriano try latest master for build issue, should be ok now |
It builds now, yes, thanks! |
Can we close this? |
This issue still happens with master, are we ok with this? It doesn't seem to affect 7.9/beta1, so in any case I think we can remove the |
If it still happens in master, we should keep it open and continue investigating. I would really like to understand why it happens so we can figure out if 7.x is also effected. |
Let's keep it open. I am worried, are we missing a commit in 7.9? |
tried to repro today without luck (using cloud 8.0.0 snapshot for ES and kibana) but i found this which looks exactly like the same issue and their fix here not sure what we can fix as this appears to manifests on ILM setup while trying to check whether alias exists |
I can confirm that I cannot reproduce this issue anymore with latest 8.0 snapshots. And I agree that elastic/kibana#69061 looks like the same issue. So let's close this one. Thanks for the investigation! |
While trying to set up filebeat in my 8.0 snapshot cluster and I got this error message. Is it possible filebeat modules are conflicting with agent?
For confirmed bugs, please report:
@EricDavisX is it worth having a test case to make sure that Elastic Agent is compatible with Filebeat running on the same cluster? I imagine a large % of customers use Beats.
The text was updated successfully, but these errors were encountered: