I took a look at the Splunk_TA_nix 5.1.2 script rlog.sh and made a change to it:
I got rid of the grep -v part
so the line that reads:
awk -v START=$SEEK -v OUTPUT=$SEEK_FILE 'NR>START { print } END { print NR > OUTPUT }' $AUDIT_FILE | tee $TEE_DEST | /sbin/ausearch -i 2>/dev/null | grep -v "^----"
no reads
awk -v START=$SEEK -v OUTPUT=$SEEK_FILE 'NR>START { print } END { print NR > OUTPUT }' $AUDIT_FILE | tee $TEE_DEST | /sbin/ausearch -i 2>/dev/null
This will give you a delimiter for the events which is the "----"
Then I made my own sourcetype for this:
[linux:audit]
BREAK_ONLY_BEFORE = ----
DATETIME_CONFIG =
MAX_TIMESTAMP_LOOKAHEAD = 23
NO_BINARY_CHECK = true
TIME_FORMAT = %m/%d/%Y %T.%3
TIME_PREFIX = msg=audit\(
category = Operating System
description = Auditd Events
disabled = false
pulldown_type = true
Seems to be working in my lab for now.
Thanks @foxyfred for the idea.
... View more