# Filebeats only sends logs when I have filebeat -e running

**URL:** https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088
**Category:** Beats
**Tags:** filebeat
**Created:** [August 15, 2020, 9:45am UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088 "2020-08-15T09:45:48Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 15, 2020, 9:45am UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/1 "2020-08-15T09:45:48Z")

</div>

I'm new to configuring ELK stack. I had it setup without ssl and with ssl and back to without ssl. I did this because I was not able to get apache and mysql to send logs to the elk stack. I tried to send it to output.elasticsearch and could not figure out how to get the logs. I ran the setup and I saw it created the index and had no idea how to pull up the charts for either mysql or apache. I did the same with output.logstash. I noticed that when viewing in discover I see logs and if I'm not running the script filebeat -e I'm not getting any logs. I thought I only needed to setup the service and have it running. does this script need to be running in the background? I would love to be able to produce those nice dashboards shown in the examples.

---

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 15, 2020, 9:52am UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/2 "2020-08-15T09:52:13Z")

</div>

Actually I run it and it does not log much data.

---

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 15, 2020, 9:53am UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/3 "2020-08-15T09:53:00Z")

</div>

Maybe I have the configuration file wrong for logstash.

---

<div class="post-metadata">

### Author: ![Dain.Perkins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dain.perkins/32/41143_2.png) [@Dain.Perkins](https://discuss.elastic.co/u/Dain.Perkins)
#### Post date: [August 18, 2020, 3:15pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/4 "2020-08-18T15:15:15Z")

</div>

Hi @plegault,

are you sending from Filebeat to Logstash and then on to Elastic, or is Filebeat configured to send directly? (e.g. output.elasticsearch.hosts or cloud.id & cloud.auth vs. output.logstash in the filebeat.yml?

Have you enabled the apache and mysql modules in Filebeat?

Heres a few links to the detailed config options:

- Filebeat Elastic Cloud / Elasticsearch output config

- Filebeat Module Config

Thanks  
-d

---

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 18, 2020, 4:42pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/5 "2020-08-18T16:42:12Z")

</div>

Hi Dain,  
I have an ELK server setup with https.  
I setup filebeat, winlogbeat,heartbeat on the elk server.

- This server I'm running  
-- filebeat with elasticsearch and logstash modules. all to elastic not logstash  
-- heartbeat to elastic not logstash  
-- winlogbeat to elastic not logstash  
On my WordPress server:  
-- Filebeat with apache module to elasticsearch not logstash.  
I set this server up following the instructions in kibana, I get to the end "Data successfully received from this module"

I go to apache log dashboard and get this error.  
AH00112: Warning: DocumentRoot [D:/Bitnami/wampstack/apache2/docs/dummy-host2.example.com] does not exist

Under discover I see logs from the server, however only from when I ran filebeat.exe -e

I have multiple vhost on this server and would love to see the information for each

---

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 18, 2020, 4:47pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/6 "2020-08-18T16:47:13Z")

</div>

I looked at the configuration **Basic authentication:** and I'm at a lose on how to get that to work. I tried setting up passwords and received on error. I did create the certificate and could not figure out how to use that.

---

<div class="post-metadata">

### Author: ![Dain.Perkins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dain.perkins/32/41143_2.png) [@Dain.Perkins](https://discuss.elastic.co/u/Dain.Perkins)
#### Post date: [August 18, 2020, 5:03pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/7 "2020-08-18T17:03:07Z")

</div>

@plegault

How do you have Elasticsearch deployed? (Elastic Cloud, locally, docker based, via ECE/ECK orchestration?

---

<div class="post-metadata">

### Author: ![Dain.Perkins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dain.perkins/32/41143_2.png) [@Dain.Perkins](https://discuss.elastic.co/u/Dain.Perkins)
#### Post date: [August 18, 2020, 5:09pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/8 "2020-08-18T17:09:05Z")

</div>

Phil,

---

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 18, 2020, 5:34pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/9 "2020-08-18T17:34:04Z")

</div>

Locally  
I figured out the error with dummy-host

I'm running the filbeat.exe -e:  
getting  
Error fetching fields for index pattern filebeat-\* (ID: filebeat-\*)

Conflict

---

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 18, 2020, 5:45pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/10 "2020-08-18T17:45:54Z")

</div>

Locally

---

<div class="post-metadata">

### Author: ![plegault](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/plegault/32/73247_2.png) [@plegault](https://discuss.elastic.co/u/plegault)
#### Post date: [August 19, 2020, 11:58am UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/11 "2020-08-19T11:58:57Z")

</div>

@Dain.Perkins  
I'm going to start over with a new ELK server

---

<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 16, 2020, 1:59pm UTC](https://discuss.elastic.co/t/filebeats-only-sends-logs-when-i-have-filebeat-e-running/245088/12 "2020-09-16T13:59:19Z")

</div>

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