# Logstash doesn't work on windows

**URL:** <https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506>\
**Category:** Logstash\
**Created:** [January 28, 2021, 1:37pm UTC](https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506 "2021-01-28T13:37:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![l418](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@l418](https://discuss.elastic.co/u/l418)\
**Post date:** [January 28, 2021, 1:37pm UTC](https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506/1 "2021-01-28T13:37:43Z")

</div>

Hello.  
Trying to populate simple elastic cluster from demo using windows  
Your logstash windows implementation seems broken completely  
file {  
path =\> "/var/log/apache2/access.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "nul"  
}  
I see no events, errors or smt. Please tell is it working for windows or i shouldn't waste a time in it?

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [January 28, 2021, 1:44pm UTC](https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506/2 "2021-01-28T13:44:39Z")

</div>

Can you verify your file path?

Typically on windows you use something like the below.

`path => ["C:/ELK/LogSamples/00605828/clientA.log"]`

When you start Logstash are you getting any warnings or errors you could show us to help troubleshoot the problem?

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [January 28, 2021, 2:16pm UTC](https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506/3 "2021-01-28T14:16:49Z")

</div>

Logstash works on windows, but your configuration is wrong.

The path `/var/log/apache2/access.log` is a Unix/Linux path, this does not exists on windows, so there is no log for your logstash to collect.

You need to fix your path and point it to a file in that exists your windows machine, which is the file that you want to ingest and where it is located?

---

<div class="post-metadata">

**Author:** ![l418](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@l418](https://discuss.elastic.co/u/l418)\
**Post date:** [January 28, 2021, 2:54pm UTC](https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506/4 "2021-01-28T14:54:16Z")

</div>

Thanks for response.  
Sorry, i copied this configuration just for example - on windows i have different path of course, but start\_position, filter and output settings are the same.  
But i downgraded to 6.2.4 from 7.10.2 and everything is working with the same config with no changes !  
I double checked broken 7.10.2 and found some exception:  
**logstash.instrument.periodicpoller.cgroup One or more required cgroup files or directories not found: /proc/self/cgroup, /ssys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu**  
Executed 6.2.4 - and again it's working - i see data in index, 7.10.2 do nothing.

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [January 28, 2021, 3:03pm UTC](https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506/5 "2021-01-28T15:03:52Z")

</div>

Are you able to post your input block that isn't working in 7.10.2?

---

<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:** [February 25, 2021, 3:03pm UTC](https://discuss.elastic.co/t/logstash-doesnt-work-on-windows/262506/6 "2021-02-25T15:03:53Z")

</div>

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