### Heroku Logdrain Proxy Architecture Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Diagram illustrating the default setup versus the setup with the HireFire Logdrain Proxy, showing the flow of log data. ```text +---------------------------+ +--------------------------+ | | | | | Your Heroku Account | | HireFire | | | | | | +---------------------+ | | +-------------------+ | | | | | Unfiltered | | | | | | Heroku Logplex | | ---------> | | HireFire Logdrain | | | | | | Log Data | | | | | +---------------------+ | | +-------------------+ | | | | | +---------------------------+ +-------------------------------------------------------+ +-------------------------+ | | | | | Your Heroku Account | | HireFire | | | | | | +----------------+ +-------------------------+ | | +-------------------+ | | | | | | | Filtered | | | | | | Heroku Logplex | ---> | HireFire Logdrain Proxy | | -------> | | HireFire Logdrain | | | | | | | | Log Data | | | | | +----------------+ +-------------------------+ | | +-------------------+ | | | | | +-------------------------------------------------------+ ``` -------------------------------- ### Dockerfile Version Update Example Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Shows how to update the version number in the Dockerfile to upgrade the HireFire Logdrain Proxy. ```diff # Dockerfile - FROM hirefire/logdrain.proxy:1.0.5 + FROM hirefire/logdrain.proxy:1.0.6 ``` -------------------------------- ### Clone Repository and Navigate Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Clones the HireFire Logdrain Proxy repository from GitHub and changes the directory to the cloned repository. ```sh git clone https://github.com/hirefire/logdrain.proxy.git hirefire.logdrain.proxy cd hirefire.logdrain.proxy ``` -------------------------------- ### Create Heroku App with Container Stack Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Creates a new Heroku application using the container stack, suitable for Docker deployments. Replace `[COMPANY]` with your desired name. ```sh heroku create [COMPANY]-hfld-proxy --stack container ``` -------------------------------- ### Resize Dyno to Hobby Tier Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Resizes the web dyno to the Hobby tier, recommended for 24/7 operation. ```sh heroku ps:resize web=hobby ``` -------------------------------- ### Upgrade Logdrain Proxy Version Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Updates the Dockerfile to use a newer version of the HireFire Logdrain Proxy image and deploys the changes. ```sh git commit -am "Upgrade to version 1.0.6" git push heroku master ``` -------------------------------- ### View Current Drains Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Lists all current drains configured for the specified Heroku application. ```sh heroku drains -a YOUR_APPLICATION ``` -------------------------------- ### Deploy Application to Heroku Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Deploys the current branch (master) of the application to the Heroku remote. ```sh git push heroku master ``` -------------------------------- ### Enable Verbose Logging Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Sets the VERBOSE environment variable to 1 to enable detailed logging of proxied or ignored log lines. ```sh heroku config:set VERBOSE=1 ``` -------------------------------- ### Scaling HireFire Logdrain Proxy Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Commands to scale the HireFire Logdrain Proxy horizontally, vertically, or both. ```sh heroku ps:scale web=2 heroku ps:resize web=standard-2x heroku ps:scale web=2:standard-2x ``` -------------------------------- ### Add New Logdrain Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Adds a new drain to the Heroku application, connecting it to the Logdrain Proxy. Replace `[COMPANY]` and `YOUR_APPLICATION` accordingly. ```sh heroku drains:add https://[COMPANY]-hfld-proxy.herokuapp.com -a YOUR_APPLICATION ``` -------------------------------- ### Monitor Proxy Logs Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Streams the logs of the web process to monitor ignored and proxied log entries. ```sh heroku logs -t --ps web ``` -------------------------------- ### Add Drain Token in HireFire UI Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Provides the URL to the HireFire manager interface where the drain token should be added. ```text https://manager.hirefire.io/applications/[APPLICATION_ID]/edit ``` -------------------------------- ### Remove Old Logdrain Source: https://github.com/hirefire/logdrain.proxy/blob/master/README.md Removes an existing drain using its token. Replace `[OLD_DRAIN_TOKEN]` and `YOUR_APPLICATION`. ```sh heroku drains:remove [OLD_DRAIN_TOKEN] -a YOUR_APPLICATION ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.