EVENTLOGADM(8) | System Administration tools | EVENTLOGADM(8) |
eventlogadm - push records into the Samba event log store
eventlogadm [-s] [-d] [-h] -o addsource EVENTLOG SOURCENAME MSGFILE
eventlogadm [-s] [-d] [-h] -o write EVENTLOG
eventlogadm [-s] [-d] [-h] -o dump EVENTLOG RECORD_NUMBER
This tool is part of the samba(1) suite.
eventlogadm 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.
-s FILENAME
-d
-o addsource EVENTLOG SOURCENAME MSGFILE
-o write EVENTLOG
-o dump EVENTLOG RECORD_NUMBER
-h
For the write operation, eventlogadm 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:
An example of the record format accepted by eventlogadm:
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:
Set up an eventlog source, specifying a message file DLL:
eventlogadm -o addsource Application MyApplication | \\ %SystemRoot%/system32/MyApplication.dll
Filter messages from the system log into an event log:
tail -f /var/log/messages | \\ my_program_to_parse_into_eventlog_records | \\ eventlogadm SystemLogEvents
This man page is part of version 4.9.5-Debian of the Samba suite.
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.
02/03/2022 | Samba 4.9.5-Debian |