# How to programaticaly get data from elastic stack using python

**URL:** <https://discuss.elastic.co/t/how-to-programaticaly-get-data-from-elastic-stack-using-python/362439>\
**Category:** Kibana\
**Created:** [July 3, 2024, 8:23am UTC](https://discuss.elastic.co/t/how-to-programaticaly-get-data-from-elastic-stack-using-python/362439 "2024-07-03T08:23:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bino\_Oetomo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bino_oetomo/32/123465_2.png) [@Bino\_Oetomo](https://discuss.elastic.co/u/Bino_Oetomo)\
**Post date:** [July 3, 2024, 8:23am UTC](https://discuss.elastic.co/t/how-to-programaticaly-get-data-from-elastic-stack-using-python/362439/1 "2024-07-03T08:23:06Z")

</div>

Dear All

My co worker deploy an elastc stack to process bunc of Apache access and dom logs.

Curently i can see via web ui kind of this:

 ![abusif_request_blured](https://us1.discourse-cdn.com/elastic/original/3X/c/f/cfb2a6ad684369b18d67155d421cc27a9c2dcd00.png)

I need to "extract" somedata from that view, minimal of: domain name and request url. i need to send notification like --\> "please check this url"

since I have litle knowledge of python, I tried to play with kibana\_api. current I can get each panel objects. but I don't know hot to extract the data.

kindly please tell me how to do that or what need tobe learned to do that things

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 3, 2024, 12:29pm UTC](https://discuss.elastic.co/t/how-to-programaticaly-get-data-from-elastic-stack-using-python/362439/2 "2024-07-03T12:29:50Z")

</div>

Hi @Bino_Oetomo,

Welcome! The underlying data for this dashboard table will be stored in an Elasticsearch index, which you should be able to extract data from using the [Elasticsearch Python client](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html).

Specifically, looking at the [connection](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/connecting.html) and [searching](https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/examples.html#ex-search) portions of the documentation should help you see the syntax.

Hope that helps!
