Side note where is the best place to find info on ossec rules. Seems like all I can find is bit's and pieces to this puzzle. Seems like every time I try my hand at this it's an exercise in frustration.
<!-- STARTTLS Certificate warning -->
<rule id="119006" level="0">
<match>The STARTTLS certificate will expire soon:</match>
<description>STARTTLS Certificate warning</description>
</rule>
{"win":{"system":{"providerName":"MSExchangeTransport","eventID":"12018","level":"2","task":"12","keywords":"0x80000000000000","systemTime":"2019-10-29T15:47:20.615892000Z","eventRecordID":"155059","channel":"Application","computer":"
example.example.org","severityValue":"ERROR","message":"The STARTTLS certificate will expire soon: subject:
example.example.org, thumbprint: 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, expires: 1/13/2020 3:57:27 PM. Run the New-ExchangeCertificate cmdlet to create a new certificate."},"eventdata":{"data":"
example.example.org, 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, 1/13/2020 3:57:27 PM"}}}
**Phase 1: Completed pre-decoding.
full event: '{"win":{"system":{"providerName":"MSExchangeTransport","eventID":"12018","level":"2","task":"12","keywords":"0x80000000000000","systemTime":"2019-10-29T15:47:20.615892000Z","eventRecordID":"155059","channel":"Application","computer":"
example.example.org","severityValue":"ERROR","message":"The STARTTLS certificate will expire soon: subject:
example.example.org, thumbprint: 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, expires: 1/13/2020 3:57:27 PM. Run the New-ExchangeCertificate cmdlet to create a new certificate."},"eventdata":{"data":"
example.example.org, 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, 1/13/2020 3:57:27 PM"}}}'
timestamp: '(null)'
hostname: 'sonion'
program_name: '(null)'
log: '{"win":{"system":{"providerName":"MSExchangeTransport","eventID":"12018","level":"2","task":"12","keywords":"0x80000000000000","systemTime":"2019-10-29T15:47:20.615892000Z","eventRecordID":"155059","channel":"Application","computer":"
example.example.org","severityValue":"ERROR","message":"The STARTTLS certificate will expire soon: subject:
example.example.org, thumbprint: 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, expires: 1/13/2020 3:57:27 PM. Run the New-ExchangeCertificate cmdlet to create a new certificate."},"eventdata":{"data":"
example.example.org, 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, 1/13/2020 3:57:27 PM"}}}'
**Phase 2: Completed decoding.
decoder: 'json'
win.system.providerName: 'MSExchangeTransport'
win.system.eventID: '12018'
win.system.level: '2'
win.system.task: '12'
win.system.keywords: '0x80000000000000'
win.system.systemTime: '2019-10-29T15:47:20.615892000Z'
win.system.eventRecordID: '155059'
win.system.channel: 'Application'
win.system.severityValue: 'ERROR'
win.system.message: 'The STARTTLS certificate will expire soon: subject:
example.example.org, thumbprint: 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, expires: 1/13/2020 3:57:27 PM. Run the New-ExchangeCertificate cmdlet to create a new certificate.'
win.eventdata.data: '
example.example.org, 75F06AD9AEC6CD60EDE9713AE297C5C127E11658, 1/13/2020 3:57:27 PM'
**Phase 3: Completed filtering (rules).
Rule id: '119006'
Level: '0'
Description: 'STARTTLS Certificate warning'