Skip to content
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

Issues with filters #30

Closed
jimmyjones2 opened this issue May 26, 2016 · 4 comments
Closed

Issues with filters #30

jimmyjones2 opened this issue May 26, 2016 · 4 comments

Comments

@jimmyjones2
Copy link

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
Copy link
Owner

@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
Copy link
Author

{
  "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
Copy link
Author

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

@stormpython
Copy link
Owner

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants