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

Read archived .evtx files with Winlogbeat #11361

Merged
merged 3 commits into from
Apr 9, 2019

Commits on Apr 8, 2019

  1. Read archived .evtx files with Winlogbeat

    This gives Winlogbeat the ability to read from archived .evtx files. The `name` parameter recognizes that the value is absolute path and then uses the appropriate APIs to open the file and ingest its contents. In order to support the use case of reading from a file and then exiting when there are no more events (`ERROR_NO_MORE_ITEMS`) I added a config option to change the behavior of the reader from waiting for more events to stopping.
    
    I also had to add `shutdown_timeout` option to make Winlogbeat wait for events to finish publishing before exiting.
    
    To keep it simple, globs are not supported. This would have required the introduction of a "prospector" to continuously monitor the glob for new / moved / deleted files.
    
        winlogbeat.event_logs:
          - name: ${EVTX_FILE}
            no_more_events: stop
    
        winlogbeat.shutdown_timeout: 30s
        winlogbeat.registry_file: evtx-registry.yml
    
        output.elasticsearch.hosts: ['http://localhost:9200']
    
    Closes elastic#4450
    andrewkroh committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    511f781 View commit details
    Browse the repository at this point in the history
  2. Add reference docs

    andrewkroh committed Apr 8, 2019
    Configuration menu
    Copy the full SHA
    e194a26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e2fb70d View commit details
    Browse the repository at this point in the history