Hi Phil,
Feel free to use these decoders:
<decoder name="test">
<program_name>snmptt</program_name>
</decoder>
<decoder name="test2">
<parent>test</parent>
<regex>(\S+) \w+ "(\.+)" (\S+) - </regex>
<order>numbers, status, domain-name</order>
</decoder>
You should be obtaining this output:
[root@default kibana]# /var/ossec/bin/ossec-logtest
2021/02/01 20:10:30 ossec-testrule: INFO: Started (pid: 1946).
ossec-testrule: Type one log per line.
Feb 1 08:01:01 newmon snmptt[10937]: .1.3.6.1.6.3.1.1.5.4 Normal "Status Events" switch.domain.com - Link up on interface 37. Admin state: up. Operational state: up
**Phase 1: Completed pre-decoding.
full event: 'Feb 1 08:01:01 newmon snmptt[10937]: .1.3.6.1.6.3.1.1.5.4 Normal "Status Events" switch.domain.com - Link up on interface 37. Admin state: up. Operational state: up' timestamp: 'Feb 1 08:01:01'
hostname: 'newmon'
program_name: 'snmptt'
log: '.1.3.6.1.6.3.1.1.5.4 Normal "Status Events" switch.domain.com - Link up on interface 37. Admin state: up. Operational state: up'
**Phase 2: Completed decoding.
decoder: 'test'
numbers: '.1.3.6.1.6.3.1.1.5.4'
status: 'Status Events'
Hope I was helpful. Do not hesitate to contact me if you have any doubt.
Yana.