# Can't Use Field (Float) in Visualization

**URL:** <https://discuss.elastic.co/t/cant-use-field-float-in-visualization/233445>\
**Category:** Kibana\
**Created:** [May 20, 2020, 3:39am UTC](https://discuss.elastic.co/t/cant-use-field-float-in-visualization/233445 "2020-05-20T03:39:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ntwrk80](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ntwrk80/32/67967_2.png) [@ntwrk80](https://discuss.elastic.co/u/ntwrk80)\
**Post date:** [May 20, 2020, 3:39am UTC](https://discuss.elastic.co/t/cant-use-field-float-in-visualization/233445/1 "2020-05-20T03:39:50Z")

</div>

I've verified that my index is showing the right type for the field I want to make a line graph with, but it does not show up as an option for the Y-Axis if I choose an aggregation type. My data is a simple number groked from a syslog entry. I've tried mapping it both as an integer and a float. I've seen similar questions here and elsewhere, but they generally end up pointing to mapping which I think I'm doing. Pardon my newb ignorance please. authenticated\_session\_count is the field I'm working with.

```auto
{
  "mapping": {
    "_doc": {
      "_meta": {},
      "dynamic_templates": [
        {
          "message_field": {
            "path_match": "message",
            "match_mapping_type": "string",
            "mapping": {
              "norms": false,
              "type": "text"
            }
          }
        },
        {
          "string_fields": {
            "match": "*",
            "match_mapping_type": "string",
            "mapping": {
              "fields": {
                "keyword": {
                  "ignore_above": 256,
                  "type": "keyword"
                }
              },
              "norms": false,
              "type": "text"
            }
          }
        }
      ],
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "@version": {
          "type": "keyword"
        },
        "authenticated_session_count": {
          "type": "float",
          "ignore_malformed": false,
          "coerce": true
        },
...

```

---

<div class="post-metadata">

**Author:** ![rudolf](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rudolf/32/51200_2.png) [@rudolf](https://discuss.elastic.co/u/rudolf)\
**Post date:** [June 16, 2020, 8:36pm UTC](https://discuss.elastic.co/t/cant-use-field-float-in-visualization/233445/2 "2020-06-16T20:36:21Z")

</div>

Which version of the Elastic stack are you using? Can you share the output of `GET <index>/_mapping?pretty=true` (the JSON you shared doesn't exactly match the output format I expected)

---

<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 14, 2020, 8:36pm UTC](https://discuss.elastic.co/t/cant-use-field-float-in-visualization/233445/3 "2020-07-14T20:36:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
