From 96f394e67ebda80c123cc77948a94bee2178441d Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 13 Feb 2008 17:56:46 +0000 Subject: created initial doc for imfile plugin --- doc/Makefile.am | 2 + doc/imfile.html | 65 +++++ doc/rsyslog_ng_comparison.html | 650 +++++++++++++++++++++-------------------- 3 files changed, 399 insertions(+), 318 deletions(-) create mode 100644 doc/imfile.html (limited to 'doc') diff --git a/doc/Makefile.am b/doc/Makefile.am index 8d126094..3bc63dbe 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -25,6 +25,8 @@ html_files = \ version_naming.html \ contributors.html \ dev_queue.html \ + omsnmp.html \ + imfile.html \ queues.html \ queueWorkerLogic.dia \ queueWorkerLogic.jpg \ diff --git a/doc/imfile.html b/doc/imfile.html new file mode 100644 index 00000000..6942b366 --- /dev/null +++ b/doc/imfile.html @@ -0,0 +1,65 @@ + + +Text File Input Monitor + + + + +

Text File Input Module

+

Module Name:    imfile

+

Author: Rainer Gerhards +<rgerhards@adiscon.com>

+

Description:

+

Provides the ability to convert any standard text file into +a syslog message. A standard +text file is a file consisting of printable characters with lines +being delimited by LF.

The +file is read line-by-line and any line read is passed to rsyslog's rule +engine. The rule engine applies filter conditons and selects which +actions needs to be carried out.

As new lines are written they +are taken from the file and processed. Please note that this happens +based on a polling interval and not immediately. The file monitor +support file rotation. To fully work, rsyslogd must run while the file +is rotated. Then, any remaining lines from the old file are read and +processed and when done with that, the new file is being processed from +the beginning. If rsyslogd is stopped during rotation, the new file is +read, but any not-yet-reported lines from the previous file can no +longer be obtained.

When rsyslogd is stopped while monitoring a +text file, it records the last processed location and continues to work +from there upon restart. So no data is lost during a restart (except, +as noted above, if the file is rotated just in this very moment).

Currently, +the file must have a fixed name and location (directory). It is planned +to add support for dynamically generating file names in the future.

Multiple files may be monitored by specifying $InputRunFileMonitor multiple times. +

+

Configuration Directives:

+Caveats/Known Bugs: +

Sample:

+

The following sample monitors a single file.

+ +

[rsyslog.conf overview] +[manual index] [rsyslog site]

+

This documentation is part of the +rsyslog +project.
+Copyright © 2008 by Rainer +Gerhards and +Adiscon. +Released under the GNU GPL version 3 or higher.

+ \ No newline at end of file diff --git a/doc/rsyslog_ng_comparison.html b/doc/rsyslog_ng_comparison.html index 92c48399..b5ba79df 100644 --- a/doc/rsyslog_ng_comparison.html +++ b/doc/rsyslog_ng_comparison.html @@ -1,325 +1,339 @@ - + + +rsyslog vs. syslog-ng - a comparison - - -rsyslog vs. syslog-ng - a comparison -

rsyslog vs. syslog-ng

- -

Written by - - Rainer - - Gerhards (2008-01-29)

- -

We have often been asked abut a comparison sheet between rsyslog and -syslog-ng. Unfortunately, I do not know much about syslog-ng, I did not even use -it once. Also, there seems to be no comprehensive feature sheet available for -syslog-ng. So I started this comparison, but it probably is not complete. For -sure, I miss some syslog-ng features. This is not an attempt to let rsyslog -shine more than it should. I just used the rsyslog feature sheet as a staring -point, simply because it was available. If you would like to add anything to the chart, or -correct it, please simply drop me a line. -I would love to see a real honest and up-to-date comparison sheet, so please -don't be shy ;)

+

Written by Rainer Gerhards +(2008-01-29)

+

