Index data in multiple message field

for one index creating multiple _source and message field i want all my data in single message field.how it is possible please let me know i am not too much aware about elasticsearch.

I don't understand. May be you can send a JSON example of what you want to send to elasticsearch?

Actually i have send html file using logstash to elasticsearch and created an index.but when i tried to see data of html file it is not coming in single hits.it is coming in multiple hits object.
ex.

{
"took":13,
"timed_out":false,
"_shards":{
"total":5,
"successful":5,
"failed":0
},
"hits":{
"total":11,
"max_score":1.0,
"hits":[
{
"_index":"htm_bulkdrugs_test_10_may",
"_type":"logs",
"_id":"AVv2_FzIc-uW8AU86PV6",
"_score":1.0,
"_source":{
"path":"/root/logstash-5.1.1/html/Bulk drugs/767_27_9999900009931.htm",
"@timestamp":"2017-05-11T10:10:41.815Z",
"@version":"1",
"host":"coaltion-docker",
"message":"<DIV ID="9"><H2 style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: normal; color: #b3453a; text-align: left; font-style: italic; margin-bottom:-13px; word-wrap: break-word">Significant investments required to cater to regulated markets\r",
"tags":[
]
}
},
{
"_index":"htm_bulkdrugs_test_10_may",
"_type":"logs",
"_id":"AVv2_FzIc-uW8AU86PV8",
"_score":1.0,
"_source":{
"path":"/root/logstash-5.1.1/html/Bulk drugs/767_27_9999900009931.htm",
"@timestamp":"2017-05-11T10:10:41.816Z",
"@version":"1",
"host":"coaltion-docker",
"message":"<DIV ID="11"><P style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: normal; color: #4d4d4d; letter-spacing: normal; text-align: justify; word-spacing: normal; line-height: 19px; word-wrap: break-word">

\r",
"tags":[
]
}
},
{
"_index":"htm_bulkdrugs_test_10_may",
"_type":"logs",
"_id":"AVv2_FzIc-uW8AU86PV0",
"_score":1.0,
"_source":{
"path":"/root/logstash-5.1.1/html/Bulk drugs/767_27_9999900009931.htm",
"@timestamp":"2017-05-11T10:10:41.812Z",
"@version":"1",
"host":"coaltion-docker",
"message":"<DIV ID="3"><H2 style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: normal; color: #b3453a; text-align: left; font-style: italic; margin-bottom:-13px; word-wrap: break-word">Huge export opportunity in regulated markets \r",
"tags":[
]
}
}
}
]
}

}

But I want this in single hit and message field.because how should i show this content on web page.

I am uploaded a file which i wanna show on web page using elasticsearch.

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