In the conf file , how can I define which fields I want to upload to the ElasticSearch ?
My Json file contain one row that need to be uploaded to the ElasticSearch , So after the upload I would like to see I row under the index with the fields and values compatibility.
For example , this is my conf file:
path => ["/tmp/y4.json"]
type => "json"
start_position => "beginning"
sincedb_path => "/dev/null"
match => [ 'message', '(?"TestName":.*"Agent":"[^"]+")' ]
source => "message"
codec => rubydebug
host => "XX.XX.XX.XXX"
protocol => "http"
index => "index_junit"
I want the following fields from the Json file:
queueId , timestamp , startTime , result , duration , charset