i am using elasticsearch + logstash + kibana .
i have i question , i get log data like this :
2018-03-01 18:03:13.504 INFO 30613 --- [nio-8040-exec-3] com.gh.controller.LogController : log/SearchIndex requestdata:|index:oodkfke|type:user|id=1|data={"data1":"data11","data2":"data22"}|
i want to use oodkfke as index, user as type , 1 as id ,then save the data into elasticsearch to use this index, type, id
you can look at logstash my config file , i donnot know where is the error ?
by the way ,i am not good at gork .
my bad , not error ,
this is the log : 2018-03-01 18:03:13.504 INFO 30613 --- [nio-8040-exec-3] com.gh.controller.LogController : log/SearchIndex 请求数据数据:|index:oodkfke|type:user|id=1|data={"data1":"data11","data2":"data22"}|
i want to set the value of elasticsearch _id to the value 1 ,and set elasticsearch index to oodkfke , and set elasticsearch type to user .
but i cannot get the value from the log data .
tag_v
March 6 |
Your question seems incomplete. what went wrong with your conf and what exactly is your requirement ? If u got any errors ping them over here.
Visit Topic or reply to this email to respond.
In Reply To
1243userGh
March 6 |
i have seen this , i donnot know the reason why his server is ok . input { tcp{ port=>3362 type="mf_data" codec=>"json_lines" } } filter{ json{source=>"message"} grok{match=>"message","documentID:%{DATA:documentID}"]} } output{ elasticsearch{ host=>"localhost" index_type=>"custom…
error is idid is nil
and _id = %{idid}
obviously, the value not trans to idid ,
i doubt my gork is right ? ,
this website http://grokdebug.herokuapp.com/?#
i put my gork and input to this ,but no response ,so i cannot judge whether my gork is right or not
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.