-
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
Only log error (don't also index it) if xpack is enabled. #12265
Only log error (don't also index it) if xpack is enabled. #12265
Conversation
Pinging @elastic/stack-monitoring |
4fa3781
to
f2ee95a
Compare
Indexing it would index it into metricbeat-* indices instead of .monitoring-* indices, which are currently not equipped to handle error documents.
f2ee95a
to
1e3ac44
Compare
If we backport to 7.1 / 6.8 I would hope we don't need to backport all the interface changes. I'm a bit worried about unexpected side effects. Would it be possible to have the same behaviour in 6.8 without needing the new interface? |
As an aside:
Do we have this documented anywhere? I can't recall a place where we discuss the actual indexes where data lands. I looked briefly here: https://www.elastic.co/guide/en/elasticsearch/reference/7.1/configuring-metricbeat.html I'm a little on the fence about whether or not we should document the relationship between the various metric shippers and the indexes which they write to, since this feels more like an implementation detail that a user should (hopefully?) be unconcerned with. |
Yes, this is my concern as well, which is why I pinged you first.
I think this should be possible. I'll put up a non-backport PR for 7.1 and we can backport that one to 6.8. |
Yeah, I'm on the fence about this as well. It's definitely an implementation detail but I checked existing docs and we do mention Plus I think it might save users a bit of surprise if we can tell them to expect |
When I was documenting the method to configure ESMS (elastic/stack-docs#318), @pickypg used the existence of certain indices to determine whether I had set things up properly. |
When
xpack.enabled: true
is set on a stack module, the expectation is that the user won't see anymetricbeat-*
indices. Instead users expect to see.monitoring-*
indices.However, metricbeat indexes errors into
metricbeat-*
indices. So in an error situation whenxpack.enabled: true
is set, we don't want to index errors but just log them. That's what this PR fixes for thekibana/stats
metricset.