# Shipping of Heroku Log into elastic cloud

**URL:** <https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009>\
**Category:** Elastic Observability\
**Created:** [August 23, 2020, 7:40am UTC](https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009 "2020-08-23T07:40:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoopkrishna](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anoopkrishna](https://discuss.elastic.co/u/anoopkrishna)\
**Post date:** [August 23, 2020, 7:40am UTC](https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009/1 "2020-08-23T07:40:46Z")

</div>

HI All

I am using Heroku to host our application in common runtime and private space. I would like to check what is the best option to ship all the log of Dyno, Prostgres, etc from Heroku to Elastic Cloud.

Regards  
Anoop Krishna K

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [August 25, 2020, 6:10pm UTC](https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009/2 "2020-08-25T18:10:05Z")

</div>

Hi @anoopkrishna,

I don't know much about the internals of Heroku, but it seems to be possible to configure a logplex drain that forwards log entries in syslog format. You could try to send those to a logstash or filebeat process and forward to Elasticsearch from there. A quick search lead me to [https://blog.readme.com/making-better-use-of-herokus-logging-firehose/](https://blog.readme.com/making-better-use-of-herokus-logging-firehose/), which describes a setup of that sort.

---

<div class="post-metadata">

**Author:** ![anoopkrishna](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@anoopkrishna](https://discuss.elastic.co/u/anoopkrishna)\
**Post date:** [September 23, 2020, 9:38am UTC](https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009/3 "2020-09-23T09:38:19Z")

</div>

Hi @weltenwort  
Thanks for your response. I have gone through the article which only talks about the application log. I would like to push Metric log as well on Elastic Search. Also, the article is mentioning about hosting a docker application on the cloud to deploy Logstash. Is it possible to include the logstash on Elastic Cloud itself?

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [September 24, 2020, 3:40pm UTC](https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009/4 "2020-09-24T15:40:36Z")

</div>

Unfortunately we're not yet offering to host Logstash on Elastic Cloud. Could you maybe just deploy it on heroku itself? There seem to be several buildpacks around.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [September 24, 2020, 3:43pm UTC](https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009/5 "2020-09-24T15:43:54Z")

</div>

In order for the metrics from the metrics logs to be available I would try parsing them in logstash using a grok and related filters. It's might be a bit tricky, though, because I couldn't find a good documentation for the heroku metric log format.

---

<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:** [November 4, 2022, 8:11am UTC](https://discuss.elastic.co/t/shipping-of-heroku-log-into-elastic-cloud/246009/6 "2022-11-04T08:11:04Z")

</div>


