Exec input for command in another directory

I am looking into ways of being able to make monitoring of redis easier by collecting the slow log from redis and parsing it to elk to easily see trends and protential issues.

It looks like this is possible by using the redis-cli get slowlog command from the exec input. Is there a way to specify a folder path to redis-cli and if possible after collecting the slow log it clears it to ensure only new requests are collected?

Is there a way to specify a folder path to redis-cli

What do you mean?

and if possible after collecting the slow log it clears it to ensure only new requests are collected?

Not sure why you think that's necessary, but it sounds more like a Redis question.

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