Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filebeat Redis prospector type #4180

Merged
merged 1 commit into from
May 26, 2017
Merged

Commits on May 26, 2017

  1. Filebeat Redis prospector type

    This PR adds a new prospector type which reads the slowlog from redis. This slowlog is not in a file but in memory in redis. Because of this filebeat connects to redis and reads out the slowlog. It is important to note that the slow log size is limited in redis that is why after fetching the events from the slowlog filebeat resets the slow log.
    
    Example event looks as following:
    
    ```
    {
      "@timestamp": "2017-05-16T06:27:17.000Z",
      "beat": {
        "hostname": "ruflin",
        "name": "ruflin",
        "read_timestamp": "2017-05-16T06:27:19.275Z",
        "version": "6.0.0-alpha2"
      },
      "message": "SET hello world",
      "redis": {
        "slowlog": {
          "args": [
            "world"
          ],
          "cmd": "SET",
          "duration": {
            "us": 11
          },
          "id": 38,
          "key": "hello"
        }
      }
    }
    ```
    
    All args are combined in the "message" field output for easy retrieval.
    ruflin committed May 26, 2017
    Configuration menu
    Copy the full SHA
    e3e6c2f View commit details
    Browse the repository at this point in the history