Hi,
in our organization we use wef to monitor windows.
we configure an inputs.conf for monitoring from the Event viewer.
the powershell events (mainly event code 800 and 4103) logs received too long and we want to cut duplicated data.
we tried various test with props.conf and transforms.conf and nothing works, here some of our stanzas we tried in props.conf
[source::"XmlWinEventLog:Windows PowerShell"]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g
[source::XmlWinEventLog:Microsoft-Windows-PowerShell/Operational]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g
[WinEventLog://Microsoft-Windows-PowerShell/Operational]
SEDCMD-CLean_powershell_800 = s/s/\n\s+Context\sInformation\:.*([\r\n]+.*){0,500}////g
SEDCMD-CLean_powershell_4103 = s/s/\s+Context\:.*([\r\n]+.*){0,500}////g
also i wanted to make sure the inputs.conf stanza for powershell is correctly when i used :
renderXml = true
over:
wec_event_format = rendered_event
... View more