# Logstash not outputing data to any output plugin

**URL:** <https://discuss.elastic.co/t/logstash-not-outputing-data-to-any-output-plugin/229626>\
**Category:** Logstash\
**Created:** [April 24, 2020, 11:00am UTC](https://discuss.elastic.co/t/logstash-not-outputing-data-to-any-output-plugin/229626 "2020-04-24T11:00:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbhaxor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbhaxor/32/63588_2.png) [@tbhaxor](https://discuss.elastic.co/u/tbhaxor)\
**Post date:** [April 24, 2020, 11:00am UTC](https://discuss.elastic.co/t/logstash-not-outputing-data-to-any-output-plugin/229626/1 "2020-04-24T11:00:23Z")

</div>

I am using logstash in the SSL environment, in such a way that beats are connecting to logstash but logstash itself not sending data to elasticsearch. So I added the `file` output plugin, it seems the problem is not resolved

Elasticsearch Index

```auto
root@ubuntu-s-2vcpu-4gb-blr1-01:~# curl https://localhost:9200/_cat/indices --insecure -u admin:admin
yellow open security-auditlog-2020.04.24 l6Z0rboZSaaVtYhp0W8z6A 1 1 1722 0 545.8kb 545.8kb
green open wazuh-alerts-3.x-2020.04.23 8gJ2UmWrSxKskXUOW95jmw 3 0 644 0 1.1mb 1.1mb
yellow open security-auditlog-2020.04.23 lGnEmAgETPmMcg0rqzMHig 1 1 768 0 361.7kb 361.7kb
green open .kibana_task_manager_1 xP-DYERoTYS6zT3g0JR3lg 1 0 2 0 26.7kb 26.7kb
green open .apm-agent-configuration 8UjsvJjlRlG7vdr50MfQJg 1 0 0 0 283b 283b
green open ilm-history-1-000001 7c7IRPJQQBCjAX1vUDd0CA 1 0 18 0 25.3kb 25.3kb
green open .kibana_1 Jfrow1yoRDagBZzxfAqcdA 1 0 511 26 461.3kb 461.3kb
green open .opendistro_security kqcyE_MsRfSdw3kHevDgbg 1 0 6 0 32.5kb 32.5kb
green open kibana_sample_data_flights xC40h468Rp2YYzGoruRQPQ 1 0 13059 0 6.3mb 6.3mb

```

Logstash configuration

```auto
input {
  beats {
    port => 5044
    host => "0.0.0.0"
  }
}

output {
  file {
    path => "/root/%{[@metadata][beat]}-%{+YYYY.MM.dd}.txt"
  }

  elasticsearch {
    hosts => ["https://localhost:9200"]
    index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
    user => "admin"
    password => "admin"
    ssl_certificate_verification => "false"
  }
}

```

Packetbeat testing connection

```auto
logstash: PRIVATE_IP:5044...
  connection...
    parse host... OK
    dns lookup... OK
    addresses: 167.71.226.87
    dial up... OK
  TLS... WARN secure connection disabled
  talk to server... OK

```

Files in `/root`

```auto
root@ubuntu-s-2vcpu-4gb-blr1-01:~# ls /root/
root@ubuntu-s-2vcpu-4gb-blr1-01:~# 

```

---

<div class="post-metadata">

**Author:** ![tbhaxor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tbhaxor/32/63588_2.png) [@tbhaxor](https://discuss.elastic.co/u/tbhaxor)\
**Post date:** [April 24, 2020, 12:51pm UTC](https://discuss.elastic.co/t/logstash-not-outputing-data-to-any-output-plugin/229626/2 "2020-04-24T12:51:48Z")

</div>

On further investigation i have found that logstash is working fine

`test.conf`

```auto
input {
	stdin {}
}

output {
	file {
		path => "/root/file.txt"
	}

	stdout {
	}
}

```

`/usr/share/logstash/bin/logstash -f test.conf`

```auto
/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/awesome_print-1.7.0/lib/awesome_print/formatters/base_formatter.rb:31: warning: constant ::Fixnum is deprecated
{
       "message" => "hi",
      "@version" => "1",
          "host" => "ubuntu-s-2vcpu-4gb-blr1-01",
    "@timestamp" => 2020-04-24T12:49:15.347Z
}
hello
{
       "message" => "hello",
      "@version" => "1",
          "host" => "ubuntu-s-2vcpu-4gb-blr1-01",
    "@timestamp" => 2020-04-24T12:49:19.656Z
}

```

`cat /root/file.txt`

```auto
{"message":"hi","@version":"1","host":"ubuntu-s-2vcpu-4gb-blr1-01","@timestamp":"2020-04-24T12:49:15.347Z"}
{"message":"hello","@version":"1","host":"ubuntu-s-2vcpu-4gb-blr1-01","@timestamp":"2020-04-24T12:49:19.656Z"}

```

---

<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:** [May 22, 2020, 12:51pm UTC](https://discuss.elastic.co/t/logstash-not-outputing-data-to-any-output-plugin/229626/3 "2020-05-22T12:51:54Z")

</div>

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