zoukankan      html  css  js  c++  java
  • Logstash的下载安装

    1. 下载地址:https://www.elastic.co/cn/downloads/past-releases#logstash
    2. 解压安装:tar -zxvf logstash-5.5.2.tar.gz -C /opt/modules/
    3. 开发测试:/bin/logstash -e 'input {stdin {}} output{stdout{}}' 
    运行logstash的配置文件有两种方案:
            方案一:使用bin/logstash -e(配置内容比较简单,一行就可以写完,可以直接在Linux命令行使用命令运行配置文件进行数据的收集)
                    如:/bin/logstash -e 'input {stdin {}} output{stdout{}}'
                    关键字解释:
                            input:配置输入
                            stdin:表示命令行数据,如果是文件则是file。(也可以是其他的输入)  
                            output:配置输出
                            stdout:表示命令行输出      
                            该配置文件的含义:在命令行输入的任何内容,经过logstash的收集处理,然后在命令行进行输出   
    
            方案二:编写一个配置文件,使用 bin/logstash -f 运行该配置文件(./bin/logstash -f test.conf)
                   vim /config/test.conf

                input {
                  stdin {}
                }
                output{
                  stdout{codec=>rubydebug}
                }  

  • 相关阅读:
    灾后重建
    购物
    [BZOJ3991][SDOI2015]寻宝游戏
    [BZOJ2286][SDOI2011]消耗战
    [Luogu4149][IOI2011]Race
    [BZOJ4003][JLOI2015]城池攻占
    [HDU5765]Bonds
    [HDU5977]Garden of Eden
    [Luogu4331][Baltic2004]数字序列
    [BZOJ4540][HNOI2016]序列
  • 原文地址:https://www.cnblogs.com/WeiKing/p/13368759.html
Copyright © 2011-2022 走看看