# How to send evtx files to logstash via FIlebeat?

**URL:** <https://discuss.elastic.co/t/how-to-send-evtx-files-to-logstash-via-filebeat/211008>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 8, 2019, 1:55pm UTC](https://discuss.elastic.co/t/how-to-send-evtx-files-to-logstash-via-filebeat/211008 "2019-12-08T13:55:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [December 9, 2019, 10:25am UTC](https://discuss.elastic.co/t/how-to-send-evtx-files-to-logstash-via-filebeat/211008/2 "2019-12-09T10:25:23Z")

</div>

Hi @Coder_HK!

Filebeat ships (text) files so I don't think you can use it directly in this case. However it seems that there are some possible solutions out there.

See:

> [@Import Saved Windows Event Logs](https://discuss.elastic.co/t/import-saved-windows-event-logs/85302/4):
>
> No, there's nothing in Filebeat for this either. If you wanted to do some Go development I can potentially see a path that reuses the Winlogbeat code. You could export the records from the .evtx file to XML using the tools in windows. Then write a custom processor (similar to the [decode\_json\_fields](https://www.elastic.co/guide/en/beats/filebeat/master/decode-json-fields.html) processor ([source](https://github.com/elastic/beats/blob/master/libbeat/processors/actions/decode_json_fields.go)) that uses the [Winlogbeat code](https://github.com/elastic/beats/blob/master/winlogbeat/eventlog/wineventlog.go#L200-L203) to parse the XML. Then read the XML log lines using Filebeat and enable your custom eventlog xml processor. The config might look something like: fil…

> [@Re-import archived Windows Event Logs](https://discuss.elastic.co/t/re-import-archived-windows-event-logs/135393/5):
>
> Ok, so that goes back to my original question. How do I get the archived .evtx files into my Logstash then? It doesn't seem feasible to take tens of thousands of archived evtx files and manually add each one back into Event Viewer.

Thanks!

---

_[View the full topic](https://discuss.elastic.co/t/how-to-send-evtx-files-to-logstash-via-filebeat/211008)._
