We have updated our Terms of Service, Code of Conduct, and Addendum.

How can I send Heroku logs to Cribl Stream/Edge?

Options
Kyle McCririe
Kyle McCririe Posts: 29 ✭✭
edited September 2023 in Stream

I am interested in sending Heroku logs to Stream. Has anyone ever done this before?

Best Answer

  • padilla
    padilla Posts: 7 mod
    Answer ✓
    Options

    Hi! You can use Heroku Syslog or HTTPS drains to send logs to Stream.

    For Syslog, configure a Syslog source and enter the following at the Heroku CLI.

    heroku drains:add syslog+tls://<host>:<port> -a <heroku-app>
    heroku drains:add syslog://<host>:<port> -a <heroku-app>

    For HTTPS, configure the Stream HTTP source, configure TLS, and enter the following at the Heroku CLI

    heroku drains:add https://<host>:<port>/cribl/_bulk -a <heroku-app>

    Do note that Logplex does not validate your worker cert during the TLS handshake.

Answers

  • padilla
    padilla Posts: 7 mod
    Answer ✓
    Options

    Hi! You can use Heroku Syslog or HTTPS drains to send logs to Stream.

    For Syslog, configure a Syslog source and enter the following at the Heroku CLI.

    heroku drains:add syslog+tls://<host>:<port> -a <heroku-app>
    heroku drains:add syslog://<host>:<port> -a <heroku-app>

    For HTTPS, configure the Stream HTTP source, configure TLS, and enter the following at the Heroku CLI

    heroku drains:add https://<host>:<port>/cribl/_bulk -a <heroku-app>

    Do note that Logplex does not validate your worker cert during the TLS handshake.