# Log File is not being created with logstash output config

**URL:** <https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110>\
**Category:** Logstash\
**Created:** [July 16, 2018, 9:03am UTC](https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110 "2018-07-16T09:03:06Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![vinu89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinu89/32/45939_2.png) [@vinu89](https://discuss.elastic.co/u/vinu89)\
**Post date:** [July 20, 2018, 6:10am UTC](https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110/21 "2018-07-20T06:10:29Z")

</div>

the stdin part should be commented you have given two inputs one as stdin and another through file so it has conflicts comment the stdin part and i think the output directory should contain forward slashes

your config file should be

input {  
#stdin {}  
file {  
path =\> "C:\LogStash\_Log\_Input\LogStashInputLog.log"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
}  
}

output {  
file {  
path =\> "C:\LogStash\xyz.log"  
}  
}

In more convenient method u can give the output path as "C:\LogStash\xyz.log" for testing purpose if it works fine den u can append it with the dateformat

---

<div class="post-metadata">

**Author:** ![DGMurthy](https://avatars.discourse-cdn.com/v4/letter/d/958977/32.png) [@DGMurthy](https://discuss.elastic.co/u/DGMurthy)\
**Post date:** [July 20, 2018, 6:21am UTC](https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110/22 "2018-07-20T06:21:47Z")

</div>

Yes i already tried that way and same error is thrown. Thank You

---

<div class="post-metadata">

**Author:** ![vinu89](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinu89/32/45939_2.png) [@vinu89](https://discuss.elastic.co/u/vinu89)\
**Post date:** [July 20, 2018, 8:45am UTC](https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110/23 "2018-07-20T08:45:34Z")

</div>

Then i am not sure why it is not creating a file.It has to create if your config files are correct and u said the u logged with admin privileges so try creating the file in other drive.But i am not sure u can give a try

---

<div class="post-metadata">

**Author:** ![yaauie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yaauie/32/23363_2.png) [@yaauie](https://discuss.elastic.co/u/yaauie)\
**Post date:** [July 20, 2018, 6:01pm UTC](https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110/24 "2018-07-20T18:01:59Z")

</div>

> [@DGMurthy](#):
>
> Here i am not able to post its saying that sorry you can put 10 users only, even i am only replying to you

if you put your preformatted text (like log output and code snippets) in between code fences (`~~~` on its own line), the forum will interpret the contents of the fence without any additional interpretation. Without doing so, the forum is seeing all of the `@xxxxx` in your pasted output and guessing that you are trying to `@`-mention users.

If you have long-form output, you may want to post it in a [gist](https://gist.github.com) and _link_ to it in the forum post to get around the maximum length restrictions.

---

<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 17, 2018, 6:02pm UTC](https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110/25 "2018-08-17T18:02:02Z")

</div>

Closed on August 17, 2018, 6:02pm UTC

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

[Previous page](https://discuss.elastic.co/t/log-file-is-not-being-created-with-logstash-output-config/140110.md?page=1)
