# setCustomContext not showing data after upgrade from 7.9 to 8.1.2

**URL:** <https://discuss.elastic.co/t/setcustomcontext-not-showing-data-after-upgrade-from-7-9-to-8-1-2/304004>\
**Category:** Elasticsearch\
**Created:** [May 5, 2022, 7:56am UTC](https://discuss.elastic.co/t/setcustomcontext-not-showing-data-after-upgrade-from-7-9-to-8-1-2/304004 "2022-05-05T07:56:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hertzden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hertzden/32/105265_2.png) [@hertzden](https://discuss.elastic.co/u/hertzden)\
**Post date:** [May 5, 2022, 7:56am UTC](https://discuss.elastic.co/t/setcustomcontext-not-showing-data-after-upgrade-from-7-9-to-8-1-2/304004/1 "2022-05-05T07:56:10Z")

</div>

We have setup custom context to fetch session FCP data for all our apps, last month we upgraded elastic version from 7.9 to 8.1.2 on 11th April, 2022. Since that date we are not able to see data in console while running query.

This is our query:

```auto
GET _search
{
 

    "aggs": {
        "max_of_fcp_b": {
            "terms": {
                "field": "transaction.custom.session",
                "size": 10000000
            },
            "aggs": {
                "fcp_max": {
                    "max": {
                        "field": "transaction.marks.agent.firstContentfulPaint"
                    }
                }
            }
        },
        "percentiles_fcp": {
            "percentiles_bucket": {
                "buckets_path": "max_of_fcp_b>fcp_max",
                "percents": [
                    95.0
                ]
            }
        }
    },
    "size": 0,
    "stored_fields": [
        "*"
    ],
    "_source": {
        "excludes": [
            "sourcemap.sourcemap"
        ]
    },
    "query": {
        "bool": {
            "must": [],
            "filter": [
                {
                    "match_all": {}
                },
                {
                  "match_phrase": {
                    "service.name": "App Name"
                  }
                },
                {
                    "exists": {
                        "field": "transaction.marks.agent.firstContentfulPaint"
                    }
                },
                
                {
                    "range": {
                        "@timestamp": {
                            "gte": "2022-04-11T12:49:15.858Z",
                            "lte": "2022-05-04T12:49:15.858Z",
                            "format": "strict_date_optional_time"
                        }
                    }
                }
            ],
            "should": [],
            "must_not": []
        }
    }

}

```

---

<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:** [June 2, 2022, 7:56am UTC](https://discuss.elastic.co/t/setcustomcontext-not-showing-data-after-upgrade-from-7-9-to-8-1-2/304004/2 "2022-06-02T07:56:38Z")

</div>

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