-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Monitoring] Duplicated pipelines on the Pipelines overview page #49462
Comments
Pinging @elastic/stack-monitoring (Team:Monitoring) |
I can't reproduce this issue for some reason. Can you please test and see if you have the same behavior here In Management > Pipelines eg: http://localhost:5601/app/kibana#/management/logstash/pipelines Also, see if you get any duplicates by just running this query in Dev Tools: (I already pre-filled it with time range from your description above) GET .monitoring-logstash-*/_search
{
"size": 0,
"_source": ["aggregations.check.buckets.pipelines_nested.by_pipeline_id.buckets"],
"query": {
"bool": {
"filter": [
{
"range": {
"logstash_stats.timestamp": {
"format": "epoch_millis",
"gte": 1572254116200,
"lte": 1572257716200
}
}
}
]
}
},
"aggs": {
"check": {
"date_histogram": {
"field": "logstash_stats.timestamp",
"fixed_interval": "10m"
},
"aggs": {
"pipelines_nested": {
"nested": {
"path": "logstash_stats.pipelines"
},
"aggs": {
"by_pipeline_id": {
"terms": {
"field": "logstash_stats.pipelines.id",
"size": 1000
},
"aggs": {
"by_pipeline_hash": {
"terms": {
"field": "logstash_stats.pipelines.hash",
"size": 1000
},
"aggs": {
"by_ephemeral_id": {
"terms": {
"field": "logstash_stats.pipelines.ephemeral_id",
"size": 1000
},
"aggs": {
"events_stats": {
"stats": {
"field": "logstash_stats.pipelines.events.out"
}
},
"throughput": {
"bucket_script": {
"script": "params.max - params.min",
"buckets_path": {
"min": "events_stats.min",
"max": "events_stats.max"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
} I'm also wondering if it was a fluke from upgrading. Have you tried deleting your indices via: ps: I think this can also happen if you run the same logstash again, but with a different data source via |
Thanks again for opening this issue! We did recently make changes here and this feedback is excellent and very helpful! I'm not sure if you read through the PR you linked (great find, btw!), but we've modified the way we query for the list of pipelines to avoid performance issues when loading that page with many, many pipelines. Can you run the following query and report back on the results?
|
FYI: I will not update to the new 7.4.2 version, until i get your clearance.' Running your query (as is) on my test environment yields two buckets for each pipeline (looking at hash or id) - ephemeral_id is unique per bucket. My production environment looks identical, except that each pipeline pair (yes two of each there too) are Looking at the Monitoring -> Pipelines page in Kibana: production environment On both environments, going to Monitoring -> Nodes (Logstash) -> Pipelines, are still correct (1 pipeline of each, and data gets shown with timetamp Worth noting again, both my test and production environments are identical, besides naming, ip addresses, vlan and such, and the actual number of pipelines (test: 20, prod: 36). |
@magnuslarsen Awesome, thanks so much for the data! It looks like this is a legit bug! We're not properly de-duping based on the For now, there is not much you can do, but I'll get a PR up for this soon! |
Kibana version:
7.4.1
Elasticsearch version:
7.4.1
Server OS version:
18.04.3 LTS
Browser version:
Firefox 70, Chromium Version 78.0.3904.70 (Official Build) snap (64-bit)
Browser OS version:
Kubuntu 19.10
Original install method (e.g. download page, yum, from source, etc.):
DEB packages
Describe the bug:
On the monitoring page, under pipelines, ALL pipelines are duplicated n amount times. On my test environment i see 4 times duplication, and on my production environment i see 3 duplicate pipelines.
Steps to reproduce:
I am actually not entirely sure...
In my test environment i searched after a pipeline, and after clearing the search, i saw duplicates.
In my production environment, i simply upgraded Elastic stack (from 7.4.0), and went to the page, discovering duplicates
Expected behavior:
Only see one of each pipeline.
Screenshots (if relevant):
Errors in browser console (if relevant):
No errors in the console, however looking at the pipeline request, the response contains the duplicate results:
Request:
Response:
Provide logs and/or server output (if relevant):
No logs in Kibana log
Any additional context:
Both environments worked in 7.4.0, and was upgraded from that version to 7.4.1. Only after the 7.4.1 upgrade, the duplication started.
Without knowing it, this change may have brought it up: #47154
If i can help with anything, don't hesitate to message me :)
The text was updated successfully, but these errors were encountered: