# Running Filebeat from Command Line

**URL:** <https://discuss.elastic.co/t/running-filebeat-from-command-line/98907>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 30, 2017, 7:06pm UTC](https://discuss.elastic.co/t/running-filebeat-from-command-line/98907 "2017-08-30T19:06:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dolanmk](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dolanmk](https://discuss.elastic.co/u/dolanmk)\
**Post date:** [August 30, 2017, 7:06pm UTC](https://discuss.elastic.co/t/running-filebeat-from-command-line/98907/1 "2017-08-30T19:06:04Z")

</div>

Hi,

I am hoping to run Filebeat from my command line and not as a service on my Windows machine.

I have filebeat.yml configured to send my logs to a port that my Logstash will be listening for instead of sending them directly to Elasticsearch. In the YML file I also have Filebeat configured to take a directory of syslogs as the input. My goal is to start Filebeat from the command line and have it ship my logs to Logstash to be parsed.

Is this possible? If so, how do I go about doing it?

Thank you for your help!

Miranda

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [August 30, 2017, 7:38pm UTC](https://discuss.elastic.co/t/running-filebeat-from-command-line/98907/2 "2017-08-30T19:38:06Z")

</div>

Run the filebeat.exe from a command prompt and specify the config file (see `-h` for all the CLI flags).

`.\filebeat.exe -c filebeat.yml -e`

---

<div class="post-metadata">

**Author:** ![dolanmk](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@dolanmk](https://discuss.elastic.co/u/dolanmk)\
**Post date:** [August 30, 2017, 8:14pm UTC](https://discuss.elastic.co/t/running-filebeat-from-command-line/98907/3 "2017-08-30T20:14:34Z")

</div>

Thanks so much, Andrew!!

---

<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:** [September 27, 2017, 8:14pm UTC](https://discuss.elastic.co/t/running-filebeat-from-command-line/98907/4 "2017-09-27T20:14:44Z")

</div>

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