找回密码
 注册
查看: 4564|回复: 1

Error: Something is wrong with your configuration. logstash

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2017-6-16 11:28:10 | 显示全部楼层 |阅读模式
Unknown setting 'hosts' for elasticsearch {:level=>:error}
7 ~4 s* x  c" P3 |6 ~3 k2 p4 {( AError: Something is wrong with your configuration.
$ \) U% m4 B5 h# U# a3 E' v7 iYou may be interested in the '--configtest' flag which you can' ]9 g+ E2 F, J/ w- B2 g
use to validate logstash's configuration before you choose; p0 S( _' ?. I
to restart a running system.$ t2 W, g9 J; Z* v+ h' N

2 {. Q/ F2 P0 _: c" e6 x2 a; y! b4 U, o9 k
修改配置:
. R3 C6 r5 d3 |% ~/ r8 P1 p   # vim indexer.conf & v5 n0 ]. V1 q+ O7 T8 ]  \8 P
, k5 p% J# i7 e- E* b/ t$ Z
input{
! M: X7 Z+ V3 V        redis{& E7 |- q0 C6 o8 _% U
                host => "cld.redis.vip.com"
$ A! b7 N3 f9 U$ Q3 |3 A                key => "logstash:redis"4 o9 W+ |( a# d# @; I3 ^  R. E
                data_type => "list"
7 S5 Z9 T6 w# R, C: g                password => "****"
( I2 i( n# g5 ^4 c5 t: J: y        }
1 C( ~% M6 |5 |}
; k  R" ?3 a. }7 ]/ A. y( T" O, Ooutput{
6 \( p- g1 I: X$ |        elasticsearch{/ Q9 \) ]4 C" l6 S! [9 x9 \3 C
                host => "clm.elasticsearch.vip.com"
3 l8 ^# o' t9 D7 L  o: `, ]                cluster => "elasticsearch_production"
& g7 C, H* K: P$ @9 o0 j5 l. O                protocol => "node"
3 d) e0 \( L; J4 X9 V7 w        }
; N/ d( _: ?5 G; n! X7 c0 {7 y}
4 |+ `" ^7 o# l! B" W

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2017-6-16 11:36:24 | 显示全部楼层
Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.4/plugin-milestones {:level=>:warn}
  I, b# U; j$ [+ o0 OUsing milestone 1 filter plugin 'ruby'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin.  For more information on plugin milestones, see http://logstash.net/docs/1.4.4/plugin-milestones {:level=>:warn}
7 g4 M) B6 i, H. _$ i9 ~* p2 p' tUsing milestone 2 output plugin 'redis'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.4/plugin-milestones {:level=>:warn}
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:03 , Processed in 0.016713 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表