# Logstash does not send logs into the file

**URL:** <https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165>\
**Category:** Logstash\
**Created:** [November 3, 2020, 2:36pm UTC](https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165 "2020-11-03T14:36:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andex](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@Andex](https://discuss.elastic.co/u/Andex)\
**Post date:** [November 3, 2020, 2:36pm UTC](https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165/1 "2020-11-03T14:36:52Z")

</div>

Hi, from filebeat, i send log to logstash, if I listen in tcpdump I see the logs arrive but Logstash don't send Log tothe file i specified in the pipelines, this is the Pipelines :

input {  
beats {  
port =\> 5044  
}  
}

output {  
file {  
path =\> "/tmp/filebeat/filebeat.txt"  
codec =\> line { format =\> "custom format: %{message}"}  
}  
}

What's the problem, i don't see anyone file under /tmp/filebeat.  
Thanks

---

<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:** [November 3, 2020, 2:55pm UTC](https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165/2 "2020-11-03T14:55:02Z")

</div>

Have you tried to just output to the screen to see what you get?

```auto
output {
  stdout {}
}

```

If this works then I'd check permissions on your `/tmp/filebeat/` folder.

---

<div class="post-metadata">

**Author:** ![Andex](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@Andex](https://discuss.elastic.co/u/Andex)\
**Post date:** [November 3, 2020, 3:46pm UTC](https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165/3 "2020-11-03T15:46:15Z")

</div>

> [@aaron-nimocks](#):
>
> ```auto
> output {
> stdout {}
> }
> 
> ```

i don't see log on the journalctl

---

<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:** [November 3, 2020, 3:58pm UTC](https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165/4 "2020-11-03T15:58:26Z")

</div>

Are you running this pipeline via command line or within Kibana?

What do you get when you try this?

```auto
output {
  file {
    path => "/tmp/filebeat/filebeat.txt"
  }
}

```

---

<div class="post-metadata">

**Author:** ![Andex](https://avatars.discourse-cdn.com/v4/letter/a/848f3c/32.png) [@Andex](https://discuss.elastic.co/u/Andex)\
**Post date:** [November 3, 2020, 4:35pm UTC](https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165/5 "2020-11-03T16:35:34Z")

</div>

i found the issues

Thanks for your help 🙂

---

<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:** [December 1, 2020, 4:35pm UTC](https://discuss.elastic.co/t/logstash-does-not-send-logs-into-the-file/254165/6 "2020-12-01T16:35:37Z")

</div>

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