Remember once docker installation logstash

docker mounted logstash, the official website hub.docker not an example of. Check the article, most of the copy paste, did not elaborate. Watching the ignorant, even after copy paste operations start up, but many still do not understand. Recall that under no logstash docker installed, compared to a little under generally understood. Can be configured to run their own, no one will automatically start or stop. Chagrin.

Just careful comparison, careful verification found the problem. Looks like logstash start to use the interactive mode, which starts in the statement to add -it. Otherwise it will stop after the start.

Also see the information and found that configuration requires at least two documents that describe you used to read input, filter, conf file path suffix of the output. I named: pipelines.yml, says:

 

- pipeline.id: my-logstash
path.config: "/usr/share/logstash/config/pipeline/pipelines-mysql.conf"
pipeline.workers: 3

Note the very beginning of the horizontal line.

Another is to read the input and output conf file, I named: Pipelines-mysql.conf. Says:

input {
tcp {
mode => "server"
host => "0.0.0.0"
port => 4567

}

}
output {
elasticsearch {
action => "index"
hosts => "ip:200"
index => "index"
}
}

This content is the information I raided the inside, go to the subsequent changes

At this point you can start up.
.

Follow the link es and start reading the configuration database, and so I write this well. Learn while writing.

 

Guess you like

Origin www.cnblogs.com/fuguang/p/11511834.html