# Specifying \_nodes by attribute is broken

**URL:** <https://discuss.elastic.co/t/specifying--nodes-by-attribute-is-broken/41234>\
**Category:** Elasticsearch\
**Created:** [February 9, 2016, 12:44am UTC](https://discuss.elastic.co/t/specifying--nodes-by-attribute-is-broken/41234 "2016-02-09T00:44:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdharrington7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bdharrington7/32/5515_2.png) [@bdharrington7](https://discuss.elastic.co/u/bdharrington7)\
**Post date:** [February 9, 2016, 12:44am UTC](https://discuss.elastic.co/t/specifying--nodes-by-attribute-is-broken/41234/1 "2016-02-09T00:44:30Z")

</div>

I'm trying to filter my nodes from the \_nodes endpoint as in this example:

[https://www.elastic.co/guide/en/elasticsearch/reference/1.7/cluster.html#cluster-nodes](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/cluster.html#cluster-nodes)

Can anyone confirm that this actually works?

My setup consists of 3 master nodes (master = true, data = false), and 6 data nodes (master = false, data = true)

I have attributes coming back from my `_nodes` endpoint like so:

```
{
  "cluster_name": "gravity-es-prod03",
  "nodes": {
    "nu_34ob4RwCnaiDlD0vguA": {
      ...
      "version": "1.7.4",
      "build": "0d3159b",
      "attributes": {
        "http.enabled": "true",
        "data": "false",
        "master": "true"
      },

```

However, when I execute this: `http://my-elasticsearch-url:9200/_nodes/master:false`

I get no nodes back, but

`http://my-elasticsearch-url:9200/_nodes/master:*false*`

gets all master nodes back.

---

<div class="post-metadata">

**Author:** ![bdharrington7](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bdharrington7/32/5515_2.png) [@bdharrington7](https://discuss.elastic.co/u/bdharrington7)\
**Post date:** [February 10, 2016, 11:53pm UTC](https://discuss.elastic.co/t/specifying--nodes-by-attribute-is-broken/41234/2 "2016-02-10T23:53:12Z")

</div>

Ok so it looks like you can't really filter on the data or master attributes (maybe because it's boolean values?) but I added custom attributes:

```auto
node.type: client

```

and I can filter by that

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:17pm UTC](https://discuss.elastic.co/t/specifying--nodes-by-attribute-is-broken/41234/3 "2017-07-05T23:17:24Z")

</div>


