Hi
I have a path with different oracle .aud files
-rw-r----- 1 oracle dba 1259 Dec 16 18:16 TESTWSL_ora_28346_20211216165343648403143795.aud
-rw-r----- 1 oracle dba 1259 Dec 16 18:16 TESTWSL_ora_28316_20211216165316120689143795.aud
-rw-r----- 1 oracle dba 794 Dec 21 12:49 TESTWSL_ora_20462_20211221124953748563143795.aud
-rw-r----- 1 oracle dba 793 Dec 21 12:50 TESTWSL_ora_20471_20211221125000657156143795.aud
-rw-r----- 1 oracle dba 794 Dec 21 13:49 TESTWSL_ora_24062_20211221134913572660143795.aud
-rw-r----- 1 oracle dba 793 Dec 21 13:49 TESTWSL_ora_24070_20211221134918714668143795.aud
I have configured the agent like this
<localfile>
<log_format>multi-line-regex</log_format>
<location>/oracle/oradata/TESTWSL/oraarch/adump/*</location>
<multiline_regex match="start" replace="no-replace">^\w+ \w+ \d+ \d+:\d+:\d+ \d+ \W\d+:\d+</multiline_regex>
</localfile>
for the server I have created the following decoder and its corresponding rule.
<decoder name="AUDORACLE">
<prematch>^ORACLE_HOME</prematch>
</decoder>
<decoder name="Oracle Authenticated">
<parent>AUDORACLE</parent>
<regex>USERID:[\d+] "(\w+)" USERHOST:[\d+] "\w+\\(\w+\d+)" TERMINAL:[\d+] "\w+\d+" ACTION:[\d+] "\d+" RETURNCODE:[\d+] "\d+" COMMENT$TEXT:[\d+] "(\w+) by: DATABASE; Client address: \(ADDRESS=\(PROTOCOL=tcp\)\(HOST=(\d+.\d+.\d+.\d+)\)</regex>
<order>oracle.user, oracle.origen, oracle.tipo, oracle.iporigen</order>
</decoder>
<decoder name="Oracle Authenticatedv2">
<parent>AUDORACLE</parent>
<regex>DATABASE USER:[\d+] '(\w+)'</regex>
<order>oracle.user</order>
</decoder>
output example
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /oracle/112_64
System name: Linux
Node name: esmas060d
Release: 4.14.35-2047.509.2.3.el7uek.x86_64
Version: #2 SMP Tue Dec 14 14:13:57 PST 2021
Machine: x86_64
VM name: VMWare Version: 6
Instance name: TESTWSL
Redo thread mounted by this instance: 1
Oracle process number: 32
Unix process pid: 20462, image: oracle@esmas060d
Tue Dec 21 12:49:53 2021 +01:00
LENGTH : '180'
ACTION :[7] 'CONNECT'
DATABASE USER:[8] 'XXXXXXX'
PRIVILEGE :[4] 'NONE'
CLIENT USER:[14] 'XXXXX.XXXXXX'
CLIENT TERMINAL:[8] 'ESMAL155'
STATUS:[4] '1017'
DBID:[10] '3980474210'
but it doesn't work and I don't register anything. Could it be because the fields are on separate lines?
any suggestion, thanks in advance