# Create a visualize with field value

**URL:** <https://discuss.elastic.co/t/create-a-visualize-with-field-value/223313>\
**Category:** Kibana\
**Created:** [March 12, 2020, 10:47am UTC](https://discuss.elastic.co/t/create-a-visualize-with-field-value/223313 "2020-03-12T10:47:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk2](https://avatars.discourse-cdn.com/v4/letter/e/f14d63/32.png) [@elk2](https://discuss.elastic.co/u/elk2)\
**Post date:** [March 12, 2020, 10:47am UTC](https://discuss.elastic.co/t/create-a-visualize-with-field-value/223313/1 "2020-03-12T10:47:00Z")

</div>

I have a lot of documents like this into elasticsearch:

```
{
  "_index": "logstash-people-2020.01.22",
  "_type": "_doc",
  "_id": "I7xKznAB6obTCirlmSMC",
  "_version": 1,
  "_score": null,
  "_source": {
    "men": 111,
    "@timestamp": "2020-01-22T12:00:00.000Z",
    "path": "/tmp/people.json",
    "@version": "1",
    "tags": [
      "multiline"
    ],
    "country": "US",
    "childrens": 127,
    "host": "ubuntu",
    "message": "{ \"date\": \"2020-01-22 13:00:00\",\n\"country\": \"US\",\n\"men\": 111,\n\"women\": 26,\n\"childrens\": 127\n}",
    "women": 26,
    "date": "2020-01-22 13:00:00"
  },
  "fields": {
    "@timestamp": [
      "2020-01-22T12:00:00.000Z"
    ]
  },
  "sort": [
    1579694400000
  ]
}

```

I would like to create a visualize to show the trendline of men field value every day. For example 2020-01-22 men 111  
2020-01-23 men 134  
2020-01-24 men 155

---

<div class="post-metadata">

**Author:** ![Marta\_Bondyra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marta_bondyra/32/102122_2.png) [@Marta\_Bondyra](https://discuss.elastic.co/u/Marta_Bondyra)\
**Post date:** [March 12, 2020, 11:24am UTC](https://discuss.elastic.co/t/create-a-visualize-with-field-value/223313/2 "2020-03-12T11:24:54Z")

</div>

Hi Piter,

I assume that you need a metric visualisation. You have to set a sum of men on X-axis and create a split group aggregation of type date histogram. Set up minimum interval to daily. I hope you'll find this example helpful:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/5/f5b2b358449796687b986aa5698dfe0a1c0b8d90.png)

Regards,  
Marta

---

<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:** [April 9, 2020, 11:24am UTC](https://discuss.elastic.co/t/create-a-visualize-with-field-value/223313/3 "2020-04-09T11:24:58Z")

</div>

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