syslog-ng | enhanced log daemon , supporting a wide range | Pub Sub library

 by   syslog-ng C Version: syslog-ng-4.2.0 License: Non-SPDX

kandi X-RAY | syslog-ng Summary

kandi X-RAY | syslog-ng Summary

syslog-ng is a C library typically used in Messaging, Pub Sub, Kafka applications. syslog-ng has no bugs and it has medium support. However syslog-ng has 1 vulnerabilities and it has a Non-SPDX License. You can download it from GitHub.

syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text, queueing, SQL & NoSQL.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              syslog-ng has a medium active ecosystem.
              It has 1854 star(s) with 435 fork(s). There are 88 watchers for this library.
              There were 1 major release(s) in the last 12 months.
              There are 186 open issues and 1293 have been closed. On average issues are closed in 115 days. There are 23 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of syslog-ng is syslog-ng-4.2.0

            kandi-Quality Quality

              syslog-ng has 0 bugs and 0 code smells.

            kandi-Security Security

              syslog-ng has 1 vulnerability issues reported (0 critical, 1 high, 0 medium, 0 low).
              syslog-ng code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              syslog-ng has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              syslog-ng releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.
              It has 15329 lines of code, 1399 functions and 277 files.
              It has medium code complexity. Code complexity directly impacts maintainability of the code.

            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 syslog-ng
            Get all kandi verified functions for this library.

            syslog-ng Key Features

            No Key Features are available at this moment for syslog-ng.

            syslog-ng Examples and Code Snippets

            No Code Snippets are available at this moment for syslog-ng.

            Community Discussions

            QUESTION

            syslog-ng processing all messages after restart
            Asked 2021-Dec-21 at 05:21

            i'm running syslog-ng inside docker, i'm collecting logs from local files, process them and then write to another logfile or send them to slack.

            I noticed that whenever i need to updated syslog-ng config and restart container, syslog-ng re-reads all messages from source logfiles which causes duplications in destination files, slack channel.

            Is there option to tell syslog that after reboot only new messages should be processed or maybe process only 1hour old logfiles?

            i tried to google/check documentation but without luck, i'm probably not asking the question correctly because i would assume this option exist or not? thanks

            ...

            ANSWER

            Answered 2021-Dec-14 at 18:14

            syslog-ng, by default, persists positions for sources where the concept of "bookmarking" or "position-tracking" is applicable.

            This is true for regular file sources as well. All you have to do is keep the syslog-ng persist file intact (syslog-ng.persist under the /var folder).

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

            QUESTION

            Unable to install syslog-ng on amazon linux 2
            Asked 2021-Dec-14 at 09:21

            I have started EC2 instance from L=amazon linux 2 AMI.

            I am trying to install syslog-ng with yum but I am getting error.

            Commands used :

            ...

            ANSWER

            Answered 2021-Dec-09 at 13:54

            Tried with specific package and its able to install.

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

            QUESTION

            syslog-ng value mapping for variable sub-string
            Asked 2021-Dec-10 at 13:41

            i'm running syslog-ng in container balabit/syslog-ng:3.35.1

            i would like to do value mapping for value in vpnrd variable

            Below is config for value mapping + example of CSV file

            ...

            ANSWER

            Answered 2021-Dec-10 at 13:41

            You have multiple options here, one of them is writing your own parser in Python.

            Parsers usually produce new name-value pairs. The connection between add-contextual-data() and your parser would be the key you specify in selector().

            LogMessage fields are bytes objects in Python 3, so they have to be decoded into strings before transforming them (for example: log_message['.json.vpnrd'].decode("utf-8")).

            syslogng.Logger logs into the internal() source.

            xxx:yyy:zzz seems to be a fixed length, so you can just remove the unnecessary parts (no custom parser is required):

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

            QUESTION

            syslog-ng return original value when mapping does not exists
            Asked 2021-Dec-09 at 23:04

            i'm using syslog-ng for collecting json messages and send alarms to slack

            there is parameter in json message which contains IP address of router from which I'm receiving the json message and I want to convert IP address to router hostname

            i'm using two parsers 1) parse json 2) replace IP address with router hostname:

            ...

            ANSWER

            Answered 2021-Dec-09 at 23:04

            You can set the default-selector("UNKNOWN") option for add-contextual-data(), and add a record to your CSV file with the ID UNKNOWN, and use the following value when setting .meta_router.hostname: ${.json.router_ip}.

            TLDR: templates are supported inside the CSV file as well.

            Note: In case your IPs are reverse-resolvable, you can just use the $(dns-resolve-ip) template function instead of maintaining a complete CSV database:

            https://github.com/syslog-ng/syslog-ng/pull/3046

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

            QUESTION

            Why git keeps ignoring files within certain directory despite I stated it should not
            Asked 2021-Nov-19 at 12:51

            I have setup git under my home assistant directory. The suggest the following configuration:

            ...

            ANSWER

            Answered 2021-Nov-17 at 14:51

            If your intention is to ignore all toplevel elements by default, and whitelist some of them, replace * with /* :

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

            QUESTION

            Why logrotate doesn't properly postrotate only has 1 day delay
            Asked 2021-Sep-29 at 19:36

            I have in /etc/logrotate.d/mikrotik :

            ...

            ANSWER

            Answered 2021-Sep-29 at 19:36

            Problem solved.

            It relied on the order in which the operations were performed. Lgrotate does a 'postrotate' section before compressing to .gz. The solution to the problem was to change the name from 'postrotate' to 'lastaction'.

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

            QUESTION

            Sending Logstash Jenkins Plugin data to endpoint
            Asked 2021-Mar-11 at 14:16

            I'm attempting to use the logstash Jenkins plugin to send build log data to an HTTP endpoint that just requires a sample auth token to ingest. If I was to do a basic curl command it'd look like this. If I was to do a curl command it'd look like this..

            ...

            ANSWER

            Answered 2021-Mar-11 at 14:16

            For posterity the best way to do this is to use the logstash plugin. There is an option to export elastic data, TCP data and also the ability to send to syslog.

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

            QUESTION

            Syslog-ng and Log4j2 configuration
            Asked 2021-Feb-15 at 12:50

            I am trying to write to Syslog from Log4J2 and I am having problems connecting to Syslog-ng. I believe the port is the problem, but I could not find anywhere in the syslog-ng.conf file what is the port. This is my Log4j2 XML file:

            ...

            ANSWER

            Answered 2021-Feb-15 at 12:50

            requires a network source that needs to be specified in the syslog-ng configuration, for example:

            source { network(port(514)); };

            Alternatively, default-network-drivers() can be used, which sets good defaults (TCP/UDP 514 and 601):

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

            QUESTION

            SYSLOG-NG: Sending same log to two different index in elasticsearch
            Asked 2021-Feb-12 at 15:21

            I'm trying to send the same log flow to two different elasticsearch indexes, because of users with different roles each index.

            I use a file for destination too. Here is a sample:

            ...

            ANSWER

            Answered 2021-Feb-12 at 15:21

            You can check the exact error message in the journal logs, as it is suggested by systemctl:

            See "systemctl status syslog-ng.service" and "journalctl -xe" for details.

            Alternatively, you can start syslog-ng in the foreground:

            $ syslog-ng -F --stderr

            You probably have a persist-name collision due to the matching elasticsearch-http() URLs. Please try adding the persist-name() option with 2 unique names, for example:

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

            QUESTION

            Customizing log destination syslog-ng using macros
            Asked 2021-Feb-11 at 12:32

            I have installed Syslog-ng 3.25, the server is working and I can save data in mongo db without a problem, but I want to customize the destination of data depending on some properties, like source IP, and date, so for every day the server will save logs in a new location. I defined the destination like this
            destination d_pppoedb {

            ...

            ANSWER

            Answered 2021-Feb-11 at 12:32

            The mongodb() destination currently does not support macros in its collection() option. You can open a feature request on GitHub, if you want to see that in a future release.

            Your second example, however, should work as expected. In case ${YEAR}.${MONTH}.${DAY} directories do not exist, you should add the create-dirs(yes) option as well.

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

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

            Vulnerabilities

            No vulnerabilities reported

            Install syslog-ng

            The simplest configuration accepts system logs from /dev/log (from applications or forwarded by systemd) and writes everything to a single file:.
            Releases and precompiled tarballs are available on [GitHub][github-repo]. To compile from source, the easiest is to use dbld, a docker based, self-hosted compile/build/release infrastructure within the source tree. See dbld/README.md for more information.
            Binaries are available in various Linux distributions and contributors maintain packages of the latest and greatest syslog-ng version for various OSes.
            Binaries are also available as a Docker image. To find out more, check out the blog post, [Your central log server in Docker](https://syslog-ng.com/blog/central-log-server-docker/).

            Support

            syslog-ng is developed by a community of volunteers, the best way to contact us is via our [github project page](http://github.com/syslog-ng/syslog-ng) project, our [gitter channel](https://gitter.im/syslog-ng/syslog-ng) or our [mailing list](https://lists.balabit.hu/mailman/listinfo/syslog-ng). syslog-ng is integrated into almost all Linux distributions and BSDs, it is also incorporated into a number of products, see our [powered by syslog-ng](https://syslog-ng.com/powered-by-syslog-ng) page for more details.
            Find more information at:

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

            Find more libraries

            Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link