Elastic search filter plugin is not working

input {
	http {
		host => "####" # default: 0.0.0.0
    		port => # # ##default: 8080

  	}
}


filter {

  	json {
    		source => "message"
		#remove_field => [ "message","path","type","host" ]
		}

ruby {
    	  code =>"
			#hash= {'id' => 'id' }
			chumma_id=event.get('[id]')
			event.set('delete_id',chumma_id)
"
}




     elasticsearch {
          		hosts => ["####"]
          		query => 'id:%{delete_id}'
          		fields => ["author_name", "title"] 
          		enable_sort => "false"
          		sort => "comments_count"
     }


ruby {
   	  code =>"
			event.set('del_id',event.get('[author_name]'))
		"
}


	mutate {
		remove_field => ["path","type","host", "entry","headers"]
	}

}


output {
  	stdout { codec => rubydebug }


}

i am not getting the response from the elasticsearch filter plugin.can someone whats wrong.
getting only "null" ...

Please help

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.