We have often been asked abut a comparison sheet between +rsyslog and syslog-ng. Unfortunately, I do not know much about +syslog-ng, I did not even use it once. Also, there seems to be no +comprehensive feature sheet available for syslog-ng. So I started this +comparison, but it probably is not complete. For sure, I miss some +syslog-ng features. This is not an attempt to let rsyslog shine more +than it should. I just used the rsyslog +feature sheet as a staring point, simply because it was +available. If you would like to add anything to the chart, or correct +it, please simply drop +me a line. I would love to see a real honest and up-to-date +comparison sheet, so please don't be shy ;)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Featurersyslogsyslog-ng
native support for - writing to MySQL - databasesyespaid edition only
native support for writing to Postgres databasesyespaid edition only
support for (plain) tcp based syslogyesyes
support for sending and receiving compressed syslog messagesyesI think "no"
support for on-demand on-disk spooling of messagesyespaid edition only
ability to configure backup syslog/database servers yesno
support for receiving messages via reliable - RFC - 3195 deliveryyesno
ability to generate file names and directories (log targets) - dynamicallyyesyes
control of log output format, including ability to present channel - and priority as visible log datayesnot sure...
good timestamp format control; at a minimum, ISO 8601/RFC 3339 - second-resolution UTC zoneyes? (I guess so)
ability to reformat message contents and work with substringsyesI think yes
support for log files larger than 2gbyesyes
support for file size limitation and automatic rollover command - executionyesyes (?)
support for running multiple rsyslogd instances on a single machineyes? (but I think yes)
support for - ssl-protected - syslog via stunnelvia stunnel
- paid edition natively
ability to filter on any part of the message, not just facility and - severityyesyes
ability to use regular expressions in filtersyesyes
support for discarding messages based on filtersyes?
ability to execute shell scripts on received messagesyesyes
ability to pipe messages to a continously running programnoyes
ability to preserve the original hostname in NAT environments and - relay chainsyesyes (think so)
ability to limit the allowed network senders (syslog ACLs)yesyes (?)
powerful BSD-style hostname and program name blocks for easy - multi-host supportyesno
massively multi-threaded for tomorrow's multi-core machinesyes?
support for IETF's new syslog-protocol draftyesno
support for syslog-transport-tls based framing on syslog/tcp - connectionsyesno (?)
support for IPv6yesyes
ability to control repeated line reduction ("last message repeated n - times") on a per selector-line basisyesyes (?)
ability to include config file from within other config - filesyesno (?)
ability to include all config files existing in a - specific directoryyesno (?)
supports multiple actions per selector/filter conditionyes?
plug-in interfaceyesno (?)
Windows Event Log gatherervia EventReporter or - MonitorWare Agent (both commercial - software)via Windows agent, paid edition only
config file formatcompatible to legacy syslogd but uglyclean but not backwards compatible
support for GSS-APIyes?
web interfacephpLogCon
- [also works with - php-syslog-ng]
- php-syslog-ng
using text files as input sourceyesyes
native support for Oracle databasesnopaid edition only
native support for SQLite databasesnopaid edition only
rate-limiting output actionsyesyes
discard low-priority messages under system stressyes?
flow control (slow down message recpetion - when system is busy)limited (TCP Window, delay on queue full)yes (limited, too? "stops accepting - messages")
rewriting messagesyesyes (at least I think so...)
output data into various formatsyesyes (looks somewhat limited to me)
ability to control "message repeated n times" - generationyesno (?)
on the wire (zlib) message compressionyesno (?)
licenseGPLv3 (GPLv2 for v2 branch)GPL (paid edition is closed source)
supported platformsLinux, BSD, anecdotical seen on Solarismany popular *nixes
DNS cachenoyes
native ability to send SNMP trapsyes?
? (probably many I do no know off...)noyes
Featurersyslogsyslog-ng
native support for writing +to MySQL databasesyespaid edition only
native support for writing to +Postgres databasesyespaid edition only
support for (plain) tcp based syslogyesyes
support for sending and receiving +compressed syslog messagesyesI think "no"
support for on-demand on-disk +spooling of messagesyespaid edition only
ability to configure backup +syslog/database servers yesno
support for receiving messages via +reliable RFC +3195 deliveryyesno
ability to generate file names and +directories (log targets) dynamicallyyesyes
control of log output format, +including ability to present channel and priority as visible log datayesnot sure...
good timestamp format control; at a +minimum, ISO 8601/RFC 3339 second-resolution UTC zoneyes? (I guess so)
ability to reformat message +contents and work with substringsyesI think yes
support for log files larger than +2gbyesyes
support for file size limitation +and automatic rollover command executionyesyes (?)
support for running multiple +rsyslogd instances on a single machineyes? (but I think yes)
support for ssl-protected +syslog via +stunnelvia stunnel
+paid edition natively
ability to filter on any part of +the message, not just facility and severityyesyes
ability to use regular expressions +in filtersyesyes
support for discarding messages +based on filtersyes?
ability to execute shell scripts on +received messagesyesyes
ability to pipe messages to a +continously running programnoyes
ability to preserve the original +hostname in NAT environments and relay chainsyesyes (think so)
ability to limit the allowed +network senders (syslog ACLs)yesyes (?)
powerful BSD-style hostname and +program name blocks for easy multi-host supportyesno
massively multi-threaded for +tomorrow's multi-core machinesyes?
support for IETF's new +syslog-protocol draftyesno
support for syslog-transport-tls +based framing on syslog/tcp connectionsyesno (?)
support for IPv6yesyes
ability to control repeated line +reduction ("last message repeated n times") on a per selector-line basisyesyes (?)
ability to include config file from +within other config filesyesno (?)
ability to include all config files +existing in a specific directoryyesno (?)
supports multiple actions per +selector/filter conditionyes?
plug-in interfaceyesno (?)
Windows Event Log gatherervia EventReporter +or MonitorWare Agent +(both commercial software)via Windows agent, paid edition only
config file formatcompatible to legacy syslogd but +uglyclean but not backwards compatible
support for GSS-APIyes?
web interfacephpLogCon
+[also works with +php-syslog-ng]
+php-syslog-ng
using text files as input sourceyesyes
native support for Oracle databasesnopaid edition only
native support for SQLite databasesnopaid edition only
rate-limiting output actionsyesyes
discard low-priority messages under +system stressyes?
flow control +(slow down message recpetion when system is busy)limited (TCP +Window, delay on queue full)yes (limited, +too? "stops accepting messages")
rewriting messagesyesyes (at least I think so...)
output data into various formatsyesyes (looks somewhat limited to me)
ability to control "message +repeated n times" generationyesno (?)
on the wire (zlib) message +compressionyesno (?)
licenseGPLv3 (GPLv2 for v2 branch)GPL (paid edition is closed source)
supported platformsLinux, BSD, anecdotical seen on +Solarismany popular *nixes
DNS cachenoyes
native ability to send SNMP trapsyes?
? (probably many I do no know +off...)noyes
-

Based on a discussion I had, I also wrote about the political argument why -it is good to have another strong syslogd besides syslog-ng. You may want to -read it at my blog at "Why -does the world need another syslogd?".

-

This document is current as of 2008-02-11 and definitely incomplete (I did -not yet manage to complete it!).

- - - - +

Based on a discussion I had, I also wrote about the political +argument why it is good to have another strong syslogd besides syslog-ng. +You may want to read it at my blog at "Why +does the world need another syslogd?".

+

This document is current as of 2008-02-11 and definitely +incomplete (I did not yet manage to complete it!).

+ \ No newline at end of file -- cgit