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