# Combine results for user\_agent.device.name from Apache logs

**URL:** <https://discuss.elastic.co/t/combine-results-for-user-agent-device-name-from-apache-logs/247898>\
**Category:** Kibana\
**Created:** [September 8, 2020, 1:29pm UTC](https://discuss.elastic.co/t/combine-results-for-user-agent-device-name-from-apache-logs/247898 "2020-09-08T13:29:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prophoto](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@prophoto](https://discuss.elastic.co/u/prophoto)\
**Post date:** [September 8, 2020, 1:29pm UTC](https://discuss.elastic.co/t/combine-results-for-user-agent-device-name-from-apache-logs/247898/1 "2020-09-08T13:29:04Z")

</div>

How would I combine these results into a single item for all Samsung devices?

---

<div class="post-metadata">

**Author:** ![prophoto](https://avatars.discourse-cdn.com/v4/letter/p/f6c823/32.png) [@prophoto](https://discuss.elastic.co/u/prophoto)\
**Post date:** [September 8, 2020, 1:29pm UTC](https://discuss.elastic.co/t/combine-results-for-user-agent-device-name-from-apache-logs/247898/2 "2020-09-08T13:29:23Z")

</div>

![Screen Shot 2020-09-08 at 9.24.54 AM](https://us1.discourse-cdn.com/elastic/original/3X/3/7/37c402f3319d6667b18d59648270a14b5e431332.png)

---

<div class="post-metadata">

**Author:** ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)\
**Post date:** [September 9, 2020, 8:13am UTC](https://discuss.elastic.co/t/combine-results-for-user-agent-device-name-from-apache-logs/247898/3 "2020-09-09T08:13:08Z")

</div>

You need a field that just holds the term you want to see in your chart.

This can be done either before your documents are actually ingested in Elasticsearch (e.g. using an ingest pipeline or Logstash), or on the fly in Kibana (with a performance penalty) using scripted fields: [https://www.elastic.co/guide/en/kibana/current/scripted-fields.html](https://www.elastic.co/guide/en/kibana/current/scripted-fields.html)

---

<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:** [October 7, 2020, 8:13am UTC](https://discuss.elastic.co/t/combine-results-for-user-agent-device-name-from-apache-logs/247898/4 "2020-10-07T08:13:14Z")

</div>

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