Code Monkey home page Code Monkey logo

etronicfan / syslog-ng Goto Github PK

View Code? Open in Web Editor NEW

This project forked from syslog-ng/syslog-ng

0.0 1.0 0.0 23.48 MB

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

Home Page: http://www.syslog-ng.org/

License: Other

CMake 3.02% Makefile 3.12% Shell 2.61% M4 1.52% Ruby 0.01% Roff 0.08% Perl 0.19% Vim Script 0.03% Awk 0.13% C 80.99% C++ 0.23% Yacc 0.84% Lex 0.25% Objective-C 0.08% Python 3.19% Java 3.73%

syslog-ng's Introduction

Gitter Build Status

syslog-ng

syslog-ng is an enhanced log daemon, supporting a wide range of input and output methods: syslog, unstructured text, message queues, databases (SQL and NoSQL alike), and more.

Quickstart

The easiest configuration that accepts system logs on /dev/log (from applications or forwarded by systemd) and writes everything to a single file is as follows:

@version: 3.16
@include "scl.conf"

log {
	source { system(); };
	destination { file("/var/log/syslog"); };
};

This one also processes logs from the network (TCP/514 by default):

@version: 3.16
@include "scl.conf"

log {
	source {
		system();
		network();
	};
	destination { file("/var/log/syslog"); };
};

Structured/application logging, local submission via JSON, output in key=value format:

@version: 3.16
@include "scl.conf"

log {
	source { system(); };
	destination { file("/var/log/app.log" template("$(format-welf --subkeys .cim.)\n")); };
};

Here's how to submit a structured message using "logger":

$ logger '@cim: {"name1":"value1", "name2":"value2"}'

and the result will be:

name1=value1 name2=value2

For a brief introduction to configuring the syslog-ng application, see the quickstart guide.

Features

  • receive and send RFC3164 and RFC5424 style syslog messages
  • work with any kind of unstructured data
  • receive and send JSON formatted messages
  • classify and structure logs with built-in parsers (csv-parser(), db-parser(), kv-parser(), ...)
  • normalize, crunch, and process logs as they flow through the system
  • hand over messages for further processing using message queues (like AMQP), files or databases (like PostgreSQL or MongoDB), and
  • forward log messages to big data tools like Elasticsearch, Apache Kafka, or Apache Hadoop.

Performance:

  • syslog-ng provides performance levels comparable to a large cluster while running on a single node.
  • In the simplest use case, it scales up to 600-800k messages per second.
  • But classification, parsing, and filtering still produce several tens of thousands messages per second.

Community:

  • syslog-ng is developed by a community of volunteers, the best way to contact us is via our github project page project, our gitter channel or our mailing list.
  • 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 page for more details.

Sponsors:

  • Balabit is the original creator and the largest current sponsor of the syslog-ng project, they provide support, professional services, and addons you might be interested in.

Feedback

We are really interested in who uses our software, so if you do and you like what you see, please tell us about it. A "star" on github, an email with "thanks" in it is lots already, but learning about your use case, experience, things to improve would be most appreciated.

Just send an email to feedback (at) syslog-ng.org.

Should not take more than a minute, right? Now go ahead. Please.

FeedbackPowersOpenSource.

Installation from source

Releases and tarballs ready to compile are are made available on GitHub.

To compile from source, the usual drill applies (assuming you have the required dependencies):

$ ./configure && make && make install

If you don't have a configure script (because of cloning from git, for example), then run ./autogen.sh to generate it.

Some of the functionality is compiled only in case the required development libraries are present. The configure script displays a summary of enabled features at the end of its run. For details, see the syslog-ng compiling instructions.

Installation from binaries

Binaries are available in various Linux distributions and contributors maintain packages of the latest and greatest syslog-ng version for various OSes.

Debian/Ubuntu

Simply invoke the following command as root:

# apt-get install syslog-ng

The latest versions of syslog-ng are available for a wide range of Debian and Ubuntu releases and architectures from an unofficial repository.

For instructions on how to install syslog-ng on Debian/Ubuntu distributions, see the blog post Installing the latest syslog-ng on Ubuntu and other DEB distributions.

Fedora

syslog-ng is available as a Fedora package that you can install using yum:

# yum install syslog-ng

You can download packages for the latest versions from here.

For instructions on how to install syslog-ng on RPM distributions, see the blog post Installing latest syslog-ng on RHEL and other RPM distributions.

If you wish to install the latest RPM package that comes from a recent commit in Git for testing purposes, then read the blog post RPM packages from syslog-ng Git HEAD.

Others

Binaries for other platforms are listed on the official third party page.

Installation from Docker image

Binaries are also available as a Docker image. To find out more, check out the blog post Your central log server in Docker.

Documentation

The documentation of the latest released version of syslog-ng Open Source Edition is available here. For earlier versions, see the syslog-ng Documentation Page. For ancient versions, see the Balabit Documentation Archive.

Contributing

If you want to modify the source of syslog-ng, for example, to correct a bug or develop a new module, the syslog-ng gitbook helps you to take the first steps with the code base.

syslog-ng's People

Contributors

bazsi avatar lbudai avatar algernon avatar mranno avatar furiel avatar juhaszviktor avatar bkil-syslogng avatar kvch avatar ihrwein avatar jszigetvari avatar presidento avatar talien avatar szemere avatar kokan avatar folti avatar mochrul avatar litterbear avatar ibmibmibm avatar aneutrals avatar gdani avatar mitzkia avatar u2yg avatar falzm avatar blint avatar fekete-robert avatar opoplawski avatar millert avatar mehul-m-prajapati avatar bodnartibi avatar vincentbernat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.