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}
                }  

  • 相关阅读:
    9多线程与异步
    5文件操作
    3C#面向对象概念
    2初步了解C#类与对象
    7Linq查询语言
    6字符编码
    8网络请求之http
    1初步了解C#语言基础
    4C#格式处理
    WPF及Silverlight中将DataGrid数据导出 南京酷得软件
  • 原文地址:https://www.cnblogs.com/WeiKing/p/13368759.html
Copyright © 2011-2022 走看看