stormpython / heatmap

Heatmap Plugin for Kibana 4
MIT License
55 stars 13 forks source link

Issues with filters #30

Closed jimmyjones2 closed 8 years ago

jimmyjones2 commented 8 years ago

If I use a filter, it still shows cells even when the filer returned no results:

kbn-heatmap-filter

Also scale should just have 1 colour in this example

stormpython commented 8 years ago

@jimmyjones2 Sorry for the delay in responding. For the second problem, you can adjust the number of colors for the scales in the legend. The minimum number is 3 colors.

As for the the filters, you could post a screenshot of the results in the spy panel, so I have an understanding of what elasticsearch is returning.

jimmyjones2 commented 8 years ago
{
  "took": 120,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "failed": 0
  },
  "hits": {
    "total": 29223,
    "max_score": 0,
    "hits": []
  },
  "aggregations": {
    "2": {
      "doc_count_error_upper_bound": 0,
      "sum_other_doc_count": 92,
      "buckets": [
        {
          "3": {
            "buckets": {
              "DestinationIp: 192.168.234.255": {
                "doc_count": 2
              },
              "DestinationIp: 192.168.231.1": {
                "doc_count": 0
              }
            }
          },
          "key": 137,
          "doc_count": 19
        },
        {
          "3": {
            "buckets": {
              "DestinationIp: 192.168.234.255": {
                "doc_count": 0
              },
              "DestinationIp: 192.168.231.1": {
                "doc_count": 0
              }
            }
          },
          "key": 80,
          "doc_count": 8
        },
        {
          "3": {
            "buckets": {
              "DestinationIp: 192.168.234.255": {
                "doc_count": 0
              },
              "DestinationIp: 192.168.231.1": {
                "doc_count": 0
              }
            }
          },
          "key": 5355,
          "doc_count": 8
        },
        {
          "3": {
            "buckets": {
              "DestinationIp: 192.168.234.255": {
                "doc_count": 0
              },
              "DestinationIp: 192.168.231.1": {
                "doc_count": 0
              }
            }
          },
          "key": 67,
          "doc_count": 5
        },
        {
          "3": {
            "buckets": {
              "DestinationIp: 192.168.234.255": {
                "doc_count": 1
              },
              "DestinationIp: 192.168.231.1": {
                "doc_count": 0
              }
            }
          },
          "key": 138,
          "doc_count": 4
        }
      ]
    }
  }
}
jimmyjones2 commented 8 years ago

@stormpython No worries, thanks for taking a look. Let me know if you need more details.

stormpython commented 8 years ago

@jimmyjones2 so by no results here, I am guessing you mean when results come back as zeros. Currently, zeros are included in the bucket count and so they are counted by the visualization and show up as a certain color.

I think this issue is the same as #36, so I will close this one and look into an option which can exclude zeros from the count.