Ok we will drill down here! : )
forget the complication of layers. I have now established that I have the same problem when I put the maps in separate panels in a dashboard.
simply stated the issue I am having is that when I have more than one map in a dashboard the filters in the maps get messed up.
What I had assumed would happen is that (effectively) I would get the global filter for the dashboard anded with the filter specified in the map.
What appears to be happening is that I get the same filter applied to all maps in the dashboard. This filter is composed as above but just once for one of the panels and so I end up with the same filter for each map.
When I do an inspect on a map (either in the panel or in maps) I don't see the filters at all, which presumably means they are stored separately.
{
"docvalue_fields": [
"src_location"
],
"size": 10000,
"_source": false,
"stored_fields": [
"src_location"
],
"script_fields": {},
"query": {
"bool": {
"must": [],
"filter": [
{
"match_all": {}
},
{
"exists": {
"field": "status"
}
},
{
"match_phrase": {
"status": "success"
}
},
{
"match_phrase": {
"event_source": "SSH"
}
},
{
"geo_bounding_box": {
"src_location": {
"top_left": [
-180,
89
],
"bottom_right": [
180,
-89
]
}
}
},
{
"range": {
"@timestamp": {
"gte": "2021-04-03T23:46:21.085Z",
"lte": "2021-04-04T23:46:21.085Z",
"format": "strict_date_optional_time"
}
}
}
],
"should": [],
"must_not": [
{
"range": {
"src_ip": {
"gte": "130.216.0.0",
"lt": "130.216.255.255"
}
}
}
]
}
}
}
What I am struggling with is that if this is a bug the why has no one else has tripped over this long ago But I can't see what I could be doing wrong.
One of my colleagues was able to reproduce the issue, albeit on the same kibana instance.
We need to see the actual request for the maps in the panel complete with the filters!