# Filebeat is running but not sending logs to logstash

**URL:** <https://discuss.elastic.co/t/filebeat-is-running-but-not-sending-logs-to-logstash/262283>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 26, 2021, 9:01pm UTC](https://discuss.elastic.co/t/filebeat-is-running-but-not-sending-logs-to-logstash/262283 "2021-01-26T21:01:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ats](https://avatars.discourse-cdn.com/v4/letter/a/da6949/32.png) [@ats](https://discuss.elastic.co/u/ats)\
**Post date:** [January 26, 2021, 9:01pm UTC](https://discuss.elastic.co/t/filebeat-is-running-but-not-sending-logs-to-logstash/262283/1 "2021-01-26T21:01:21Z")

</div>

Hi folks,  
I configured filebeat on a ubuntu instance in aws and sending logs to Logstash but it's not sending to Logstash.

Here is my filebeat yml file

```
# ---------------------------- Elasticsearch Output ----------------------------
#output.elasticsearch:
  # Array of hosts to connect to.
  # hosts: ["172.31.70.167:9200"]

  # Protocol - either `http` (default) or `https`.
  #protocol: "https"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  # username: "elastic"
  # password: "uCadaqwWfb0EeZNRtivO"

# ------------------------------ Logstash Output -------------------------------
output.logstash:
  # The Logstash hosts
  hosts: "172.31.70.167:5044"

  #protocol: "https"

  username: "logstash_system"
  password: "EWM4ycvSJvcth2MpfvVE"

  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

  # Certificate for SSL client authentication
  #ssl.certificate: "/etc/pki/client/cert.pem"

  # Client Certificate Key
  #ssl.key: "/etc/pki/client/cert.key"
setup.ilm.enabled: false

```

Here's my Logstash input

```
    input {
      elasticsearch {
        port => 5044
        user => "logstash_system"
        password => "EWM4ycvSJvcth2MpfvVE"

      }
    }

```

Seeing this error

```
2021-01-26T15:36:17.641Z INFO instance/beat.go:299 Setup Beat: filebeat; Version: 7.10.1

2021-01-26T15:36:17.642Z INFO [publisher] pipeline/module.go:113 Beat name: ip-172-31-70-167

2021-01-26T15:36:17.643Z WARN beater/filebeat.go:178 Filebeat is unable to load the Ingest Node pipelines for the configured modules because the Elasticsearch output is not configured/enabled. If you have already loaded the Ingest Node pipelines or are using Logstash pipelines, you can ignore this warning.

2021-01-26T15:36:17.647Z ERROR instance/beat.go:956 Exiting: Index management requested but the Elasticsearch output is not configured/enabled

Exiting: Index management requested but the Elasticsearch output is not configured/enabled
```

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [January 26, 2021, 11:09pm UTC](https://discuss.elastic.co/t/filebeat-is-running-but-not-sending-logs-to-logstash/262283/2 "2021-01-26T23:09:00Z")

</div>

Hi @ats

You are using the wrong input type in your logstash config...

It should look something like this also why not leave ILM on...

```
################################################
# beats->logstash->es default config.
################################################
input {
  beats {
    port => 5044
  }
}

output {
  if [@metadata][pipeline] {
    elasticsearch {
      hosts => "http://localhost:9200"
      manage_template => false
      index => "%{[@metadata][beat]}-%{[@metadata][version]}"
      pipeline => "%{[@metadata][pipeline]}" 
      user => "elastic"
      password => "secret"
    }
  } else {
    elasticsearch {
      hosts => "http://localhost:9200"
      manage_template => false
      index => "%{[@metadata][beat]}-%{[@metadata][version]}"
      user => "elastic"
      password => "secret"
    }
  }
}
```

---

<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 24, 2021, 1:09am UTC](https://discuss.elastic.co/t/filebeat-is-running-but-not-sending-logs-to-logstash/262283/3 "2021-02-24T01:09:00Z")

</div>

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