logstash server 配置文件
程序员文章站
2022-05-27 16:13:23
...
input {
redis {
host => "10.10.45.200"
data_type => "list"
key => "elk_frontend_access:redis"
port =>"5379"
}
}
output {
if [type] == "www1_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-www1-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "flight1_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-flight1-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "www_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-www-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "m_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-m-frontend-%{+YYYY.MM.dd}"
}
}
if [type] == "ro_access"{
elasticsearch {
hosts => "10.10.45.200:8201"
index => "logstash-ro-frontend-%{+YYYY.MM.dd}"
}
}
}
转载于:https://blog.51cto.com/linux10000/1941430
上一篇: poj1986 Distance Queries (lca模板)
下一篇: php引用传值(转)
推荐阅读
-
将MSSQL Server 导入/导出到远程服务器教程的图文方法分享
-
linux下配置lamp时候出现The requested URL /info.php was not found on this server问题
-
SQL SERVER数据操作类代码
-
SQL Server的数据导入MySQL数据库方法简介(1)
-
sql server死锁原因分析总结(1/2)
-
读取SQL Server日志及代理日志
-
SQL SERVER:不同服务器数据库之间的数据操作
-
Sql Server 主从数据库配置
-
SQL Server2008安装报错,解决方案(创建 system.diagnostics 的配置节处理程序时出错)
-
Ubuntu Server Deploy 已经支持php7