Logstash Reading Redis Data

Source: Internet
Author: User
Tags logstash

Type settings:

The Redis plugin in Logstash specifies three ways to read the information in the Redis queue.

    • List=>blpop ( equivalent to queue )
    • Channel=>subscribe ( equivalent to a specific channel for publishing subscriptions )
    • Pattern_channel=>psubscribe ( equivalent to publishing a subscription to a group of channels )

Where list is the equivalent of a queue; a channel is equivalent to a specific channel for a subscription; Pattern_channel is equivalent to publishing a subscription to a group of channels

Parameter settings:

DB:

Redis has a database concept, typically 16, the default login is 0, can be selected by the command. If the application chooses to use a different database, you can read the information from the specified database by configuring this parameter.

Key:

Data in Redis is indexed by key values, whether a string or a list, so this key is equivalent to a table in the database.
If it is a list or channel mode, key is the specified key value, and if it is pattern_channel, then key can be specified by means of glob wildcard.

Password:

Some redis is required to be validated for security purposes. The information can be read correctly only if the password is set. Conversely, if Redis does not have a password set, and the password is configured in Logstash, it will also error!

Batch_count:

This property sets the number of events returned by the server, such as setting 5, so that each request will fetch a maximum of 5 log returns.

Logstash Reading Redis Data

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.