# How to put the result of .py file execution into the Elastic Search

**URL:** <https://discuss.elastic.co/t/how-to-put-the-result-of-py-file-execution-into-the-elastic-search/167204>\
**Category:** Elasticsearch\
**Created:** [February 6, 2019, 2:19am UTC](https://discuss.elastic.co/t/how-to-put-the-result-of-py-file-execution-into-the-elastic-search/167204 "2019-02-06T02:19:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![a86236df74eecab0f8a3](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@a86236df74eecab0f8a3](https://discuss.elastic.co/u/a86236df74eecab0f8a3)\
**Post date:** [February 6, 2019, 2:19am UTC](https://discuss.elastic.co/t/how-to-put-the-result-of-py-file-execution-into-the-elastic-search/167204/1 "2019-02-06T02:19:11Z")

</div>

Hi

I want to put the result of client.py file execution into the Elastic Search using logstash.  
This is an example of the result value.

{u'action': u'select',  
u'build': 5447,  
u'http\_method': u'GET',  
u'name': u'client',  
u'path': u'wifi',  
u'results': [{u'channel': 44,  
u'signal': -44,  
u'signal\_bar': 8,  
u'ssid': u'example',  
u'sta\_assoc\_time': u'02/01/19 08:46',  
u'sta\_auth': u'pass',  
u'sta\_idle\_time': u'3 sec',  
u'sta\_ip': u'xx.xx.xx.xx',  
u'sta\_mac': u'0:0:cb:0f:0:0',  
u'sta\_rate': u'64.3 mbps',  
u'sta\_snr': u'51 dB',  
u'vap\_name': u'wifi',  
u'wtp\_id': u'CBA',  
u'wtp\_name': u'CBA'}],  
u'serial': u'ABC',  
u'status': u'success',  
u'vdom': u'root',  
u'version': u'v5.4.1'}

Do you have any idea?  
Please give me some advice.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 6, 2019, 3:19am UTC](https://discuss.elastic.co/t/how-to-put-the-result-of-py-file-execution-into-the-elastic-search/167204/2 "2019-02-06T03:19:40Z")

</div>

Maybe [https://medium.freecodecamp.org/how-to-use-elasticsearch-logstash-and-kibana-to-visualise-logs-in-python-in-realtime-acaab281c9de](https://medium.freecodecamp.org/how-to-use-elasticsearch-logstash-and-kibana-to-visualise-logs-in-python-in-realtime-acaab281c9de) will be of some 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:** [March 6, 2019, 3:32am UTC](https://discuss.elastic.co/t/how-to-put-the-result-of-py-file-execution-into-the-elastic-search/167204/3 "2019-03-06T03:32:41Z")

</div>

Closed on March 6, 2019, 3:32am UTC

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