Skip to content

Log Processor for Meme_Api. Acts as an HTTPs LogDrain using Heroku's LogPlex and stores API Analytics to MongoDB on a day by day basis

Notifications You must be signed in to change notification settings

D3vd/Meme_Api_LogDrain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Meme API LogDrain

Log Processor for Meme_Api Acts as an HTTPs LogDrain using Heroku's LogPlex and stores API Analytics to MongoDB on a day by day basis

Running the App

1. Setup the App

Clone the repo and run the following commands to install all necessary dependencies and build the app

  go install
  go build .

2. Set Environment Variables

Set the following Environment Variables

  export MONGODB_URI=<MONGODB_URI_HERE>
  export SENTRY_DSN=<SENTRY_DSN_HERE>

3. Run the App

Run the app by executing the binary

  ./Meme_Api_LogDrain

4. Setup HTTPs LogDrain for the Heroku App

Setup LogDrain for your Heroku App using the Heroku CLI

  heroku drains:add https://<APP_HOSTED_URL>/log -a myapp

About

Log Processor for Meme_Api. Acts as an HTTPs LogDrain using Heroku's LogPlex and stores API Analytics to MongoDB on a day by day basis

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published