Logstach configuration file Detailed

Source: Internet
Author: User

The basic format of the configuration file, the input section, the filter section, and the output section.

# This is a comment. You should use comments to describe# parts of your configuration.input {...} Filter {...} Output {...}

Each section can be configured with one or more plugins. The following shows the input section, which has two file plugins.

Input {file {path = "/var/log/messages" type = "syslog"} file {path = = "/var/log/apache/access. Log "type =" Apache "}}

Plug-in value types


Path = ["/var/log/messages", "/var/log/*.log"]path = "/data/mysql/mysql.log"


Ssl_enable = True


name = "Hello World" name + ' it\ ' s a beautiful Day '


Match + = {"Field1" = "value1" "Field2" + "value2" ...}


My_bytes = "1113" # 1113 bytes my_bytes = "10MiB" # 10485760 bytes my_bytes = "100kib" # 102400 bytes My _bytes = "MB" # 180000000 bytes


codec = "JSON"

Value: Floating-point or integer

Port = 33

Password type: not logged or printed

My_password = "Password"

Path Type: string

My_path = "/tmp/logstash"

NOTES: Using #

This article is from the "This person's IT World" blog, be sure to keep this source http://favccxx.blog.51cto.com/2890523/1826747

Logstach configuration file Detailed

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.