# Extract Messages to CSV via Rest API

**URL:** https://community.graylog.org/t/extract-messages-to-csv-via-rest-api/4403
**Category:** Graylog Central (peer support)
**Created:** [March 1, 2018, 11:04am UTC](https://community.graylog.org/t/extract-messages-to-csv-via-rest-api/4403 "2018-03-01T11:04:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![charlot.attard](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@charlot.attard](https://community.graylog.org/u/charlot.attard)
#### Post date: [March 1, 2018, 11:04am UTC](https://community.graylog.org/t/extract-messages-to-csv-via-rest-api/4403/1 "2018-03-01T11:04:25Z")

</div>

Hi All,

I am trying to export saved messages, into a csv via restapi. Ideally this will be done daily and trigerred automatically.

Thanks,  
Charlot

---

<div class="post-metadata">

### Author: ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)
#### Post date: [March 1, 2018, 1:26pm UTC](https://community.graylog.org/t/extract-messages-to-csv-via-rest-api/4403/2 "2018-03-01T13:26:30Z")

</div>

You can do this via the Graylog REST API.

Take a look at the `/search/universal/relative/export` resource in the API browser of one of your running Graylog nodes to get some details.

---

<div class="post-metadata">

### Author: ![charlot.attard](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@charlot.attard](https://community.graylog.org/u/charlot.attard)
#### Post date: [March 5, 2018, 9:40am UTC](https://community.graylog.org/t/extract-messages-to-csv-via-rest-api/4403/3 "2018-03-05T09:40:06Z")

</div>

Thanks a lot @jochen really helpful. Managed to get what I wanted 🙂

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)
#### Post date: [March 19, 2018, 9:40am UTC](https://community.graylog.org/t/extract-messages-to-csv-via-rest-api/4403/4 "2018-03-19T09:40:49Z")

</div>

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