# Python API

**URL:** <https://discuss.elastic.co/t/python-api/90572>\
**Category:** Elasticsearch\
**Created:** [June 23, 2017, 5:55am UTC](https://discuss.elastic.co/t/python-api/90572 "2017-06-23T05:55:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghvendra](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@raghvendra](https://discuss.elastic.co/u/raghvendra)\
**Post date:** [June 23, 2017, 5:55am UTC](https://discuss.elastic.co/t/python-api/90572/1 "2017-06-23T05:55:45Z")

</div>

Hi there ,

I am using Elasticsearch python APTI to interact with ES . I have ELK stack of 5.4.0 version. I have used COMBINEDAPACHELOG grok to parse my log data in Logstash . And then, I have added three painless scripts to break data into some specific fields .  
I want to query data through python API . I am using "\_source" . But the problem is , it is not letting me to query data of painless scripted fields . It is only allowing me to play with only those fields which were given by the grok .  
Can anyone help ?

---

<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:** [July 21, 2017, 5:55am UTC](https://discuss.elastic.co/t/python-api/90572/2 "2017-07-21T05:55:49Z")

</div>

Closed on July 21, 2017, 5:55am UTC

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