docs/reference/winlogbeat/reading-from-evtx.md
Yes, Winlogbeat can ingest archived .evtx files. When you set the name parameter as the absolute path to an event log file it will read from that file. Here’s an example. First create a new config file for Winlogbeat.
winlogbeat-evtx.yml
winlogbeat.event_logs:
- name: ${EVTX_FILE} <1>
no_more_events: stop <2>
winlogbeat.shutdown_timeout: 30s <3>
winlogbeat.registry_file: evtx-registry.yml <4>
output.elasticsearch.hosts: ['http://localhost:9200']
name will be set to the value of the EVTX_FILE environment variable.no_more_events sets the behavior of Winlogbeat when Windows reports that there are no more events to read. We want Winlogbeat to stop rather than wait since this is an archived file that will not receive any more events.shutdown_timeout controls the maximum amount of time Winlogbeat will wait to finish publishing the events to {{es}} after stopping because it reached the end of the log.Now execute Winlogbeat and wait for it to complete. It will exit when it’s done.
.\winlogbeat.exe -e -c .\winlogbeat-evtx.yml -E EVTX_FILE=c:\backup\Security-2019.01.evtx