EVENTLOGADM(8)

πŸ‘‘ EVENTLOGADM(8) β€” the manual page, bestie edition

okay so this is eventlogadm, from the System Administration tools corner of the manual. Strap in, we're putting records into the Samba event log store and it's gonna be adorable. πŸ’–


✨ NAME ✨

eventlogadm β€” push records into the Samba event log store 🫢


🌸 SYNOPSIS 🌸

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

πŸ¦‹ DESCRIPTION πŸ¦‹

This tool is part of the samba(1) suite. yes, that suite. iconic behavior. πŸ’…

eventlogadm is a filter. It takes formatted event log records on standard input and writes them straight into the Samba event log store. That's it, that's the whole vibe. πŸŽ€

And then β€” the way this works β€” a Windows client can manipulate those records using the usual administration tools. no cap. ✨


πŸ”₯ OPTIONS πŸ”₯

  • -s FILENAME β€” the -s option makes eventlogadm load the configuration file you hand it as FILENAME, instead of the default one Samba would normally use. glow up via custom config, basically. 🌈
  • -d β€” the -d option makes eventlogadm emit debugging information. it's giving "tell me everything, bestie". πŸ’œ
  • -o addsource EVENTLOG SOURCENAME MSGFILE β€” the -o addsource option creates a new event log source. brand new source, fresh out the box. πŸŽ€
  • -o write EVENTLOG β€” the -o write reads event log records from standard input and writes them to the Samba event log store named by EVENTLOG. πŸ“₯
  • -o dump EVENTLOG RECORD_NUMBER β€” the -o dump reads event log records from a EVENTLOG tdb and dumps them to standard output on screen. show me everything, fr fr. πŸ‘€
  • -h β€” print usage information. help me help you. πŸ™ˆ

🧚 EVENTLOG RECORD FORMAT 🧚

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: (yes that's the original phrasing, we keep it, we love it)

  • LEN β€” This field should be 0, since eventlogadm will calculate this value. let it do the math, she's good at it. 🌸
  • RS1 β€” This must be the value 1699505740. literally must. πŸ‘‘
  • RCN β€” This field should be 0.
  • TMG β€” The time the eventlog record was generated; format is the number of seconds since 00:00:00 January 1, 1970, UTC.
  • TMW β€” The time the eventlog record was written; format is the number of seconds since 00:00:00 January 1, 1970, UTC.
  • EID β€” The eventlog ID.
  • ETP β€” The event type β€” one of "INFO", "ERROR", "WARNING", "AUDIT SUCCESS" or "AUDIT FAILURE". pick your fighter. πŸ’€
  • ECT β€” The event category; this depends on the message file. It is primarily used as a means of filtering in the eventlog viewer.
  • RS2 β€” This field should be 0.
  • CRN β€” This field should be 0.
  • USL β€” This field should be 0.
  • SRC β€” 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.
  • SRN β€” The name of the machine on which the eventlog was generated. This is typically the host name. hi hostname bestie. πŸŽ€
  • STR β€” The text associated with the eventlog. There may be more than one string in a record.
  • DAT β€” This field should be left unset. leave it alone. πŸ™ˆ

πŸ’… EXAMPLES πŸ’…

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

look at that pipeline. she's eating. πŸ”₯


πŸ’œ VERSION πŸ’œ

This man page is part of version 4.24.7-Ubuntu-4.24.7+dfsg-1ubuntu1 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. legacy behavior, we respect it deeply. πŸ‘‘


and that's the whole page, bestie!! 🫢 this little slice of the Samba suite ships as part of Samba 4.24.7-Ubuntu-4.24.7+dfsg-1ubuntu1, dated 09/13/2026 β€” same manual, section 8, same everything, just way more fun to read now. mwah. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from