# Need help in jq parser with my aggregrations

**URL:** <https://discuss.elastic.co/t/need-help-in-jq-parser-with-my-aggregrations/243701>\
**Category:** Elasticsearch\
**Created:** [August 4, 2020, 12:03pm UTC](https://discuss.elastic.co/t/need-help-in-jq-parser-with-my-aggregrations/243701 "2020-08-04T12:03:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blason](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/blason/32/42284_2.png) [@Blason](https://discuss.elastic.co/u/Blason)\
**Post date:** [August 4, 2020, 12:03pm UTC](https://discuss.elastic.co/t/need-help-in-jq-parser-with-my-aggregrations/243701/1 "2020-08-04T12:03:12Z")

</div>

Hi Guys,

I am trying to figure out the Json data parsing out using jq from elastic 7.8. However I am confused and data is not being parsed correctly.

Can someone pls help me with?

```auto
  "took": 1,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 118,
      "relation": "eq"
    },
    "max_score": null,
    "hits": []
  },
  "aggregations": {
    "2": {
      "doc_count_error_upper_bound": 0,
      "sum_other_doc_count": 0,
      "buckets": [
        {
          "key": "15.16.17.18",
          "doc_count": 3
        },
        {
          "key": "192.168.5.114",
          "doc_count": 3
        },
        {
          "key": "12.13.14.1",
          "doc_count": 1
        },
        {
          "key": "12.13.14.10",
          "doc_count": 1
        }, | jq '.aggregations'
        

```

Am I missing anything? I just need to filter out key parameter

---

<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:** [September 1, 2020, 12:03pm UTC](https://discuss.elastic.co/t/need-help-in-jq-parser-with-my-aggregrations/243701/2 "2020-09-01T12:03:14Z")

</div>

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