." make the size of the head bigger \$* \$1

\l’75u’

." make the size of the head bigger

Name


eventlogadm - push records into the Samba event log store

Synopsis


\FCeventlogadm\F[] [-d] [-h] -o \FCaddsource\F[] EVENTLOG SOURCENAME MSGFILE
\FCeventlogadm\F[] [-d] [-h] -o \FCwrite\F[] EVENTLOG
\FCeventlogadm\F[] [-d] [-h] -o \FCdump\F[] EVENTLOG RECORD_NUMBER

DESCRIPTION


This tool is part of the samba(1) suite.

\FCeventlogadm\F[] is a filter that accepts formatted event log records on standard input and writes them to the Samba event log store. Windows client can then manipulate these record using the usual administration tools.

OPTIONS


-d

The \FC-d\F[] option causes \FCeventlogadm\F[] to emit debugging information.

-o \FCaddsource\F[] EVENTLOG SOURCENAME MSGFILE

The \FC-o addsource\F[] option creates a new event log source.

-o \FCwrite\F[] EVENTLOG

The \FC-o write\F[] reads event log records from standard input and writes them to the Samba event log store named by EVENTLOG.

-o \FCwrite\F[] EVENTLOG RECORD_NUMBER

The \FC-o dump\F[] reads event log records from a EVENTLOG tdb and dumps them to standard output on screen.

-h

Print usage information.

EVENTLOG RECORD FORMAT


For the write operation, \FCeventlogadm\F[] expects to be able to read structured records from standard input. These records are a sequence of lines, with the record key and data separated by a colon character. Records are separated by at least one or more blank line.

The event log record field are:

o

o

\FCLEN\F[] - This field should be 0, since \FCeventlogadm\F[] will calculate this value.

o

o

\FCRS1\F[] - This must be the value 1699505740.

o

o

\FCRCN\F[] - This field should be 0.

o

o

\FCTMG\F[] - The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC.

o

o

\FCTMW\F[] - The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC.

o

o

\FCEID\F[] - The eventlog ID.

o

o

\FCETP\F[] - The event type -- one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE".

o

o

\FCECT\F[] - The event category; this depends on the message file. It is primarily used as a means of filtering in the eventlog viewer.

o

o

\FCRS2\F[] - This field should be 0.

o

o

\FCCRN\F[] - This field should be 0.

o

o

\FCUSL\F[] - This field should be 0.

o

o

\FCSRC\F[] - This field contains the source name associated with the event log. If a message file is used with an event log, there will be a registry entry for associating this source name with a message file DLL.

o

o

\FCSRN\F[] - The name of the machine on which the eventlog was generated. This is typically the host name.

o

o

\FCSTR\F[] - The text associated with the eventlog. There may be more than one string in a record.

o

o

\FCDAT\F[] - This field should be left unset.

EXAMPLES


An example of the record format accepted by \FCeventlogadm\F[]:

        LEN: 0         RS1: 1699505740         RCN: 0         TMG: 1128631322         TMW: 1128631322         EID: 1000         ETP: INFO         ECT: 0         RS2: 0         CRN: 0         USL: 0         SRC: cron         SRN: dmlinux         STR: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly)         DAT:         

\M[lightgray]\D’P 75u 0 0 0u -75u 0 0 -0u’\M[] \M[lightgray]\D’P 75u 0 0 0u -75u 0 0 -0u’\M[]

Set up an eventlog source, specifying a message file DLL:

        eventlogadm -o addsource Application MyApplication | \\              %SystemRoot%/system32/MyApplication.dll         

\M[lightgray]\D’P 75u 0 0 0u -75u 0 0 -0u’\M[] \M[lightgray]\D’P 75u 0 0 0u -75u 0 0 -0u’\M[]

Filter messages from the system log into an event log:

        tail -f /var/log/messages | \\                 my_program_to_parse_into_eventlog_records | \\            eventlogadm SystemLogEvents         

\M[lightgray]\D’P 75u 0 0 0u -75u 0 0 -0u’\M[] \M[lightgray]\D’P 75u 0 0 0u -75u 0 0 -0u’\M[]

VERSION


This man page is correct for version 3.0.25 of the Samba suite.

AUTHOR


The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.

openSUSE Logo

Contents