# Filbeat not publishing logs to logstash

**URL:** <https://discuss.elastic.co/t/filbeat-not-publishing-logs-to-logstash/261578>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 19, 2021, 5:16pm UTC](https://discuss.elastic.co/t/filbeat-not-publishing-logs-to-logstash/261578 "2021-01-19T17:16:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjini](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@ranjini](https://discuss.elastic.co/u/ranjini)\
**Post date:** [January 19, 2021, 5:16pm UTC](https://discuss.elastic.co/t/filbeat-not-publishing-logs-to-logstash/261578/1 "2021-01-19T17:16:12Z")

</div>

filebeat logs

````auto
2021-01-19T17:07:14.953Z INFO [publisher_pipeline_output] pipeline/output.go:151 Connection to backoff(async(tcp://logsrv.example-elk.local:5044)) established
2021-01-19T17:07:14.978Z ERROR [logstash] logstash/async.go:280 Failed to publish events caused by: EOF
2021-01-19T17:07:14.978Z INFO [publisher] pipeline/retry.go:219 retryer: send unwait signal to consumer
2021-01-19T17:07:14.978Z INFO [publisher] pipeline/retry.go:223 done ```

filebeat.yml 

````

################### Filebeat Configuration Example ###################

# filebeat config for cds project

############################# Filebeat ###############################

filebeat.inputs:  
-  
paths:  
- /opt/tomcat/tomcat.log  
input\_type: log  
enabled: true  
multiline:  
pattern: ^[0-9]+[0-9]+[0-9]+[0-9]-[0-1]+[0-9]-[0-3]+[0-9]  
negate: true  
match: after  
max\_lines: 250  
timeout: 15s  
fields:  
tags: apache  
environment: elk  
product: tomcat

```
-
  paths:
    - /opt/tomcat/apache.log
  input_type: log
  enabled: true
  multiline:
    pattern: ^[0-9]+[0-9]+[0-9]+[0-9]-[0-1]+[0-9]-[0-3]+[0-9]
    negate: true
    match: after
    max_lines: 250
    timeout: 15s
  fields:
    tags: apache2
    environment: elk
    product: tomcat

```

registry\_file: /var/lib/filebeat/.registry

output.logstash:  
hosts: ["logsrv.example-elk.local:5044"]  
key: "ek-cds"  
db: 0  
db\_topology: 1  
timeout: 5  
reconnect\_interval: 1  
shipper:  
logging:  
to\_syslog: false  
to\_files: true  
files:  
path: /var/log/filebeat  
name: filebeat.log  
rotateeverybytes: 10485760 # = 10MB  
keepfiles: 7  
level: debug

```auto
please help
```

---

<div class="post-metadata">

**Author:** ![mtojek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mtojek/32/63863_2.png) [@mtojek](https://discuss.elastic.co/u/mtojek)\
**Post date:** [January 20, 2021, 9:13am UTC](https://discuss.elastic.co/t/filbeat-not-publishing-logs-to-logstash/261578/2 "2021-01-20T09:13:06Z")

</div>

Please format your post correctly using ```. I don't see what is the exact problem you're facing.

---

<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 17, 2021, 11:13am UTC](https://discuss.elastic.co/t/filbeat-not-publishing-logs-to-logstash/261578/3 "2021-02-17T11:13:10Z")

</div>

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