# How to write a painless script that get all the error from the EKS cluster as I want to create an error dashboad in kibana

**URL:** <https://discuss.elastic.co/t/how-to-write-a-painless-script-that-get-all-the-error-from-the-eks-cluster-as-i-want-to-create-an-error-dashboad-in-kibana/320533>\
**Category:** Beats\
**Tags:** painless, filebeat\
**Created:** [December 6, 2022, 7:31am UTC](https://discuss.elastic.co/t/how-to-write-a-painless-script-that-get-all-the-error-from-the-eks-cluster-as-i-want-to-create-an-error-dashboad-in-kibana/320533 "2022-12-06T07:31:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANIKET\_YADAV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aniket_yadav/32/114266_2.png) [@ANIKET\_YADAV](https://discuss.elastic.co/u/ANIKET_YADAV)\
**Post date:** [December 6, 2022, 7:31am UTC](https://discuss.elastic.co/t/how-to-write-a-painless-script-that-get-all-the-error-from-the-eks-cluster-as-i-want-to-create-an-error-dashboad-in-kibana/320533/1 "2022-12-06T07:31:28Z")

</div>

I want to create an error field in filebeat index pattern as I need to create an error dashboard that fetch me the error of my pods running in EKS cluster but for that it is required to write a script to add a field... Please look into my request

---

<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:** [January 3, 2023, 9:32am UTC](https://discuss.elastic.co/t/how-to-write-a-painless-script-that-get-all-the-error-from-the-eks-cluster-as-i-want-to-create-an-error-dashboad-in-kibana/320533/2 "2023-01-03T09:32:11Z")

</div>

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