# Ship Logs from application server to ELK server with beats

**URL:** https://discuss.elastic.co/t/ship-logs-from-application-server-to-elk-server-with-beats/234647
**Category:** Elasticsearch
**Created:** [May 28, 2020, 4:36am UTC](https://discuss.elastic.co/t/ship-logs-from-application-server-to-elk-server-with-beats/234647 "2020-05-28T04:36:48Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vijazy](https://avatars.discourse-cdn.com/v4/letter/v/0ea827/32.png) [@vijazy](https://discuss.elastic.co/u/vijazy)
#### Post date: [May 28, 2020, 4:36am UTC](https://discuss.elastic.co/t/ship-logs-from-application-server-to-elk-server-with-beats/234647/1 "2020-05-28T04:36:48Z")

</div>

Hi ELK team,

I am building log analyzer for production environment. My scenario is, i need to setupelasticsearch,Logstash and kibana on one centos7 server which is going to use ELK server another one is apache server(remote server).

I have configured following like

(i).ELK server - elasticsearch,kibana ,logstash with nginx proxy  
(ii).Application server(apache server)- installed beats on apache server

## (i).ELK server configuration

Elasticsearch Configuration

vi /etc/elasticsearch/elasticsearch.yml

network.host: localhost

http.port: 9200

Kibana Dashboard Configuration

vi /etc/kibana/kibana.yml

server.port: 5601

server.host: "localhost"

elasticsearch.hosts: ["[http://localhost:9200](http://localhost:9200)"]

Nginx Configuration:

server {

listen 80;

server\_name 172.xx.xx.xx;

location / {

```
proxy_pass http://localhost:5601;

proxy_http_version 1.1;

proxy_set_header Upgrade $http_upgrade;

proxy_set_header Connection 'upgrade';

proxy_set_header Host $host;

proxy_cache_bypass $http_upgrade;

```

}

}

Logstash Configuration

cat /etc/logstash/conf.d/02-beats-input.conf

input {

beats {

port =\> 5044

}

}

I have configured filtersection too..

cat /etc/logstash/conf.d/30-elasticsearch-output.conf

output {

elasticsearch {

hosts =\> ["localhost:9200"]

sniffing =\> true

manage\_template =\> false

index =\> "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"

}

}

## ii) Application server Beat configuration

I have installed beats in application server and ships logs with logstash.

Filebeat configuration:

cat /etc/filebeat/filebeat.yml

output.logstash:

#the logstash hosts

hosts: ["172.xx.xx.xx:5044"]

here, i am not sure how to load filebeat index template, index and Dashboard in kibana. When i try to run  
"filebeat setup" command from apache server, i got following error.

[root@webserver ~]# filebeat setup  
Exiting: Index management requested but the Elasticsearch output is not configured/enabled.

I know if i configure filebeat with elasticsearch output, i can load indexes directly to kibana. But i don't want apache server directly contact with elasticsearch.

Can someone suggest how can i load "index, index template and dashboards" directly from apache server to kibana while configured beats output to logstash.

I have searched lot of sites, but haven't get any answers. Is there any other alternative method(like import method) to load apache server filebeat index in kibana and elk server.

I am eager to wait someone give solution for this.

Thanks  
vijazy

---

<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: [June 25, 2020, 4:36am UTC](https://discuss.elastic.co/t/ship-logs-from-application-server-to-elk-server-with-beats/234647/2 "2020-06-25T04:36:49Z")

</div>

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