# Sending logs from Filebeat(windows) to Logstash(Linux)

**URL:** <https://discuss.elastic.co/t/sending-logs-from-filebeat-windows-to-logstash-linux/334112>\
**Category:** Logstash\
**Created:** [May 23, 2023, 11:49am UTC](https://discuss.elastic.co/t/sending-logs-from-filebeat-windows-to-logstash-linux/334112 "2023-05-23T11:49:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [May 23, 2023, 11:49am UTC](https://discuss.elastic.co/t/sending-logs-from-filebeat-windows-to-logstash-linux/334112/1 "2023-05-23T11:49:00Z")

</div>

Hi,  
I have installed filebeat on windows machine and configured it to send logs to logstash.  
Here is my filebeat config

```auto
filebeat.inputs:

# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.

# filestream is an input for collecting log messages from files.
- type: log
  enabled: true
  paths:
    - D:\Tracability\Apache.log
  fields:
    type: apache_3dx
  fields_under_root: true
- type: log
  enabled: true
  paths:
    - D:\Tracability\*.txt
  fields:
    type: services_3dx
  fields_under_root: true
- type: log
  enabled: true
  paths:
    - D:\Tracability\merged_logfile.log
  fields:
    type: 3dx_merged
  fields_under_root: true
- type: syslog
  enabled: false

output.logstash:
  # The Logstash hosts
  hosts: ["logstash_ip:5044"]

```

Here is my logstash config

```auto
input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => "http://elastic_ip:9200"
    index => "%{type}-%{+YYYY.MM.dd}"
    user => "elastic"
    password => "pwd"
  }
}

```

This logstash pipeline works fine with other filebeat sources which are on linux. But this is not working. There is no error in logs  
The output of command  
.\filebeat -e -c "C:\Program Files\Filebeat\filebeat.yml" test output  
is fine  
The output of command .\filebeat -e -c "C:\Program Files\Filebeat\filebeat.yml" -d "publish" also looks like the logs r picking up. But the index is not getting created. Not sure where its going wrong

---

<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:** [May 23, 2023, 12:47pm UTC](https://discuss.elastic.co/t/sending-logs-from-filebeat-windows-to-logstash-linux/334112/2 "2023-05-23T12:47:02Z")

</div>

You need to share what you have in filebeat logs, without the logs it is impossible to know what is happening.

Also, you need to enclose the paths in quotes.

```auto
- type: log
  enabled: true
  paths:
    - 'D:\Tracability\*.txt'
  fields:
    type: services_3dx
  fields_under_root: true

```

---

<div class="post-metadata">

**Author:** ![Neelam\_Zanvar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/neelam_zanvar/32/103116_2.png) [@Neelam\_Zanvar](https://discuss.elastic.co/u/Neelam_Zanvar)\
**Post date:** [May 24, 2023, 6:18am UTC](https://discuss.elastic.co/t/sending-logs-from-filebeat-windows-to-logstash-linux/334112/3 "2023-05-24T06:18:57Z")

</div>

Thank you for the quick response. The '' on the logpath solved the problem. Thank you!

---

<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:** [June 21, 2023, 6:19am UTC](https://discuss.elastic.co/t/sending-logs-from-filebeat-windows-to-logstash-linux/334112/4 "2023-06-21T06:19:12Z")

</div>

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