# Error running input: error receiving slowlog data: dial tcp 127.0.0.1:6379: connect: connection refused

**URL:** <https://discuss.elastic.co/t/error-running-input-error-receiving-slowlog-data-dial-tcp-127-0-0-1-connect-connection-refused/193157>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 31, 2019, 3:23pm UTC](https://discuss.elastic.co/t/error-running-input-error-receiving-slowlog-data-dial-tcp-127-0-0-1-connect-connection-refused/193157 "2019-07-31T15:23:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![loas](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@loas](https://discuss.elastic.co/u/loas)\
**Post date:** [July 31, 2019, 3:23pm UTC](https://discuss.elastic.co/t/error-running-input-error-receiving-slowlog-data-dial-tcp-127-0-0-1-connect-connection-refused/193157/1 "2019-07-31T15:23:28Z")

</div>

Hey gang,  
I am trying the Filebeat Redis module on Kubernetes but can't seem to get past the following errors.  
Error running input: error receiving slowlog data: dial tcp 127.0.0.1:6379: connect: connection refused  
Error running input: error receiving slowlog data: redigo: unexpected response line (possible server error or unsupported concurrent read by application)

````auto
   filebeat.yml: |-
    filebeat.modules:
      - module: system
        syslog:
          enabled: true
          var.paths: ["/var/log/syslog"]
        auth:
          enabled: true
          var.paths: ["/var/log/authlog"]
    filebeat.config:
      enabled: true
      inputs:
        path: /usr/share/filebeat/inputs.d/*.yml
        reload.enabled: false
      modules:
        path: /usr/share/filebeat/modules.d/*.yml
        reload.enabled: false
    logging.metrics.enabled: false
    filebeat.autodiscover:
      providers:
        - type: kubernetes
          hints.enabled: true
          templates:
            - condition.contains:
                kubernetes.labels.app: redis
              config:
                - module: redis
                  log:
                    enabled: true
                    input:
                      type: docker
                      containers.ids:
                        - ${data.kubernetes.container.id}
                  slowlog:
                    enabled: true
                    hosts: ["localhost:6379"]
                    var.hosts: ["${data.host}:${data.port}"] ```
````

---

<div class="post-metadata">

**Author:** ![maxozerov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maxozerov/32/48068_2.png) [@maxozerov](https://discuss.elastic.co/u/maxozerov)\
**Post date:** [August 8, 2019, 12:46pm UTC](https://discuss.elastic.co/t/error-running-input-error-receiving-slowlog-data-dial-tcp-127-0-0-1-connect-connection-refused/193157/2 "2019-08-08T12:46:51Z")

</div>

> [@loas](#):
>
> 127.0.0.1:6379: connect: connection refused

loas - This is a dumb case - just for example - no one is listening to this port (6379)  
check it: 😉

`nc -v 127.0.0.1 6379`

---

<div class="post-metadata">

**Author:** ![loas](https://avatars.discourse-cdn.com/v4/letter/l/e9c0ed/32.png) [@loas](https://discuss.elastic.co/u/loas)\
**Post date:** [August 8, 2019, 1:00pm UTC](https://discuss.elastic.co/t/error-running-input-error-receiving-slowlog-data-dial-tcp-127-0-0-1-connect-connection-refused/193157/3 "2019-08-08T13:00:47Z")

</div>

Thanks, I updated it and it appears to be working.

---

<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:** [September 5, 2019, 3:00pm UTC](https://discuss.elastic.co/t/error-running-input-error-receiving-slowlog-data-dial-tcp-127-0-0-1-connect-connection-refused/193157/4 "2019-09-05T15:00:51Z")

</div>

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