# Elasticsearch seems not to receive logs from logstash

**URL:** <https://discuss.elastic.co/t/elasticsearch-seems-not-to-receive-logs-from-logstash/274648>\
**Category:** Logstash\
**Created:** [June 1, 2021, 2:20pm UTC](https://discuss.elastic.co/t/elasticsearch-seems-not-to-receive-logs-from-logstash/274648 "2021-06-01T14:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gisellecarballo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gisellecarballo/32/112755_2.png) [@gisellecarballo](https://discuss.elastic.co/u/gisellecarballo)\
**Post date:** [June 1, 2021, 2:20pm UTC](https://discuss.elastic.co/t/elasticsearch-seems-not-to-receive-logs-from-logstash/274648/1 "2021-06-01T14:20:59Z")

</div>

Hi, anyone help me sort out why elasticsearch seems not to receive logs from logstash.  
I am new to ELK. here is my config so far. TIA

```auto
/etc/elasticsearch/elasticsearch.yml

network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
http.port: 9200

xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: elastic-certificates.p12

xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: elastic-certificates.p12
xpack.security.http.ssl.truststore.path: elastic-certificates.p12
xpack.security.http.ssl.client_authentication: optional

```

/etc/kibana/kibana.yml

server.port: 5601  
server.host: "0.0.0.0"  
server.name: "ELK-NETWORK"  
elasticsearch.hosts: ["[https://192.168.205.162:9200](https://192.168.205.162:9200)"]

elasticsearch.username: "kibana\_system"  
elasticsearch.password: "L3@ver"

server.ssl.enabled: true  
server.ssl.certificate: /etc/kibana/newfile.crt.pem  
server.ssl.key: /etc/kibana/newfile.key.pem  
elasticsearch.ssl.verificationMode: none  
xpack.encryptedSavedObjects.encryptionKey: "fdkjgaKJGHK123D4109NDHGFxsyfdkXSlpOhgjkjdh"

```auto
 /etc/logstash/conf.d/logstash.conf

input {
  tcp {
    port => 514
    type => syslog
  }
  udp {
    port => 514
    type => syslog
  }
}

filter {
  if [type] == "syslog" {
    grok {
      match => { "message" => "%{SYSLOGTIMESTAMP:syslog_timestamp} %{SYSLOGHOST:syslog_hostname} %{DATA:syslog_program}(?:\[%{POSINT:syslog_pid}\])?: %{GREEDYDATA:sysl$
      add_field => ["received_at", "%{@timestamp}"]
      add_field => ["received_from", "%{host}"]
    }
    date {
      match => ["syslog_timestamp", "MMM d HH:mm:ss", "MMM dd HH:mm:ss"]
    }
  }
}

output {
  elasticsearch { hosts => ["192.168.205.162:9200"] }
  stdout { codec => rubydebug }
}

```

Thank you so much !

---

<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 29, 2021, 2:21pm UTC](https://discuss.elastic.co/t/elasticsearch-seems-not-to-receive-logs-from-logstash/274648/2 "2021-06-29T14:21:03Z")

</div>

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