I want to load my Json file to the Elasticsearch and add i need that one of the fields will be not_analyzed
This is my conf file:
input {
file{
path => ["/root/scripts/vdm-server_10-4_parasoft_103.json"]
type => "json"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter{
json {
source => "message"
}
}
filter{
date {
match => ["create_time", "MM/dd/yyyy"]
target => "@timestamp"
}
}
example for a line from the json file:
{"project":"server" ,"branch":"10" ,"type":"Flow" ,"build_number":103 ,"severity":"Severity 1 = Highest" ,"line":804 ,"tool":"c++test" ,"pkg":"" ,"msg":"prior to initialization" ,"locfile":"/build_scripts/external/minizip/src333/zip.c" ,"rule":"BD-1" ,"auth":"hudson" ,"create_time":"06/05/2016" }
Hi @magnusbaeck , I did not find this in Logstash Online Doc. How can you configure the template directly from logstash config file ?
Thanks in advance, good day.
Antonin
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.