博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
ELK 学习笔记之 Logstash之inputs配置
阅读量:7059 次
发布时间:2019-06-28

本文共 467 字,大约阅读时间需要 1 分钟。

Logstash之inputs配置:

 

input plugin doc:

插件很多,选两个常用的使用下。

1. stdin input plugin

参数:

建立stdin-sample.conf:

input {

 stdin {}

}

output {

 stdout {}

}

执行:

./logstash -f stdin-sample.conf

输入即所得

2. file input plugin

参数:

建立 file-sample.conf:

input{

file{

path => ["/usr/local/mongodb/logs/mongodb.log"]

type => "mongodblog"

start_position => "beginning"

}

}

output{

stdout{}

}

执行:

./logstash -f file-sample.conf

MongoDB的日志都读进来来。

 

转载于:https://www.cnblogs.com/AK47Sonic/p/7580772.html

你可能感兴趣的文章
【BZOJ1930】【SHOI2003】吃豆豆
查看>>
PostgreSQL 10.0 压缩版的 pgAdmin 不能用的问题
查看>>
动态最小生成树讲解
查看>>
find命令
查看>>
Windows和Mac下安装Beautiful Soup
查看>>
Mac 配置android环境变量
查看>>
SkyLine二次开发——解决在web页面启动时自动运行TerraExplorer的问题
查看>>
约瑟夫环(Josehpuse)的模拟
查看>>
CSS小技巧
查看>>
正则匹配 
查看>>
shell 读取文件
查看>>
给视图添加阴影
查看>>
数组2
查看>>
在django中,执行原始sql语句
查看>>
配置eclipse使能打开当前文件所在目录
查看>>
Repeater内RadioButton.GroupName失效
查看>>
【算法学习笔记】17.暴力求解法05 隐式图搜索1 迭代加深搜索 埃及分数
查看>>
X-Frame-Options,X-XSS-Protection,X-Content-Type-Options
查看>>
每日一句(15)
查看>>
读书笔记--SQL必知必会--建立练习环境
查看>>