# Overriding Var.Path variable in Filebeat Module

**URL:** <https://discuss.elastic.co/t/overriding-var-path-variable-in-filebeat-module/192819>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 30, 2019, 4:36am UTC](https://discuss.elastic.co/t/overriding-var-path-variable-in-filebeat-module/192819 "2019-07-30T04:36:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelberg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/michaelberg/32/51063_2.png) [@michaelberg](https://discuss.elastic.co/u/michaelberg)\
**Post date:** [July 30, 2019, 4:36am UTC](https://discuss.elastic.co/t/overriding-var-path-variable-in-filebeat-module/192819/1 "2019-07-30T04:36:38Z")

</div>

Good evening everyone!

I am trying to use the **Zeek** module with Filebeat ... no matter what I do Filebeat is insisting on looking in **/var/log/zeek/current** for it's file source ... I compiled Zeek from source and it's running smoothly but it's default directory for dumping it's logs to **/usr/local/zeek/logs/current/**

I am writing the Zeek logs to JSON format and I know it's not a translation issue because if I make a copy of the JSON logs and copy them to **/var/log/zeek/current** they get consumed and fired up to the Elasticsearch DB no problem...

However, if I try and modify the var.paths like the attached:

 ![58%20PM](https://us1.discourse-cdn.com/elastic/original/3X/6/7/67f41ffdae865355ceefc6767ed51eab86b9266e.png)

... I get the following error:

 ![12%20PM](https://us1.discourse-cdn.com/elastic/original/3X/b/0/b046bc593655db43c375c1634d72021d61097b0b.png)

So it appears something somewhere in the Filebeat config is insisting on only dealing with the **var/log/zeek/current** directory and there's no telling it otherwise ...

**QUESTION:** Is there somewhere else besides the **var.paths** variable for each of the Zeek logs that I should be putting the alternate path for the Zeek logs??

Thanks in advance for the feedback! Cheers!

---

<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:** [August 27, 2019, 4:45am UTC](https://discuss.elastic.co/t/overriding-var-path-variable-in-filebeat-module/192819/2 "2019-08-27T04:45:15Z")

</div>

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