fluent-logger-node | A structured logger for Fluentd

 by   fluent JavaScript Version: Current License: Apache-2.0

kandi X-RAY | fluent-logger-node Summary

kandi X-RAY | fluent-logger-node Summary

fluent-logger-node is a JavaScript library typically used in Logging, Nodejs applications. fluent-logger-node has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i fluent-logger' or download it from GitHub, npm.

This package is compatible with NodeJS versions >= 6.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              fluent-logger-node has a low active ecosystem.
              It has 233 star(s) with 83 fork(s). There are 17 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 17 open issues and 67 have been closed. On average issues are closed in 79 days. There are 2 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of fluent-logger-node is current.

            kandi-Quality Quality

              fluent-logger-node has 0 bugs and 0 code smells.

            kandi-Security Security

              fluent-logger-node has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              fluent-logger-node code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              fluent-logger-node is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              fluent-logger-node releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fluent-logger-node
            Get all kandi verified functions for this library.

            fluent-logger-node Key Features

            No Key Features are available at this moment for fluent-logger-node.

            fluent-logger-node Examples and Code Snippets

            No Code Snippets are available at this moment for fluent-logger-node.

            Community Discussions

            QUESTION

            Fluentd Kubernetes Nodejs : Error: connect ECONNREFUSED 127.0.0.1:24224
            Asked 2020-Sep-21 at 06:13

            EDIT : I harcoded the fluentd service IP directly in my express app and its working.. how to get it work without harcoding ip?

            I have a couple of pods (nodejs + express server) running on a Kubernetes cluster.

            I'd like send logs from my nodejs pods to a Fluentd DeamonSet.

            But I'm getting this error :

            Fluentd error Error: connect ECONNREFUSED 127.0.0.1:24224

            I'm using https://github.com/fluent/fluent-logger-node and my configuration is pretty simple:

            ...

            ANSWER

            Answered 2020-Sep-21 at 06:13

            Focusing on below parts of the question:

            I'd like send logs from my nodejs pods to a Fluentd DeamonSet.

            EDIT : I harcoded the fluentd service IP directly in my express app and its working.. how to get it work without harcoding ip?

            It looks like the communication between pods and the fluentd service is correct (hardcoding the IP works). The issue here is the way they can communicate with each other.

            You can communicate with service fluentd by its name. For example (from the inside of a pod):

            • curl fluentd:24224

            You can communicate with services by its name (like fluentd) only in the same namespace. If a service is in another namespace you would need to use it's full DNS name. It's template and example is following:

            • template: service-name.namespace.svc.cluster.local
            • example: fluentd.kube-system.svc.cluster.local

            You can also use service of type ExternalName to map the full DNS name of your service to a shorter version like below:

            Assuming that (example):

            • You have created a nginx-namespace namespace:
              • $ kubectl create namespace nginx-namespace
            • You have an nginx Deployment inside the nginx-namespace and a service associated with it:
              • $ kubectl create deployment nginx --image=nginx --namespace=nginx-namespace
              • $ kubectl expose deployment nginx --port=80 --type=ClusterIP --namespace=nginx-namespace
            • You want to communicate with nginx Deployment from another namespace (i.e. default)

            You have an option to communicate with above pod:

            • By the IP address of a Pod
              • 10.98.132.201
            • By a (full) DNS service name
              • nginx.nginx-namespace.svc.cluster.local
            • By an ExternalName type of service that points to a a (full) DNS service name
              • nginx-service

            The example of ExternalName type of service:

            Source https://stackoverflow.com/questions/63937370

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install fluent-logger-node

            You can install using 'npm i fluent-logger' or download it from GitHub, npm.

            Support

            We can also specify EventTime as timestamp.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/fluent/fluent-logger-node.git

          • CLI

            gh repo clone fluent/fluent-logger-node

          • sshUrl

            git@github.com:fluent/fluent-logger-node.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link