# Architecture centralisation logs

**URL:** https://discuss.elastic.co/t/architecture-centralisation-logs/179102
**Category:** Elasticsearch
**Created:** [April 30, 2019, 2:18pm UTC](https://discuss.elastic.co/t/architecture-centralisation-logs/179102 "2019-04-30T14:18:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![icirco](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@icirco](https://discuss.elastic.co/u/icirco)
#### Post date: [April 30, 2019, 2:18pm UTC](https://discuss.elastic.co/t/architecture-centralisation-logs/179102/1 "2019-04-30T14:18:29Z")

</div>

hello,

What is the best practice to load logs data in elasticsearch when you have more than 200 servers ?  
I think I have 2 choices for my architecture :

1. On each server , I configure the elasticsearch host in my logstash conf :

output {  
elasticsearch {  
hosts =\> ["hostname:9200"]  
index =\> "${INDEX}"  
}  
}

1. I use a broker like kafka to routing all messages to elasticsearch. All logstash conf send data in the kafka broker

advantages and disadvantages for these solutions ?

---

<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: [May 28, 2019, 2:18pm UTC](https://discuss.elastic.co/t/architecture-centralisation-logs/179102/2 "2019-05-28T14:18:29Z")

</div>

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