# Filebeat vs batch

**URL:** <https://discuss.elastic.co/t/filebeat-vs-batch/220068>\
**Category:** Beats\
**Tags:** windows, filebeat\
**Created:** [February 20, 2020, 2:22am UTC](https://discuss.elastic.co/t/filebeat-vs-batch/220068 "2020-02-20T02:22:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Incauto](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/incauto/32/60149_2.png) [@Incauto](https://discuss.elastic.co/u/Incauto)\
**Post date:** [February 20, 2020, 2:22am UTC](https://discuss.elastic.co/t/filebeat-vs-batch/220068/1 "2020-02-20T02:22:38Z")

</div>

Hi, before Filebeat consume some logs I have to decrypt them with a batch file, and I was thinking, while decrypting the logs I can use the windows brother of grep "{ $\_ -match "expression"}" to filter the logs I need.

So that makes me wonder, which will consume less resources on the server, the Filebeat "include lines", or the powershell "-match"?

what do you think?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 19, 2020, 2:22am UTC](https://discuss.elastic.co/t/filebeat-vs-batch/220068/2 "2020-03-19T02:22:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
