Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

coralogix/heroku-fluentd-coralogix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

heroku-fluentd-coralogix

This is a Heroku application based on FluentD, accept logs from HTTPS drains and send it Coralogix.

Setup

Check out this repository and create a Heroku application from it:

$ export LOGGER_APPLICATION=fluentd-coralogix-`uuidgen`
$ heroku apps:create ${LOGGER_APPLICATION}
$ heroku config:set PRIVATE_KEY=YOUR_PRIVATE_KEY -a ${LOGGER_APPLICATION}
$ git push heroku master

Also you can overwrite Application and Subsystem names:

$ heroku config:set APP_NAME=YOUR_APP_NAME -a ${LOGGER_APPLICATION}
$ heroku config:set SUB_SYSTEM=YOUR_SUBSYSTEM -a ${LOGGER_APPLICATION}

Usage

Configure Heroku HTTPS log drains to publish logs to this application:

$ heroku drains:add https://YOUR-LOGGING-APP-NAME/coralogix.APP_NAME.SUB_NAME -a YOUR-APP-NAME

Private space logging

For logging in private space your need to deploy logging application and set it as logs drain:

$ export LOGGER_APPLICATION=fluentd-coralogix-`uuidgen`
$ heroku apps:create ${LOGGER_APPLICATION} --internal-routing --space YOUR_SPACE_NAME
$ heroku config:set PRIVATE_KEY=YOUR_PRIVATE_KEY -a ${LOGGER_APPLICATION}
$ heroku config:set APP_NAME=YOUR_SPACE_NAME -a ${LOGGER_APPLICATION}
$ git push heroku master
$ heroku drains:set https://${LOGGER_APPLICATION}.herokuapp.com/private --space YOUR_SPACE_NAME