OES 2 SP2: NSS Auditing Client Logger (VLOG) Utility Reference
Legal Notices
Novell, Inc., makes no representations or warranties with respect to the contents or use of this documentation, and
specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose.
Further, Novell, Inc., reserves the right to revise this publication and to make changes to its content, at any time,
without obligation to notify any person or entity of such revisions or changes.
Further, Novell, Inc., makes no representations or warranties with respect to any software, and specifically disclaims
any express or implied warranties of merchantability or fitness for any particular purpose. Further, Novell, Inc.,
reserves the right to make changes to any and all parts of Novell software, at any time, without any obligation to
notify any person or entity of such changes.
Any products or technical information provided under this Agreement may be subject to U.S. export controls and the
trade laws of other countries. You agree to comply with all export control regulations and to obtain any required
licenses or classification to export, re-export or import deliverables. You agree not to export or re-export to entities on
the current U.S. export exclusion lists or to any embargoed or terrorist countries as specified in the U.S. export laws.
You agree to not use deliverables for prohibited nuclear, missile, or chemical biological weaponry end uses. See the
Novell International Trade Services Web page (http://www.novell.com/info/exports/) for more information on
exporting Novell software. Novell assumes no responsibility for your failure to obtain any necessary export
approvals.
This reference guide describes the syntax and options for the Novell Storage Services (NSS)
Auditing Client Logger (VLOG) utility for Novell Open Enterprise Server (OES) 2 Support Pack 2
(SP2) Linux. The VLOG utility is used with the NSS Auditing Engine, which is available in OES 2
SP2 Linux and later.
This guide includes the following sections:
Chapter 1, “Overview of the NSS Auditing Client Logger (VLOG) Utility,” on page 9
Chapter 2, “VLOG Utility Man Page,” on page 13
Audience
This guide is intended for system administrators or anyone who is responsible for auditing file
system events on NSS file systems on OES 2 SP2 Linux servers.
novdocx (en) 16 April 2010
Knowledge of the NSS file system is assumed. Some background knowledge of the host operating
system is also assumed.
Feedback
We want to hear your comments and suggestions about this manual and the other documentation
included with this product. Please use the User Comments feature at the bottom of each page of the
online documentation, or go to www.novell.com/documentation/feedback.html and enter your
comments there.
Documentation Updates
The VLOG man page,
with any updates to the VLOG utility.
For the most recent version of the OES 2 SP2: NSS Auditing Client Logger (VLOG) Reference, visit
the Novell Open Enterprise Server 2 Documentation Web site (http://www.novell.com/
documentation/oes2/security.html) under Security.
Additional Documentation
Information about the NSS Auditing Engine SDK (Software Development Kit) is available on the
NSS Auditing SDK Web site (http://developer.novell.com/wiki/index.php/NSS_Auditing_SDK).
vlog(8)
, is available on the server. Updates to the man page are delivered
The Novell Storage Services (NSS) Auditing Client Logger (VLOG) utility for Novell Open
Enterprise Server (OES) 2 Support Pack 2 (SP2) Linux is used with the NSS Auditing Engine (
etc/init.d/novell-vigil
NSS on an OES 2 SP2 Linux or later server.
Section 1.1, “Using VLOG with the NSS Auditing Engine,” on page 9
Section 1.2, “Using Auditing Client Applications with the NSS Auditing Engine,” on page 10
1.1 Using VLOG with the NSS Auditing Engine
When VLOG is running, it intercepts, parses, filters, augments, and displays auditing records
received from the NSS Auditing Engine (
VLOG utility, see Chapter 2, “VLOG Utility Man Page,” on page 13.
The basic functionality includes:
Section 1.1.1, “Logged Output,” on page 9
Section 1.1.2, “Paths to Include or Exclude,” on page 9
Section 1.1.3, “File System Events to Monitor,” on page 9
Section 1.1.4, “NSS, NCP, and CIFS Event Sub-Types to Monitor,” on page 10
). The NSS Auditing Engine is installed by default when you install
vigil
). For information about configuring and using the
1
/
Section 1.1.5, “VIGIL Events to Monitor,” on page 10
1.1.1 Logged Output
By default,
in CSV (comma-separated values) format and SENT format (for Novell Sentinel/Log Manager
products). For information, see “VLOG Options” on page 15.
vlog
sends its output to
stdout
in an XML record format. VLOG also supports output
1.1.2 Paths to Include or Exclude
VLOG allows you to specify which files and directories are to be monitored. You can specify
patterns for the file and directory names by using a defined set of search characters. You can specify
which file paths are to be included or excluded. For information, see “Path Element Options” on
page 21. For examples of path patterns, see “Path Element Examples” on page 22.
1.1.3 File System Events to Monitor
VLOG can be configured to log various file system events on files and directories that are reported
by the NSS Auditing Engine, including:
delete
create
Overview of the NSS Auditing Client Logger (VLOG) Utility
9
open
close
rename
link
metadata modified
trustee added or removed
inherited rights modified
For information, see “Event Types” on page 26 and “Event Type Examples” on page 26.
1.1.4 NSS, NCP, and CIFS Event Sub-Types to Monitor
These NSS file system events can be audited by NSS, NCP (NetWare Core Protocol), and CIFS subtypes. For information, see “Event Sub-Types NSS, NCP, and CIFS” on page 27 and “Event Sub-
Type Examples” on page 28.
1.1.5 VIGIL Events to Monitor
novdocx (en) 16 April 2010
VLOG can also be configured to report various events internal to the NSS Auditing Engine, referred
to as VIGIL events, such as:
Starting or stopping the
Starting or stopping the
Starting or stopping the
Starting or stopping the
Starting or stopping the Auditing Client (an internal construct of the NSS Auditing Engine)
Starting or stopping the Auditing Client User (an internal construct of the NSS Auditing
Engine)
Rolling the audit record log file over to a new file when the log reaches an administrator-
specified maximum size
For information, see “Patterns for Filtering Records of Type VIGIL” on page 17 and “Examples for
Filtering VIGIL Events” on page 19.
vigil.ko
vigil.ncp.ko
vigil.nss.ko
vigil.cifs.ko
kernel module
kernel module
kernel module
kernel module
1.2 Using Auditing Client Applications with the
NSS Auditing Engine
Some auditing client applications, such as Novell Sentinel Log Manager and various third-party
products, can access audited events that are reported by the NSS Auditing Engine. Information
about the NSS Auditing Engine Software Developer Kit (SDK) is available on the NSS Auditing
SDK Web site (http://developer.novell.com/wiki/index.php/NSS_Auditing_SDK).
Section 1.2.1, “Novell Sentinel Log Manager,” on page 11
Section 1.2.2, “Third-Party Partner Applications,” on page 11
Novell Sentinel Log Manager can be used to collect and report on event logs from the NSS Auditing
Client Logger utility. Novell Sentinel Log Manager runs on a 64-bit SUSE Linux Enterprise Server
(SLES) 11 host. You can download Novell Sentinel Log Manager from the Novell Download Web
site (http://download.novell.com/Download?buildid=woGGwp3Mab4~). A 90-day evaluation
license is available on the download site. For installation and usage instructions, see the Novell
Sentinel Log Manager Documentation Web site (http://www.novell.com/documentation/
novelllogmanager10/).
1.2.2 Third-Party Partner Applications
As of the OES 2 SP2 Linux release, the following Novell partners are developing applications for
use with the NSS Auditing Engine:
Blue Lance
NetVision
Symantec
novdocx (en) 16 April 2010
Overview of the NSS Auditing Client Logger (VLOG) Utility11
This section provides the syntax, options, and examples for the Novell Storage Services (NSS)
Auditing Client Logger (VLOG) utility for Novell Open Enterprise Server (OES) 2 Support Pack 2
(SP2) Linux. This information is also available on the server as the
“Synopsis” on page 14
“Availability” on page 14
“Syntax” on page 14
“Description” on page 15
“VLOG Options” on page 15
“Filtering Records” on page 17
“Patterns for Filtering Records of Type VIGIL” on page 17
“Patterns for Filtering Records of Type NSS, NCP, and CIFS” on page 19
“Filter Pattern Examples” on page 28
vlog(8)
man page.
novdocx (en) 16 April 2010
2
“Troubleshooting” on page 29
VLOG Utility Man Page
13
vlog(8)
Name
vlog - The Novell Storage Services Auditing Client Logger utility.
Synopsis
/opt/novell/vigil/bin/vlog [OPTIONS]
or information about options, see “VLOG Options” on page 15.
Availability
Novell Open Enterprise Server 2 Support Pack 3 Linux or later. It is also available as a patch
(released in April 2010) to Novell Open Enterprise Server 2 Support Pack 2 Linux.
Syntax
novdocx (en) 16 April 2010
Prior to running
To check the status of the engine, issue the following command (as the
vlog
, the NSS Auditing Engine (
/etc/init.d/novell-vigil
root
user) in a terminal
) should be started.
console:
/etc/init.d/novell-vigil status
If the status is not “
root
the
/etc/init.d/novell-vigil start
user) in a terminal console:
Run the NSS Auditing Client Logger (
Running
”, the engine should be started by issuing the following command (as
vlog
) utility in a terminal console (generally as the
root
user).
/opt/novell/vigil/bin/vlog [OPTIONS]
Stopping
where
instances of
killall -s SIGTERM vlog
IMPORTANT: If
Engine (
If the application is terminated without a
is running), the NSS Auditing Engine does not discontinue sending auditing records to the
vlog
requires a
vlog
is running, or by using the
vlog
, enter the following in a terminal console:
vigil
) to discontinue sending auditing data records to the specific instance of
SIGTERM
vlog
terminates because of a
signal. This can be done by issuing a Ctrl+C in the terminal
kill
or
killall
SIGTERM
SIGTERM
signal (such as closing the window in which
command. For example, to kill all
signal, it instructs the NSS Auditing
vlog
vlog
.
vlog
instance. Because an auditing record log entry is sent by appending it to the log file instance, the log
file continues to grow. Over time, the audit log files can grow to fill all available disk space. See
application supports filtering of events, as they are received from the NSS Auditing
vigil
Engine (
either of the following methods to specify filter patterns:
A filter file of filter patterns (consisting of one filter pattern per line) can be specified with the
[-F, --filterFile]
]filename
A filter file can contain comment lines. Comment lines begin with a pound sign (#) or a double
forward slash (
), by using filter patterns. Filter patterns are rules for filtering events. You can use
command line option. This option must be followed by a
[path/
.
//
).
novdocx (en) 16 April 2010
Individual filter patterns can be specified with the
[-p, --pattern]
command line option.
This option must be followed by a quoted filter pattern.
There are two kinds of patterns that can be specified from a filter file by using the
filterFile]
option, or specified individually in the command by using the
[-F, --
[-p, --pattern]
option.
Patterns for filtering records of type VIGIL
Patterns for filtering records of type NSS, NCP, and CIFS
Each of these pattern types are discussed below.
Patterns for Filtering Records of Type VIGIL
Records of type VIGIL represent operations internal to the NSS Auditing Engine. By default,
vlog
records of type VIGIL are not filtered from
“Filter Syntax for Type VIGIL Records” on page 17
“Filter Keywords for Type VIGIL Records” on page 18
“Examples for Filtering VIGIL Events” on page 19
Filter Syntax for Type VIGIL Records
The general pattern for filtering records of type VIGIL is:
's output.
:[+ or -]KEYWORD [[+ or -]KEYWORD]
A pattern used to filter records of type VIGIL has a colon (:) as the first character of the pattern.
The colon is followed by one or more keywords that represent records that are to be included or
vlog
excluded from the
output. Multiple keyword entries are separated by a space. Keywords are
applied in the order that they appear in the filter pattern.
The specified keyword causes specific records of type VIGIL to be included or excluded from the
output. Each keyword is preceded by an exclude/include character that indicates whether the records
vlog
that match the specified pattern should be excluded or included in the
output. A minus (-)
character indicates that the records that are represented by the keyword that follows it should be
vlog
excluded from the
by the keyword that follows it should be included in the
output. A plus (+) character indicates that the records that are represented
vlog
output
VLOG Utility Man Page17
Filter Keywords for Type VIGIL Records
The keywords for VIGIL record types are as follows:
START
novdocx (en) 16 April 2010
Each time the
STOP
Each time the
clients.
NCP_START
Each time the
auditing clients.
NCP_STOP
Each time the
all auditing clients.
NSS_START
Each time the
auditing clients.
NSS_STOP
Each time the
all auditing clients.
CIFS_START
vigil.ko
vigil.ko
vigil.ncp.ko
vigil.ncp.ko
vigil.nss.ko
vigil.nss.ko
kernel module is loaded, a “Start” record is sent to all auditing clients.
kernel module is unloaded, a “Stop” record is sent to all auditing
kernel module is loaded, an “NCP started” record is sent to all
kernel module is unloaded, an “NCP stopped” record is sent to
kernel module is loaded, an “NSS started” record is sent to all
kernel module is unloaded, an “NSS stopped” record is sent to
Each time the
vigil.cifs.ko
kernel module is loaded, a “CIFS started” record is sent to all
auditing clients.
CIFS_STOP
Each time the
vigil.cifs.ko
kernel module is unloaded, a “CIFS stopped” record is sent to
all auditing clients.
CLIENT_START
Each time a new Auditing Client (an internal NSS Auditing Engine construct) is activated, a
“Client started” record is sent to all auditing clients.
CLIENT_STOP
Each time a new Auditing Client (an internal NSS Auditing Engine construct) is deactivated, a
“Client stopped” record is sent to all auditing clients.
USER_START
Each time a new Auditing Client User (an internal NSS Auditing Engine construct) is activated,
a “User started” record is sent to all auditing clients.
USER_STOP
Each time a new Auditing Client User (an internal NSS Auditing Engine construct) is
deactivated, a “User stopped” record is sent to all auditing clients.
) appends auditing records to a file in a directory specified by
the auditing client application. The auditing client application can also specify the maximum
size of the file in which auditing records are placed, and can optionally specify that when the
file maximum size has been reached, the NSS Auditing Engine creates a new file (in the
specified directory) and begins appending audit records to the new file.
When the NSS Auditing Engine creates a new file (in which audit records will be placed), it
generates a “Roll” audit record, and appends it (as the last record) to the previously used file.
The record contains the full (Linux) path of the newly created file, where audit record
processing should continue. Roll records are sent only to the specifically affected auditing
client, not to all auditing clients.
ALL
Used to indicate all records of type VIGIL.
Examples for Filtering VIGIL Events
The following are examples of how records of type VIGIL might be filtered from the
vlog
specifying individual patterns at the command line prompt:
novdocx (en) 16 April 2010
output by
/opt/novell/vigil/bin/vlog -p":-all"
Specifies a filter pattern that excludes all records of type VIGIL from the
/opt/novell/vigil/bin/vlog -p":-all +roll"
Specifies a filter pattern that excludes all records of type VIGIL from the
Keywords are applied in the order that they appear in the filter pattern. For example, the following
patterns are not equivalent:
/opt/novell/vigil/bin/vlog -p":-all +roll"
Specifies a filter pattern that excludes all records of type VIGIL, but then allows the
record. Of all the VIGIL type records, only the
/opt/novell/vigil/bin/vlog -p":+roll -all"
Specifies a filter pattern that allows the
Roll
Roll
Roll
events are output.
record, but then excludes all records of type
VIGIL. No VIGIL type records (of any event type) are output.
Patterns for Filtering Records of Type NSS, NCP, and CIFS
Records of type NSS, NCP, and CIFS represent operations on files.
“Filter Syntax for Type NSS, NCP, and CIFS Records” on page 20
“Negation Element Options” on page 20
“Path Element Options” on page 21
“Event Element Options” on page 26
VLOG Utility Man Page19
Filter Syntax for Type NSS, NCP, and CIFS Records
[negation_element]path_element (event [event...])
Patterns for filtering records of type NSS, NCP and CIFS consist of three elements in the following
order:
1. Negation Element: Indicates whether records that match the specified filter patterns that
follow are to be included or excluded from the auditing log. The negation element, if present, is
immediately followed by the path element.
2. Path Element: A filename-matching pattern or directory-name-matching pattern that specifies
directories or files to include or exclude from the audit log. The path element is delimited from
the event element by a [space or tab] character.
3. Event Element: A list of NSS file system events enclosed in parenthesis to include or exclude
from the audit log.
The options for each of the elements is described below.
Negation Element Options
novdocx (en) 16 April 2010
The negation element is a single character that is used to indicate whether the specified filter
patterns are to be included or excluded from the auditing log.
The negation element is a single character that precedes the path element:
! (exclamation mark character)
Used to negate the filter patterns specified in a filter file when the command line filter file
[-F, --filterFile]
option
is used.
- (minus character)
Used to exclude (negate) a filter pattern that is specified on the command line when the filter
pattern option
[-p, --pattern]
is used.
+ (plus character)
Used to include (non-negate) a filter pattern that is specified on the command line when the
filter pattern option
[-p, --pattern]
is used.
The negation element, if present, is immediately followed by the path element.
vlog
Audit records that match a negated filter pattern are excluded from the
vlog
uses the following logic to include and exclude audit records from being output:
output. Specifically,
1. If there are no include (non-negated) filter patterns specified (either in the filter pattern
-pattern]
option or the filter file
[-F, --filterFile]
option), include all audit records in
the output.
2. If one or more filter patterns are specified:
a. If the audit record does not match any of the include (non-negated) filter patterns, do not
output the record.
b. If the audit record is not excluded by 2a above, and if the audit record matches any of the
exclude (negated) filter patterns, do not output the record.
The path element of the filter pattern is a filename-matching pattern or directory-name-matching
pattern that specifies directories or files to include or exclude from the audit log.
The path element immediately follows the negation element (if present).
The path element is delimited from event element by a [space or tab] character. Thus, if a path
element contains a space or tab character, you must do one of the following: Enclose the path
element in quotation marks (such as
"VOL1:/xyz dir/"
within the path element by preceding it with a backslash (
), or escape each space or tab character
\
) character (such as
VOL1:/xyz\ dir/
The event element follows the path element delimiter (space character or tab character).
“Path Element Wildcard Characters” on page 21
“Path Element Examples” on page 22
Path Element Wildcard Characters
The syntax for the filename and directory name pattern allows for the following wildcard characters:
novdocx (en) 16 April 2010
).
?
Using the question mark (?) wildcard matches any single character, except for a forward slash
/
character (
).
*
Using the single asterisk (*) wildcard matches any sequence of zero or more characters, except
for a forward slash character (
/
).
**
Using the double asterisk (**) wildcard matches any sequence of zero or more characters,
including a forward slash character (
/
).
[chars]
Using the
[chars]
sequence of the form
forward slash (
wildcard matches any single character in
a-b
, then any character between a and b (inclusive) will match. The
/
) cannot be specified within
chars
chars
. If
chars
contains a
. A leading or trailing minus character (-)
simply includes the minus as one of the characters in the group.
\x
Using the backslash before a character matches the character specified, except for the forward
slash character (/).
{a,b,...}
Using the list of strings matches any of the strings a, b, and so on.
NOTE: Generally, the forward slash character (/) must be matched explicitly. The only exception is
in the use of a double asterisk (**).
For path element examples, see “Path Element Examples” on page 22.
VLOG Utility Man Page21
Path Element Examples
This section provides examples of path elements and a description of how each might be applied.
novdocx (en) 16 April 2010
/a[-e]?/joke
Filename Matches (Yes or No)
/a-h/joke Yes.
/adh/joke No. The [e-] group only includes “e” and
“-”, not “d”.
/aeh/joke Yes.
/a[c\-e]?/joke
Filename Matches (Yes or No)
/a-h/joke Yes.
/ach/joke Yes.
/adh/joke No. The [c\-e] group does not include “d”.
abcb6zqrtm No. Nothing after “abcd” would
allow “6”.
abcb8zqrtm Yes.
abcdefadzqrtm Yes.
abcdefdefqrtm Yes.
abcdefqrtm Yes.
abchijqrtm Yes.
abcxyqrtm No. Nothing after “abc” would
allow “xyq”.
abcxyzdefqrtm Yes.
abcxyzqrtm Yes.
For simplicity, the NSS volume name was omitted from the above examples. NSS audit records
vigil
emitted by the NSS Auditing Engine (
) have paths that include the NSS volume name. In
order to match these NSS audit records, the NSS volume name must be specified as part of the path
element, similar to the following:
VOL1:/a*?/a
Filename Matches (Yes or No)
VOL1:/ab/a Yes.
VLOG Utility Man Page25
novdocx (en) 16 April 2010
VOL2:/a*?/a
Filename Matches (Yes or No)
VOL1:/abb/a No.
VOL2:/a**?/a
Filename Matches (Yes or No)
VOL2:/a/b/c/a Yes.
Event Element Options
The event element consists of a list of events enclosed in parentheses. The events listed in the
parentheses are delimited by a [space or tab] character.
The event element follows the path element delimiter (space character or tab character).
“Event Types” on page 26
“Event Type Examples” on page 26
“Event Sub-Types NSS, NCP, and CIFS” on page 27
“Event Sub-Type Examples” on page 28
Event Types
Valid event options are:
DELETE
CREATE
OPEN
CLOSE
RENAME
MODIFYMETADATA
ADDTRUSTEE
REMOVETRUSTEE
SETINHERITEDRIGHTS
LINK
The asterisk character (*) can be used to specify all events.
The exclamation mark (!) or minus (-) characters can precede an event name to exclude (negate)
events of that type.
The event options can occur in any order in the parenthesis. When parsing an event list, a list of
included (non-negated) events is first created, then the excluded (negated) events (that is, those with
[! or -]
the
exclusion character in front of them) are removed from that list.
Event Type Examples
The following are examples of event element pattens and a description of the results you can expect
for each one:
removed after first creating a list of events that are included (non-negated).
(OPEN CLOSE !RENAME)
Includes only the
The
!RENAME
is not necessary here because it was never included. Typically, you add the
excluded events in the list only when you use the asterisk (
(!* OPEN CLOSE)
OPEN
and
CLOSE
events.
*
) to specify all events.
Excludes all events. No events are included because all events were excluded.
This example illustrates that you can put the
The
OPEN
and
CLOSE
event names have no effect because all excluded (negated) events are
[! or -]
character in front of the asterisk (*).
processed after the included (non-negated) events. In effect, this list includes the
CLOSE
events, then excludes all events.
(OPEN !OPEN CLOSE)
Includes only the
CLOSE
event.
OPEN
and
OPEN
and
!OPEN
The
cancel each other out.
Event Sub-Types NSS, NCP, and CIFS
Each event in the list can also specify a list of event sub-types to include or exclude. These are
specified in parentheses immediately after the operation name. Event sub-types are delimited by a
space or tab.
Valid event sub-types are:
NSS
NCP
CIFS
The asterisk (*) can be used to include all event sub-types.
If no sub-types are specified, they are all included by default.
The exclamation mark (!) or minus (-) characters can precede a sub-type to exclude it.
The sub-types can occur in any order in the parentheses. When parsing a sub-type list, a list of
included (non-negated) sub-types is created first, then the excluded (negated) sub-types (that is,
those with the
[! or -]
exclusion character in front of them) are removed from that list.
VLOG Utility Man Page27
Event Sub-Type Examples
This section provides examples of event element patterns and a description of how each might be
applied.
(*)
Matches all events.
novdocx (en) 16 April 2010
(OPEN)
(OPEN CLOSE)
(OPEN(NSS) CLOSE(NSS))
(* !OPEN)
(* !OPEN(NSS) !CLOSE(NSS))
(* !OPEN(* !NSS) !CLOSE(* !NSS))
OPEN
Matches all
events (including the NSS, NCP, and CIFS sub-types).
Matches only the
OPEN
and
CLOSE
events (including the NSS, NCP, and CIFS sub-types).
Matches only the NSS
OPEN
and NSS
CLOSE
events.
Matches all events (including the NSS, NCP, and CIFS sub-types) except the
Matches all events except the NSS
OPEN
and NSS
CLOSE
events.
Matches all events except the non-NSS
OPEN
and non-NSS
CLOSE
events.
OPEN
event.
Filter Pattern Examples
This section provides examples of filter patterns and a description of how each might be applied.
These examples are specific to entries in the filter file (when using the
option).
[-F, --filterFile]
VOL1:/abc/* (*)
Include: Matches all events on any file in the
VOL1:/abc
subdirectories are not included.
VOL1:/abc/** (*)
Include: Matches all events on any file in the
VOL1:/abc
subdirectories.
VOL1:/abc/* (OPEN CLOSE)
Include: Matches only
OPEN
and
CLOSE
events on any file in the
events on files in subdirectories are not included.
file to be dropped (assuming that they had been included by an include
OPEN
and NSS
OPEN
rule).
!VOL1:/abc/def (OPEN)
Exclude: Matches
OPEN
excludes
VOL1:/abc/def (* !OPEN)
events on the
Include: Matches all events except the
way to exclude
!VOL1:/abc/def (* !OPEN)
Exclude: Matches all events except the
effectively excludes all events except the
OPEN
OPEN
events on the
events for the
VOL1:/abc/def
VOL1:/abc/def
VOL1:/abc/def
file.
OPEN
event on the
OPEN
event on the
OPEN
event on the
they had been included by an include rule).
CLOSE
events on any file in the
and non-NSS
CLOSE
events on any file in
file. This exclusion causes all events on
file. This exclusion effectively
VOL1:/abc/def
file. This is another
file.
VOL1:/abc/def
VOL1:/abc/def file
file. This
(assuming
"VOL1:/xyz dir/*" (*)
Include: Matches all events on any file in the “
used to enclose the pattern when the path contains spaces. Otherwise, the space in “
VOL1:/xyz dir
” directory. Quotation marks are
xyz dir
treated as a delimiter between the pattern and the events.
VOL1:/xyz\ dir/* (*)
Include: Matches all events on any file in the “
escape the space character in the directory name “
” is treated as a delimiter between the pattern and the operations.
dir
VOL1:/xyz dir
xyz dir
”. A backslash (\) is used to
”. Otherwise, the space in “
Troubleshooting
Orphaned Auditing Client
The NSS Auditing Engine (
vlog
(such as
vlog
) specifies various parameters, such as a directory in the Linux file system where the auditing
) to establish Auditing Clients. When doing so, the user-space application (such as
record log files are placed.
After an Auditing Client has been established, the NSS Auditing Engine (
been designed to store the auditing records in files in the directory specified by the auditing
application (such as
vlog
vigil
) implements an interface that allows user-space applications
or Novell Sentinel).
vigil
) architecture has
” is
xyz
VLOG Utility Man Page29
Records are stored in the files until the Auditing Engine is instructed to stop, or until the NSS
Auditing Engine is stopped. If the auditing application terminates (perhaps unexpectedly), and the
NSS Auditing Engine is therefore not instructed to stop sending records to the Auditing Client’s
directory, the NSS Auditing Engine continues to store auditing records in the Auditing Client’s
specified directory.
An Auditing Client that does not have a live user-space application associated with it is called an
Orphaned Auditing Client. The architecture of the NSS Auditing Engine supports this mode of
operation. This mode facilitates the continued collection of auditing data, even if the auditing
application temporarily fails. The NSS Auditing Engine architecture assumes that the auditing
application will eventually be restarted, and will then re-connect to the auditing stream.
vlog
The default configuration of the
Auditing Client from a previous failed
application does not attempt to re-connect to an orphaned
vlog
session. If vlog is not properly terminated by the
SIGTERM signal, an Orphaned Auditing Client is created.
IMPORTANT: If Orphaned Auditing Clients are not stopped, they continue until they fill the Linux
file system partition with auditing data.
You can use one of the following methods to eliminate Orphaned Auditing Clients: Start and stop (or
restart) the NSS Auditing Engine, or stop a specific instance of the Auditing Client. Each method is
described below.
novdocx (en) 16 April 2010
Method 1: Stop and Start (or Restart) the NSS Auditing Engine
root
To do this, enter the following commands as the
./etc/init.d/novell-vigil stop
./etc/init.d/novell-vigil start
user at a terminal console prompt:
Or you can enter the following command to restart the engine:
./etc/init.d/novell-vigil restart
This method stops all Auditing Clients, including those that were not associated with the
vlog
application. This might be undesirable because some auditing records of file-system events will not
be logged to the various auditing applications.
Method 2: Stop a Specific Auditing Client Instance
By default, all active Auditing Clients for the NSS Auditing Engine can be listed by listing the
directory content of the
/sys/audit/vigil
For example, enter the following command as the
ll /sys/audit/vigil
All active Auditing Clients are represented in the listing as directories named “
[-C, --clientName]
the
the specific entry in the
clientName]
option is not specified,
name entries are prefixed with “
option,
/sys/audit/vigil/
vlog
CLIENT_VLOG_
directory.
root
user at a terminal console prompt:
CLIENT_*
Auditing Clients can be given a name such as “
directory will be “
vlog
generates a random Auditing Client name. Generated
CLIENT_JOHN
”. If the
”, followed by the process ID that created the client,
”. Using
JOHN
”, and
[-C,--
followed by a numeric value that represents the date and time that the specific Auditing Client was
started.
must also be specified as an additional credential. This limits closing an
root
user who knows the Auditing Client’s
’s
[-c, --clientKey]
vlog
Orphaned Auditing Client, that client’s entry in
root
user can stop a specific instance of an
option. If the
Zarahemla
root
CONTROL
”.
user at a terminal console prompt:
file (found in that client’s
ClientKey
[-c, --clientKey]
. The
ClientKey
/sys/
can be
option is not
IMPORTANT: When an Auditing Client is closed, the client’s directory is removed. You should
not close an Auditing Client if the client directory is the current working directory.
Authors
Copyright 2009–2010, Novell, Inc. All rights reserved. http://www.novell.com
See Also
To report problems with this software or its documentation, visit http://bugzilla.novell.com