# Filebeat Startup problem

**URL:** <https://discuss.elastic.co/t/filebeat-startup-problem/213168>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 27, 2019, 9:39am UTC](https://discuss.elastic.co/t/filebeat-startup-problem/213168 "2019-12-27T09:39:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gregory\_Anne](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregory_anne/32/60023_2.png) [@Gregory\_Anne](https://discuss.elastic.co/u/Gregory_Anne)\
**Post date:** [December 27, 2019, 9:39am UTC](https://discuss.elastic.co/t/filebeat-startup-problem/213168/1 "2019-12-27T09:39:56Z")

</div>

Hello  
**Env description :**  
I have a cluster of two nodes with a Jetty app.  
The application generate log on the file /var/log/jetty/jetty.log  
The log rotation is handle by logrotate avery day at 6:30.  
On both I run filebeat with the same configuration:

> filebeat.inputs:
> 
> - type: log  
> enabled: true  
> multiline:  
> pattern: '^[?[0-9]{4}-[0-9]{2}-[0-9]{2}|\[1\]{4}/[0-9]{2}/[0-9]{2}|^ts=[0-9]{4}-[0-9]{2}-[0-9]{2}|\[2\]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3} - - [[0-9]{1,2}/\w{3}/[0-9]{4}:'  
> negate: true  
> match: after  
> paths:  
> - /var/logs/jetty/\*.log  
> fields\_under\_root: true  
> fields:  
> application: "jetty"  
> function: "str"  
> environment: "prod"
> 
> filebeat.config.modules:  
> path: ${path.config}/modules.d/\*.yml  
> reload.enabled: false
> 
> setup.template.settings:  
> index.number\_of\_shards: 1
> 
> setup.kibana:  
> host: "[supervision.XXXXXXXX.fr](http://supervision.XXXXXXXX.fr):XXXX"
> 
> output:  
> logstash:  
> hosts: ["[supervision.XXXXXXXX.fr](http://supervision.XXXXXXXX.fr):XXXX"]  
> username: "XXXXXXXXXXXXXXXXXXX"  
> password: "XXXX"
> 
> processors:  
> - add\_host\_metadata: ~  
> # - dissect:  
> # when:  
> # message: "^[?[0-9]{4}-[0-9]{2}-[0-9]{2}"  
> # tokenizer: "%{timestamp-\>} : %{level}"  
> # field: "message"  
> # target\_prefix: "dissect"  
> # %{TIMESTAMP\_ISO8601:timestamp} : %{LOGLEVEL:level} - %{WORD:service} | %{GREEDYDATA:logmessage}

and with the logstash module configuration /etc/filebeat/modules.d/logstash.yml :

> - module: logstash  
> # logs  
> log:  
> enabled: true
> 
> # Set custom paths for the log files. If left empty,  
> # Filebeat will choose the paths depending on your OS.  
> #var.paths:
> 
> # Slow logs  
> slowlog:  
> enabled: true  
> # Set custom paths for the log files. If left empty,  
> # Filebeat will choose the paths depending on your OS.  
> #var.paths:

But only on one of them I have a consumption problem.

First this morning I observe that the logs stop to be sent to logstash since 6:30, and the Filebeat process consume lot of memory and CPU, so I decide to restart it, but it does not restart to log file processing.

Any ideas ?  
Do you want more detail ?

* * *

1. 0-9 

2. 0-9

---

<div class="post-metadata">

**Author:** ![sholzhauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sholzhauer/32/110282_2.png) [@sholzhauer](https://discuss.elastic.co/u/sholzhauer)\
**Post date:** [December 27, 2019, 12:06pm UTC](https://discuss.elastic.co/t/filebeat-startup-problem/213168/2 "2019-12-27T12:06:58Z")

</div>

Could you provide the output from the Filebeat process and/or it's log file?

---

<div class="post-metadata">

**Author:** ![Gregory\_Anne](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregory_anne/32/60023_2.png) [@Gregory\_Anne](https://discuss.elastic.co/u/Gregory_Anne)\
**Post date:** [December 27, 2019, 12:51pm UTC](https://discuss.elastic.co/t/filebeat-startup-problem/213168/3 "2019-12-27T12:51:49Z")

</div>

| 2019-12-27T09:59:16.933+0100 | INFO | crawler/crawler.go:72 | Loading Inputs: 1 |
| --- | --- | --- | --- |
| 2019-12-27T09:59:16.933+0100 | INFO | log/input.go:152 | Configured paths: [/var/log/jetty/logs/\*.log] |
| 2019-12-27T09:59:16.933+0100 | INFO | input/input.go:114 | Starting input of type: log; ID: 6813183259199911499 |
| 2019-12-27T09:59:16.935+0100 | INFO | log/harvester.go:251 | Harvester started for file: /var/log/jetty/logs/jetty.log |
| 2019-12-27T09:59:16.964+0100 | INFO | log/input.go:152 | Configured paths: [/var/log/logstash/logstash-plain\*.log] |
| 2019-12-27T09:59:16.964+0100 | INFO | log/input.go:152 | Configured paths: [/var/log/logstash/logstash-slowlog-plain\*.log] |
| 2019-12-27T09:59:16.964+0100 | INFO | crawler/crawler.go:106 | Loading and starting Inputs completed. Enabled inputs: 1 |
| 2019-12-27T09:59:16.964+0100 | INFO | cfgfile/reload.go:171 | Config reloader started |
| 2019-12-27T09:59:16.965+0100 | INFO | log/input.go:152 | Configured paths: [/var/log/logstash/logstash-plain\*.log] |
| 2019-12-27T09:59:16.966+0100 | INFO | log/input.go:152 | Configured paths: [/var/log/logstash/logstash-slowlog-plain\*.log] |
| 2019-12-27T09:59:16.966+0100 | INFO | input/input.go:114 | Starting input of type: log; ID: 10399321948351278122 |
| 2019-12-27T09:59:16.966+0100 | INFO | input/input.go:114 | Starting input of type: log; ID: 12720006207850947031 |
| 2019-12-27T09:59:16.966+0100 | INFO | cfgfile/reload.go:226 | Loading of config files completed. |

---

<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:** [January 24, 2020, 12:51pm UTC](https://discuss.elastic.co/t/filebeat-startup-problem/213168/4 "2020-01-24T12:51:57Z")

</div>

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