# Compare two document in Kibana by string array field

**URL:** https://discuss.elastic.co/t/compare-two-document-in-kibana-by-string-array-field/96810
**Category:** Kibana
**Created:** [August 11, 2017, 6:12pm UTC](https://discuss.elastic.co/t/compare-two-document-in-kibana-by-string-array-field/96810 "2017-08-11T18:12:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![olegb](https://avatars.discourse-cdn.com/v4/letter/o/bbce88/32.png) [@olegb](https://discuss.elastic.co/u/olegb)
#### Post date: [August 11, 2017, 6:12pm UTC](https://discuss.elastic.co/t/compare-two-document-in-kibana-by-string-array-field/96810/1 "2017-08-11T18:12:23Z")

</div>

Hi All  
please hell me to Compare two document in Kibana by some string array field, that contains a string unique values, No order required. this array string may contain till to 3000 strings

thank you in avance

---

<div class="post-metadata">

### Author: ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)
#### Post date: [August 15, 2017, 2:40pm UTC](https://discuss.elastic.co/t/compare-two-document-in-kibana-by-string-array-field/96810/2 "2017-08-15T14:40:51Z")

</div>

Hi,

You will have to give more details. Have you ingested these two documents in Elasticsearch and then trying to show comparision in Kibana? Where do you want to show the comparision in Kibana? In one of the visualizations?

Thanks,  
Bhavya

---

<div class="post-metadata">

### Author: ![olegb](https://avatars.discourse-cdn.com/v4/letter/o/bbce88/32.png) [@olegb](https://discuss.elastic.co/u/olegb)
#### Post date: [August 16, 2017, 6:09am UTC](https://discuss.elastic.co/t/compare-two-document-in-kibana-by-string-array-field/96810/3 "2017-08-16T06:09:43Z")

</div>

Yes n one of the visualizations?

the sample of document:  
{  
"message": "All 102 data ...",  
"bId": "102",  
"sha256": " 102\_sha256\_2",  
"tags": ["tag\_1", "tag\_N"],  
"indicators": ["Ind1", "Ind2, "IND\_NN"],  
"meta\_json": " 102\_2 meta / json --- ..... "  
}  
bid, sha256 and indicators fields have a unique values.  
i should compare indicators and meta\_json fields between 2 documents, these documents I get by bid and sha256  
for instance diff bid 102 and 101 indicators:  
{  
"message": "All 101 data ...",  
"bId": "101",  
"sha256": " 101\_sha256\_1",  
"tags": ["tag\_1", "tag\_N"],  
"indicators": ["Ind1", "Ind12"],  
"meta\_json": " 102\_2 meta / json --- ..... "  
}

the result in indicators should be like "indicators": ["Ind12", "--Ind2", "--Ind\_NN"]  
or in 2 lines  
"indicators": ["Ind12", "--Ind2", "--Ind\_NN"]  
"indicators\_missing": ["Ind2", "Ind\_NN"]

the meta\_json should be treated in the same way.

thanks

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 13, 2017, 6:09am UTC](https://discuss.elastic.co/t/compare-two-document-in-kibana-by-string-array-field/96810/4 "2017-09-13T06:09:57Z")

</div>

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