i need to eliminate the header
{
"took" : 1,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
}
and informations about returned results
"hits" : {
"total" : 110,
"max_score" : 1.0,
so i want to display just the hits array, which includes the returned data
this is a part of the response
{
"took" : 2,
"timed_out" : false,
"_shards" : {
"total" : 25,
"successful" : 10,
"failed" : 0
},
"hits" : {
"total" : 200,
"max_score" : 1.0,
"hits" : [ {
"_index" : "logstash-2016.05.30",
"_type" : "log4j",
"_id" : "AVUCj6LyBTC2ElQBKf9k",
"_score" : 1.0,
"_source" : {
"message" : " retrieveValidGatewayTransmissionData :put dupsClosedMap !",
"@version" : "1",
"@timestamp" : "2016-05-30T16:46:54.391Z",
"timestamp" : 1464626814678,
"path" : "com.esprit.HelloWorldServlet",
"priority" : "WARN",
"logger_name" : "com.esprit.HelloWorldServlet",
"thread" : " [task-scheduler-5] ",
"class" : "?",
"file" : "?:?",
"method" : "?",
"host" : "10.206.206.72:51303",
"type" : "log4j",
"date" : "016-03-23 16:32:02.613 ",
"lvl" : " W ",
"gateway" : "GTW2",
"device" : "Device2",
"source" : " LogService:14 "
}
}, {
"_index" : "logstash-2016.05.30",
"_type" : "log4j",
"_id" : "AVUCj6LyBTC2ElQBKf9l",
"_score" : 1.0,
"_source" : {
"message" : " retrieveValidGatewayTransmissionData :put dupsClosedMap !",
"@version" : "1",
"@timestamp" : "2016-05-30T16:46:54.395Z",
"timestamp" : 1464626814678,
"path" : "com.esprit.HelloWorldServlet",
"priority" : "ERROR",
"logger_name" : "com.esprit.HelloWorldServlet",
"thread" : " [task-scheduler-6] ",
"class" : "?",
"file" : "?:?",
"method" : "?",
"host" : "10.206.206.72:51303",
"type" : "log4j",
"date" : "016-03-23 17:32:02.613 ",
"lvl" : " E ",
"gateway" : "GTW3",
"device" : "Device5",
"source" : " LogService:23 "
}
}]
}