-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'config-file': feature with optional configuration file …
…support
- Loading branch information
Showing
25 changed files
with
2,142 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
include $(top_srcdir)/build/Makefile.am.common | ||
|
||
AUTOMAKE_OPTIONS = foreign subdir-objects | ||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
install-exec-local: | ||
if [ -f $(sysconfdir)/snoopy.ini ]; then \ | ||
echo ; \ | ||
echo "CONFIG FILE EXISTS, skipping: $(sysconfdir)/snoopy.ini" ; \ | ||
echo ; \ | ||
else \ | ||
echo "Installing: $(sysconfdir)/snoopy.ini" ; \ | ||
install snoopy.ini $(sysconfdir)/snoopy.ini ; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
;;; REQUIRED Section | ||
; | ||
[snoopy] | ||
|
||
|
||
;;; Log Message Format specification | ||
; | ||
; May consist of: | ||
; - arbitrary text, is copied to log message as-is, | ||
; - calls to input providers without arguments: %{input} | ||
; - calls to input providers with argument : %{input:arg1} | ||
; - calls to input providers with arguments: %{input:arg1,arg2} <--- if input provider supports it | ||
; | ||
; Default value: | ||
; "[uid:%{uid} sid:%{sid} tty:%{tty} cwd:%{cwd} filename:%{filename}]: %{cmdline}" | ||
; | ||
message_format = "[uid:%{uid} sid:%{sid} tty:%{tty} cwd:%{cwd} filename:%{filename}]: %{cmdline}" | ||
|
||
|
||
;;; Filter Chain specification | ||
; | ||
; Example definitions: | ||
; - filter_chain = "exclude_uid:0" # Log all commands, except the ones executed by root | ||
; - filter_chain = "exclude_uid:1,2,3" # Log all commands, except those executed by users with UIDs 1, 2 and 3 | ||
; - filter_chain = "only_uid:0" # Log only root commands | ||
; - filter_chain = "filter1:arg11;filter2:arg21,arg22;filter3:arg31,32,33" | ||
; | ||
; Here you have four filter definitions for your reference, they are | ||
; quite self-explanatory. As you probably noted in the last example, | ||
; multiple filters may be defined in a chain, separated by semicolon. | ||
; | ||
; Each filter chains can contain multiple filter definitions. They are | ||
; processed in order of appearance. If any of the filters decides the | ||
; message should be dropped, the filter chain processing is immediately | ||
; interrupted and message is not passed to syslog. | ||
; | ||
; If filter requires an argument, they may be passed to them by | ||
; specifying a colon after filter name, followed by an argument. | ||
; Argument is passed to the filter as-is. If passing of multiple | ||
; arguments to filter is required, they are passed as single string | ||
; and must be parsed/tokenized by the filter itself (see "only_uid" | ||
; filter for example). | ||
; | ||
; Filter chain specification may not contain any spaces. | ||
; (Acutally spaces are allowed in arguments, but not in filter names | ||
; and between semicolons and filter names, nor between filter names | ||
; and following colons.) | ||
; | ||
; Default value: | ||
; "" (empty string) | ||
; | ||
filter_chain = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.