# Need assitance for creating scripted fileds

**URL:** <https://discuss.elastic.co/t/need-assitance-for-creating-scripted-fileds/148933>\
**Category:** Elasticsearch\
**Created:** [September 18, 2018, 7:02am UTC](https://discuss.elastic.co/t/need-assitance-for-creating-scripted-fileds/148933 "2018-09-18T07:02:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nithani25](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nithani25/32/33457_2.png) [@Nithani25](https://discuss.elastic.co/u/Nithani25)\
**Post date:** [September 18, 2018, 7:02am UTC](https://discuss.elastic.co/t/need-assitance-for-creating-scripted-fileds/148933/1 "2018-09-18T07:02:45Z")

</div>

Hi Team,  
I have greedydata field in my message split up, which looks something like below.

Default Message : {"userId":"sekar","transactionType":"BUY","product name":"JBL C100SI In-Ear Headphones with Mic","purchase amount":"995.00",cancellation charge":"50.00"}

I am in a need to filter out purchase amount and product name as specific fields(scripted fileds). Can you help me with the painless query to extract those specific fields.

---

<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:** [October 16, 2018, 7:02am UTC](https://discuss.elastic.co/t/need-assitance-for-creating-scripted-fileds/148933/2 "2018-10-16T07:02:59Z")

</div>

Closed on October 16, 2018, 7:02am UTC

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