<regex>envoy-access - - - (\d+-\d+-\d+T\d+:\d+:\d+.\d+Z) (\w+) envoy[(\d+)] [Originator@6876 sub=(\w+)] (\d+-\d+-\d+T\d+:\d+:\d+.\d+Z) (\w+) (\S+) (\d+) (\S+) - (\d+) (\d+) (\w+) (\d+) (\d+) (\d+) (\S+) (\S+) (\S+) (\S+) (\S+) (\S+) - (\S+) - (\.*)</regex>
<order>internal_timestamp,log_level,process_id,subsystem,request_timestamp,method,endpoint,status_code,upstream_status,request_size,response_size,encoding,duration1,duration2,duration3,client_address,protocol1,tls_version,server_address,upstream_address,protocol2,backend_address,api_method</order>
</decoder>
<!-- vPXD Main Logs -->
<decoder name="vcenter-vpxd-main">
<parent>vcenter-base</parent>
<regex>[VpxLRO] -- (\w+) (\S+) -- (\.*)</regex>
<order>lro_action,lro_id,lro_details</order>
</decoder>
This log match and decoded:
**Phase 1: Completed pre-decoding.
full event: '1 2025-09-06T23:52:00.595532+00:00 vcentersvt2 envoy-access - - - 2025-09-06T23:52:00.595Z info envoy[13501] [Originator@6876 sub=Default] 2025-09-06T23:51:54.612Z POST /sdk 200 via_upstream - 548 8059 - 1625 1623 0
10.100.8.20:44946 HTTP/1.1 TLSv1.2
10.100.4.58:443 127.0.0.1:41188 HTTP/2 -
127.0.0.1:8085 - ""WaitForUpdatesEx""'
**Phase 2: Completed decoding.
name: 'vcenter-base'
api_method: '""WaitForUpdatesEx""'
backend_address: '
127.0.0.1:8085'
client_address: '
10.100.8.20:44946'
duration1: '1625'
duration2: '1623'
duration3: '0'
encoding: '-'
endpoint: '/sdk'
internal_timestamp: '2025-09-06T23:52:00.595Z'
log_level: 'info'
method: 'POST'
process_id: '13501'
protocol1: 'HTTP/1.1'
protocol2: 'HTTP/2'
request_size: '548'
request_timestamp: '2025-09-06T23:51:54.612Z'
response_size: '8059'
server_address: '
10.100.4.58:443'
status_code: '200'
subsystem: 'Default'
tls_version: 'TLSv1.2'
upstream_address: '
127.0.0.1:41188'
upstream_status: 'via_upstream'
But this is is not decoded
**Phase 1: Completed pre-decoding.
full event: '1 2025-09-06T23:52:00.788749+00:00 vcentersvt2 vpxd-main - - - 2025-09-06T23:52:00.788Z info vpxd[855888] [Originator@6876 sub=vpxLro opID=ebb1fe1] [VpxLRO] -- BEGIN lro-178317441 -- session[52676508-9035-d137-02eb-ca65efbccc9c]5234c294-7f43-ca6f-7c61-1a38e753b218 -- vim.HistoryCollector.remove -- 52676508-9035-d137-02eb-ca65efbccc9c(52c118f2-76ba-1546-85d1-591bb4b5a28b)'
**Phase 2: Completed decoding.
name: 'vcenter-base'
if i used regex test, it's correct
/var/ossec/bin/wazuh-regex '[VpxLRO] -- (\w+) (\S+) -- (\.*)'
1 2025-09-06T23:52:00.788749+00:00 vcentersvt2 vpxd-main - - - 2025-09-06T23:52:00.788Z info vpxd[855888] [Originator@6876 sub=vpxLro opID=ebb1fe1] [VpxLRO] -- BEGIN lro-178317441 -- session[52676508-9035-d137-02eb-ca65efbccc9c]5234c294-7f43-ca6f-7c61-1a38e753b218 -- vim.HistoryCollector.remove -- 52676508-9035-d137-02eb-ca65efbccc9c(52c118f2-76ba-1546-85d1-591bb4b5a28b)
+OSRegex_Execute: 1 2025-09-06T23:52:00.788749+00:00 vcentersvt2 vpxd-main - - - 2025-09-06T23:52:00.788Z info vpxd[855888] [Originator@6876 sub=vpxLro opID=ebb1fe1] [VpxLRO] -- BEGIN lro-178317441 -- session[52676508-9035-d137-02eb-ca65efbccc9c]5234c294-7f43-ca6f-7c61-1a38e753b218 -- vim.HistoryCollector.remove -- 52676508-9035-d137-02eb-ca65efbccc9c(52c118f2-76ba-1546-85d1-591bb4b5a28b)
-Substring: BEGIN
-Substring: lro-178317441
-Substring: session[52676508-9035-d137-02eb-ca65efbccc9c]5234c294-7f43-ca6f-7c61-1a38e753b218 -- vim.HistoryCollector.remove -- 52676508-9035-d137-02eb-ca65efbccc9c(52c118f2-76ba-1546-85d1-591bb4b5a28b)
+OS_Regex : 1 2025-09-06T23:52:00.788749+00:00 vcentersvt2 vpxd-main - - - 2025-09-06T23:52:00.788Z info vpxd[855888] [Originator@6876 sub=vpxLro opID=ebb1fe1] [VpxLRO] -- BEGIN lro-178317441 -- session[52676508-9035-d137-02eb-ca65efbccc9c]5234c294-7f43-ca6f-7c61-1a38e753b218 -- vim.HistoryCollector.remove -- 52676508-9035-d137-02eb-ca65efbccc9c(52c118f2-76ba-1546-85d1-591bb4b5a28b)
Where did I go wrong?
Regards,
Bayu Sangkaya