# Filebeat for redis slowlog

**URL:** <https://discuss.elastic.co/t/filebeat-for-redis-slowlog/192914>\
**Category:** Beats\
**Created:** [July 30, 2019, 2:00pm UTC](https://discuss.elastic.co/t/filebeat-for-redis-slowlog/192914 "2019-07-30T14:00:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudraram](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rudraram](https://discuss.elastic.co/u/rudraram)\
**Post date:** [July 30, 2019, 2:00pm UTC](https://discuss.elastic.co/t/filebeat-for-redis-slowlog/192914/1 "2019-07-30T14:00:49Z")

</div>

Hi Friends,  
Need help with my configuration. I am trying to see if i can configure filebeat to ingest redis slow logs into my elasticsearch cluster. before that want to see if i get the events listed to console

here is my snippet from filebeat.yml

```auto
output.console:
  pretty: true

```

modules.d/redis.yml

```auto
- module: redis
  log:
    enabled: false
    var.paths: ["/path/to/log/redis/redis-server.log*"]
  # Slow logs, retrieved via the Redis API (SLOWLOG)
  slowlog:
    enabled: true
    # The Redis hosts to connect to.
    var.hosts: ["elasticache1.xyxxnd.ng.0001.usw2.cache.amazonaws.com:6379"]

```

my output doesnt show any list of events

my setup:

running file beat on Mac OS with version  
filebeat-7.2.0-darwin-x86\_64

./filebeat -e

seems like filebeat could connect to elasticache endpoint but never shows me anything

---

<div class="post-metadata">

**Author:** ![rudraram](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rudraram](https://discuss.elastic.co/u/rudraram)\
**Post date:** [July 30, 2019, 2:20pm UTC](https://discuss.elastic.co/t/filebeat-for-redis-slowlog/192914/2 "2019-07-30T14:20:29Z")

</div>

from the filebeat console

```auto
{"running":0}},"pipeline":{"clients":2,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"load":{"1":2.3867,"15":3.0552,"5":2.7393,"norm":{"1":0.2983,"15":0.3819,"5":0.3424}}}}}}
2019-07-30T09:17:15.604-0500	DEBUG	[input]	input/input.go:152	Run input
2019-07-30T09:17:15.604-0500	DEBUG	[redis]	redis/input.go:84	Run redis input with hosts: [elasticache.xyzzz.ng.0001.usw2.cache.amazonaws.com:6379]
2019-07-30T09:17:25.747-0500	DEBUG	[input]	input/input.go:152	Run input
2019-07-30T09:17:25.747-0500	DEBUG	[redis]	redis/input.go:84	Run redis input with hosts: [[elasticache.xyzzz.h.ng.0001.usw2.cache.amazonaws.com:6379]
2019-07-30T09:17:35.936-0500	DEBUG	[input]	input/input.go:152	Run input
2019-07-30T09:17:35.936-0500	DEBUG	[redis]	redis/input.go:84	Run redis input with hosts: [[elasticache.xyzzz..ng.0001.usw2.cache.amazonaws.com:6379]
2019-07-30T09:17:37.487-0500	INFO	[monitoring]	log/log.go:145	Non-zero metrics in the last 30s	{"monitoring": {"metrics": {"beat":{"cpu":{"system":{"ticks":140,"time":{"ms":6}},"total":{"ticks":306,"time":{"ms":16},"value":306},"user":{"ticks":166,"time":{"ms":10}}},"info":{"ephemeral_id":"ce6dd5ca-8467-4b2f-b102-ceae1282569c","uptime":{"ms":633109}},"memstats":{"gc_next":4194304,"memory_alloc":3279552,"memory_total":30217736,"rss":12288},"runtime":{"goroutines":18}},"filebeat":{"harvester":{"open_files":0,"running":0}},"libbeat":{"config":{"module":{"running":0}},"pipeline":{"clients":2,"events":{"active":0}}},"registrar":{"states":{"current":0}},"system":{"load":{"1":2.5337,"15":3.0405,"5":2.7324,"norm":{"1":0.3167,"15":0.3801,"5":0.3416}}}}}}

```

---

<div class="post-metadata">

**Author:** ![rudraram](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rudraram](https://discuss.elastic.co/u/rudraram)\
**Post date:** [July 31, 2019, 2:19pm UTC](https://discuss.elastic.co/t/filebeat-for-redis-slowlog/192914/3 "2019-07-31T14:19:32Z")

</div>

any updates here?

---

<div class="post-metadata">

**Author:** ![rudraram](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rudraram](https://discuss.elastic.co/u/rudraram)\
**Post date:** [July 31, 2019, 2:51pm UTC](https://discuss.elastic.co/t/filebeat-for-redis-slowlog/192914/4 "2019-07-31T14:51:38Z")

</div>

Ok, looks like my configuration is good except for there are no slow logs in redis, so we have empty set result coming back

this is resolved now

---

<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:** [August 28, 2019, 4:51pm UTC](https://discuss.elastic.co/t/filebeat-for-redis-slowlog/192914/5 "2019-08-28T16:51:45Z")

</div>

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