Hi everyone,
I have able to start the ES and trying to send the json document to the server by using
curl -XPUT 'http://localhost:9200/test/test/1' -d @test22.json
but i am getting the error "curl: (52) Empty reply from server"
i have checked my log file it throwing an error of below
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:372)
atio.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:358)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:926)
atio.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:129)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:571)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:474)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:428)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:398)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:877)
at java.lang.Thread.run(Thread.java:745)
Can any one suggest me what is the issue and how to fix it?
test22.json
PUT template/dynatrace
{
"order": 0,
"template": "dt",
"settings": {
"number_of_shards": "6"
},
"mappings": {
"useraction": {
"dynamic_templates": [
{
"allStrings": {
"mapping": {
"index": "not_analyzed",
"type": "string"
},
"match_mapping_type": "string",
"match": ""
}
}
],
"properties": {
"data": {
"properties": {
"startTime": {
"type": "date"
},
"endTime": {
"type": "date"
},
"visitId": {
"type": "long"
},
"tagId": {
"type": "long"
},
"agentId": {
"type": "long"
},
"clientDetails": {
"properties" : {
"gpsCoordinates" : {
"type" : "geo_point"
}
}
},
"resourceReport": {
"properties" : {
"cdn" : {
"properties": {
"domains": {
"type": "nested"
}
}
},
"thirdParty" : {
"properties": {
"domains": {
"type": "nested"
}
}
}
}
}
}
}
},
"_parent": {
"type": "visit"
}
},
"visit": {
"dynamic_templates": [
{
"allStrings": {
"mapping": {
"index": "not_analyzed",
"type": "string"
},
"match_mapping_type": "string",
"match": ""
}
}
],
"properties": {
"data": {
"properties": {
"startTime": {
"type": "date"
},
"endTime": {
"type": "date"
},
"visitId": {
"type": "long"
},
"clientDetails": {
"properties" : {
"gpsCoordinates" : {
"type" : "geo_point"
}
}
}
}
}
}
},
"clienterror": {
"dynamic_templates": [
{
"allStrings": {
"mapping": {
"index": "not_analyzed",
"type": "string"
},
"match_mapping_type": "string",
"match": ""
}
}
],
"properties": {
"data": {
"properties": {
"startTime": {
"type": "date"
},
"visitId": {
"type": "long"
},
"tagId": {
"type": "long"
},
"agentId": {
"type": "long"
},
"clientDetails": {
"properties" : {
"gpsCoordinates" : {
"type" : "geo_point"
}
}
}
}
}
},
"_parent": {
"type": "visit"
}
}
},
"aliases": {}
}