简体   繁体   English

Logstash Docker映像配置

[英]Logstash Docker image configuration

I am new to docker and logstash, i am having issue with configuration of Logstash Docker. 我是Docker和Logstash的新手,我在配置Logstash Docker时遇到问题。

1) I downloaded Logstash docker image 6.0.1 form elasticsearch [will use as base image], i want to use only logstash, will save output log to a file 1)我从elasticsearch中下载了Logstash docker镜像6.0.1 [将用作基本镜像],我只想使用logstash,将输出日志保存到文件中

2) Want to collect logs on same machine, in which logstash will run 2)要在运行logstash的同一台计算机上收集日志

3) What configuration should i change or add to docker image [for ex. 3)我应该更改或添加到docker映像的配置是什么? logstash.conf, logstash.yml] logstash.conf,logstash.yml]

4) Where should i keep these configuration file. 4)我应该在哪里保存这些配置文件。

5) What should be the command to run docker image with configuration. 5)使用配置运行docker镜像的命令应该是什么。

Welcome to Stack Overflow! 欢迎使用Stack Overflow! There is plenty of documentation available on elastic site that will help you get started and run a fully functioning logstash setup. 弹性站点上有大量可用的文档,可帮助您入门并运行功能全面的logstash设置。 Reproducing the instructions etc here does not make sense so I am posting some links that will get you going and answer all your queries above. 在此处复制说明等没有任何意义,因此我发布了一些链接,这些链接将使您进入并回答上面的所有查询。

https://www.elastic.co/guide/en/logstash/6.0/docker-config.html https://www.elastic.co/guide/en/logstash/6.0/docker-config.html

https://www.elastic.co/guide/en/logstash/6.0/configuration-file-structure.html https://www.elastic.co/guide/en/logstash/6.0/configuration-file-structure.html

https://www.elastic.co/guide/en/logstash/6.0/config-examples.html https://www.elastic.co/guide/en/logstash/6.0/config-examples.html

https://www.elastic.co/guide/en/logstash/6.0/config-setting-files.html https://www.elastic.co/guide/en/logstash/6.0/config-setting-files.html

If you run into any specific issues or have any specific questions which are not answered by the documentation or any existing stack overflow answers please post a new question and we will try to help you :) 如果您遇到任何特定问题或文档中未解决的任何特定问题或任何现有的堆栈溢出答案,请发布新问题,我们将尽力为您提供帮助:)

Cheers! 干杯!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM