# How do I download logs messages/documents from Kibana 4/Elastic server?

**URL:** <https://discuss.elastic.co/t/how-do-i-download-logs-messages-documents-from-kibana-4-elastic-server/64012>\
**Category:** Kibana\
**Created:** [October 26, 2016, 2:05pm UTC](https://discuss.elastic.co/t/how-do-i-download-logs-messages-documents-from-kibana-4-elastic-server/64012 "2016-10-26T14:05:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkhapali](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@mkhapali](https://discuss.elastic.co/u/mkhapali)\
**Post date:** [October 26, 2016, 2:05pm UTC](https://discuss.elastic.co/t/how-do-i-download-logs-messages-documents-from-kibana-4-elastic-server/64012/1 "2016-10-26T14:05:30Z")

</div>

Hi there, I want to download a set of log message/documents from elastic server, I know that we have "request" json in the Kibana 4 dashboard, Can I use a CURL to get the messages with request json? If yes, do we have a sample CURL to hit the elastic server? Please assist

---

<div class="post-metadata">

**Author:** ![eperry](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eperry/32/551_2.png) [@eperry](https://discuss.elastic.co/u/eperry)\
**Post date:** [October 26, 2016, 11:56pm UTC](https://discuss.elastic.co/t/how-do-i-download-logs-messages-documents-from-kibana-4-elastic-server/64012/2 "2016-10-26T23:56:07Z")

</div>

A little self promotion,

> **[ElasticSearchCLITools/esCatField](https://github.com/ElasticSearchCLITools/esCatField/)**
>
> esCatField - Elastic Search Tools to export a certain field name. Good for say getting a list of hosts

this will by default export anything in the "message field" and you can pipe it to a file.

I am sure there are many other ways to do it, and the code I wrote is not overly complex to modify and do what you want.

---

<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 6, 2017, 1:35pm UTC](https://discuss.elastic.co/t/how-do-i-download-logs-messages-documents-from-kibana-4-elastic-server/64012/3 "2017-07-06T13:35:34Z")

</div>


