Skip to content

doron050/logdna-for-all

Repository files navigation

LogDNA Zeit Integration
LogDNA ZEIT Integration

Connect your ZEIT Now Projects to LogDNA

Say goodbye to loggers!

Our VisionKey FeaturesHow to UseDev SetupContactLogDNAZEIT

LogDNA For All - be smart, take responsibility.

forthebadge forthebadge

We are making our best efforts to bring you the best logging integrations.
If you like our integration, you can help us by donate and become a backer.

🎆 Try it out! 🎆

Our Vision

Allow every developer to take responsibility over their creation by delivering the best integration
to connect their project for _logging:chart_with_upwards_trend: & monitoring:traffic_light: service.

Key Features

  • Integrate your ZEIT Now project with LogDNA 🔌
    • Connect team projects 👪
    • Connect user projects :bowtie:
  • Consistently transfer all your logs to your LogDNA project

Screenshot - Integration Configuration:

Integration Configuration

Screenshot - LogDNA:

LogDNA

How to Use

  • Select one of the following:
    • The fastest way 🚀 - Go here
    • Or Go to Our integration page
      • Press add
    • Or manually ✋ Go to the marketplace:
      • Go to [logging category](https://zeit.co/integrations?category=logging)
        • select our integration LogDNA
  • Select which workspaces you want to connect to LogDNA - User or teams
  • Press add
  • For each project of your workspaces that you want to connect:
    • Insert your LogDNA token 🔑 (get it via your project page on LogDNA
    • Press Connect
  • Now you are ready to go by yourself. Enjoy! 🎉

We hope you have the great Logging & Monitoring Experience of your life! 🌈

Setup for Development

In order to contribute you will need the following accounts 🔖:

Get our code

# Clone this repository
$ git clone https://github.com/doron050/logdna-for-all.git

# Go into the repository
$ cd logdna-for-all

# Install dependencies
$ npm install

ZEIT integrations

MongoDB cloud

  • Register for MongoDB cloud
  • Create your cluster and get the connection details 📑
  • Make sure you set your .env file ✏️:
# DB
+ DB_USER_NAME=[your mongodb cloud user name]
+ DB_PASSWORD=[your mongodb cloud password]
+ DB_URL=[your mongodb url]
+ DB_SCHEME=[your mongodb scheme]
+ DB_NAME=[your mongodb db name]
+ DB_COLLECTION_NAME=[your mongodb collection name]

Advanced .env

Specify what environment you are targeting:

# ENV
+ ENVIRONMENT=[production / development]

If you want to, you can control some of our intervals 🕐:

+ CONSUME_PROJECT_LOG_INTERVAL=[time between reading and sending logs - default is 3000]
+ SYNC_SUBSCRIBER_WITH_DB_INTERVAL=[time between sync with the metadata inside the db - default is 6000]

If you want your integration to send logs to LogzIO you need to configure this setting:

# LOGGER
+ LOGGER_TOKEN=[LogzIO token]

Run the integration

  • Run your integration locally using npm run zeit
  • Use your browser and go to your integration configuration page 📜
  • You should now see the integration configuration page (it is connected to your localhost)

⚠️notice!

If you want to debug and change the configuration UI you are good to go! Every configuration you create will be saved inside your database. You use this data in the following background node app.

Run your background node app

⚠️notice!

Since we cannot use our localhost as the redirect endpoint for the oauth proccess
you will miss 2 critical fields on every database document (ZeitToken, teamId) 😓

In order to get over it 💪:

  • Upload your app to ZEIT using the now command (the now.json file is provided for you) 📤
  • Set your integrations redirect url to <zeit-host-name>/redirect
  • Set the following secrets 🔐:
# Zeit 
+ INTEGRATION_CLIENT_ID=[Your app auth client id]
+ INTEGRATION_CLIENT_SECRET=[Your app secret]
  • Now you should follow the How to Use steps in order to use your integration 😅

Now you can run the background node!

  • Use npm start in order to start the sync

Have fun. Keep Coding. 💻

Our Team


LogDNA-For-All Team

Support and Contact


LogDNA-For-All © 2019+, DE, MB, NM Released under the MIT License.
Authored and maintained by DE, MB, NM. with help from contributors.

GitHub @Niv
GitHub @Doron Eli
GitHub @Moshe Basher
Contact us via mail: [email protected]