# How to use filebeat to collect particular kind of .log file from different hosts and display the result inside it for each host on Kibana dashboard?

**URL:** <https://discuss.elastic.co/t/how-to-use-filebeat-to-collect-particular-kind-of-log-file-from-different-hosts-and-display-the-result-inside-it-for-each-host-on-kibana-dashboard/163526>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 9, 2019, 12:09pm UTC](https://discuss.elastic.co/t/how-to-use-filebeat-to-collect-particular-kind-of-log-file-from-different-hosts-and-display-the-result-inside-it-for-each-host-on-kibana-dashboard/163526 "2019-01-09T12:09:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swati\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Swati\_Singh](https://discuss.elastic.co/u/Swati_Singh)\
**Post date:** [January 9, 2019, 12:09pm UTC](https://discuss.elastic.co/t/how-to-use-filebeat-to-collect-particular-kind-of-log-file-from-different-hosts-and-display-the-result-inside-it-for-each-host-on-kibana-dashboard/163526/1 "2019-01-09T12:09:03Z")

</div>

Hi,  
I want to use filebeat to collect a particular kind of logs from different machines and send those to my kibana-elasticsearch host. Eg. Installation logs of a particular component from all machines, stating if installation is successful or not, how can I display it on kibana?  
Can anybody help me with the configuration of filebeat wrt my scenario ?

I am using Kibana, Elasticsearch and metricbeats 6.3.2.  
Thanks.

---

<div class="post-metadata">

**Author:** ![josephjohney](https://avatars.discourse-cdn.com/v4/letter/j/eada6e/32.png) [@josephjohney](https://discuss.elastic.co/u/josephjohney)\
**Post date:** [January 9, 2019, 12:16pm UTC](https://discuss.elastic.co/t/how-to-use-filebeat-to-collect-particular-kind-of-log-file-from-different-hosts-and-display-the-result-inside-it-for-each-host-on-kibana-dashboard/163526/2 "2019-01-09T12:16:00Z")

</div>

@Swati_Singh You could use the document\_type tagging in the filebeat. If this is used with logstash, you could create filters based on the types and do selective ingest to elasticsearch.

Give the type definition in filebeat as below

- input\_type: log  
document\_type: gclog

with the logstash configuration as below:  
if [type] == "gclog" {

---

<div class="post-metadata">

**Author:** ![Swati\_Singh](https://avatars.discourse-cdn.com/v4/letter/s/e8c25b/32.png) [@Swati\_Singh](https://discuss.elastic.co/u/Swati_Singh)\
**Post date:** [January 16, 2019, 11:04am UTC](https://discuss.elastic.co/t/how-to-use-filebeat-to-collect-particular-kind-of-log-file-from-different-hosts-and-display-the-result-inside-it-for-each-host-on-kibana-dashboard/163526/3 "2019-01-16T11:04:24Z")

</div>

Thanks.  
Is it possible to achieve it using elasticsearch itself? I am a beginner in ELK. 🙂 Your support will be appreciated.

---

<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:** [February 13, 2019, 11:04am UTC](https://discuss.elastic.co/t/how-to-use-filebeat-to-collect-particular-kind-of-log-file-from-different-hosts-and-display-the-result-inside-it-for-each-host-on-kibana-dashboard/163526/4 "2019-02-13T11:04:30Z")

</div>

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