Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create decode_xml_wineventlog processor #23910

Closed
andrewkroh opened this issue Feb 8, 2021 · 2 comments · Fixed by #24726
Closed

Create decode_xml_wineventlog processor #23910

andrewkroh opened this issue Feb 8, 2021 · 2 comments · Fixed by #24726

Comments

@andrewkroh
Copy link
Member

The goal is to separate the XML processing capability of the winlog input from the ability to read XML event logs from Windows. This will allow event log XML to be processed from a variety of sources. One use case is to be able to process Windows event logs that have been written to an S3 bucket as XML.

As a nice side-effect we should be to make testing of Windows modules a little easier since we can use XML instead of .evtx as the source data for tests. And these tests should be able to run on non-Windows machines.

The XML processing code is currently part of a Winlogbeat package that interacts with Windows API (using cgo). So we will want to cleanly separate this code to break any dependency in the xml event log decoder package on Windows APIs.

Example config:

processors:
- rename:
    - from: message
      to: event.original
- decode_xml_wineventlog:
    field: event.original
    target_field: winlog
- script:
    lang: javascript
    id: security
    file: ${path.home}/module/security/config/winlogbeat-security.js
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@marc-gr
Copy link
Contributor

marc-gr commented Mar 2, 2021

Related #23678

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants