# Filebeat 5 error when sending to redis

**URL:** <https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 16, 2016, 5:55pm UTC](https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742 "2016-09-16T17:55:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alexander\_Fichel](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Alexander\_Fichel](https://discuss.elastic.co/u/Alexander_Fichel)\
**Post date:** [September 16, 2016, 5:55pm UTC](https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742/1 "2016-09-16T17:55:47Z")

</div>

Getting the following errors when having filebeats send to redis:

Filebeats version: filebeat-5.0.0-alpha5-windows-x86\_64  
Windows where filebeats is installed: 64 bit win server 2008  
Redis version in AWS (Worked with other version - filebeat-1.3.0-windows): redis\_version:2.8.24

```
2016-09-15T17:48:39-07:00 ERR Failed to RPUSH to redis list (write tcp 10.243.196.92:51305->10.218.248.248:6379: i/o timeout) with %!v(MISSING)
2016-09-15T17:48:39-07:00 INFO Error publishing events (retrying): write tcp 10.243.196.92:51305->10.218.248.248:6379: i/o timeout
2016-09-15T17:48:39-07:00 DBG close connection
2016-09-15T17:48:39-07:00 DBG send fail

```

Config file:

```
filebeat:
  prospectors:
	-
	  paths:
		- "D:/logs/PermissionsServiceJSON.log.node1"
	  input_type: log
	  document_type: permission-service
	  scan_frequency: 1s
	  json.keys_under_root: true
	  json.overwrite_keys: true
  registry_file: "D:/FileBeat/registry"
output:
  redis:
	# Set the host and port where to find Redis.
	hosts: ["abc.xyz.ng.0001.usw2.cache.amazonaws.com:6379"]
	key: "logs"
shipper:
logging:
  level: debug
  # enable file rotation with default configuration
  to_files: true
  files:
	path: D:/FileBeat/filebeat.log

```

Example of log event from filebeats log:

```
2016/09/16 00:30:58.824207 client.go:180: DBG Publish: {
  "@timestamp": "2016-09-13T18:15:16.820Z",
  "@version": 1,
  "beat": {
	"hostname": "a8-3llc-sdks21",
	"name": "a8-3llc-sdks21"
  },
  "class": "org.springframework.core.env.AbstractEnvironment",
  "file": "AbstractEnvironment.java",
  "input_type": "log",
  "level": "DEBUG",
  "line_number": "120",
  "logger_name": "org.springframework.core.env.StandardEnvironment",
  "mdc": {},
  "message": "Initialized StandardEnvironment with PropertySources [systemProperties,systemEnvironment]",
  "method": "\u003cinit\u003e",
  "offset": 1016049,
  "source": "D:/logs/PermissionsServiceJSON.log.node1",
  "source_host": "a8-3llc-sdks21",
  "thread_name": "http-a8-3llc-sdks21/10.243.196.92:8480-1",
  "type": "my_test_log"
}
```

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 19, 2016, 7:26am UTC](https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742/2 "2016-09-19T07:26:39Z")

</div>

Can you reach the redis-server with the redis-client from your filebeat machine?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [September 19, 2016, 12:04pm UTC](https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742/3 "2016-09-19T12:04:01Z")

</div>

redis publisher has a default I/O timeout of 5 seconds. Have you tried to increase or disable the timeout?

---

<div class="post-metadata">

**Author:** ![Alexander\_Fichel](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@Alexander\_Fichel](https://discuss.elastic.co/u/Alexander_Fichel)\
**Post date:** [September 19, 2016, 4:57pm UTC](https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742/4 "2016-09-19T16:57:51Z")

</div>

Yes, I can telnet \<redis\_server\> 6379 without any issues.

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [September 20, 2016, 6:57am UTC](https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742/5 "2016-09-20T06:57:33Z")

</div>

We run all our tests on Redis 3.2 and tested previously on 3.0. Any chance to update the Redis version? Did increasing the timeout help?

---

<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:** [October 7, 2016, 5:55pm UTC](https://discuss.elastic.co/t/filebeat-5-error-when-sending-to-redis/60742/6 "2016-10-07T17:55:59Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
