# Error in initing input Filebeat

**URL:** <https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [January 11, 2019, 5:35am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840 "2019-01-11T05:35:43Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 11, 2019, 5:35am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/1 "2019-01-11T05:35:43Z")

</div>

Dear All,

Please help me to solve this issue

**Error**

bash-4.2$ ./filebeat test config -c filebeat.yml  
Config OK  
bash-4.2$ ./filebeat  
Exiting: Error in initing input: can not convert 'string' into 'bool' accessing 'filebeat.inputs.1.enabled' (source:'filebeat.yml')  
bash-4.2$ ./filebeat test config -c filebeat.yml  
Config OK  
bash-4.2$

**Filebeat.yml**

filebeat.inputs:

#-------Each - is an input. Most options can be set at the input level, so  
#-------you can use different inputs for various configurations.  
#------- Below are the input specific configurations.

- type: log  
enabled: true  
paths:
  - /app/IBM/HTTPServer/logs/access\_log.2019\*  
fields:  
log\_type: accesslog

- type: log  
enabled: true
  - /app/IBM/HTTPServer/logs/error.log\*  
fields:  
log\_type: errorlog  
#----------------------------- Logstash output --------------------------------  
output.logstash:  
#------- The Logstash hosts  
hosts: ["x.x.x.x:5044"]

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 11, 2019, 5:39am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/2 "2019-01-11T05:39:24Z")

</div>

My log file names in the path:

**Access Logs**

1. access\_log.2018-11-01-00\_00\_00
2. access\_log.2018-11-01-00\_45\_00
3. access\_log.2018-11-01-01\_30\_00 and so on...

**Error Logs**

1. errorlog.log.2018-07-02
2. errorlog.log.2018-07-09
3. errorlog.log.2018-07-11 and so on...

Kindly let me the config file is correct or not.

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 11, 2019, 6:06am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/3 "2019-01-11T06:06:47Z")

</div>

I changed my conf file

filebeat.inputs:

- type: accesslog

- type: errorlog

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [January 15, 2019, 3:51am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/4 "2019-01-15T03:51:24Z")

</div>

> [@Sripal](#):
>
> I changed my conf file

So is it working now? Or are you saying that it's not working even after you changed your config file? If it's not working, are you getting the same error as earlier or a different error?

Thanks,

Shaunak

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 18, 2019, 4:42am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/5 "2019-01-18T04:42:12Z")

</div>

Hi @shaunak,

Sorry for the delay. I'm getting same error .

I'm using filebeat 6.4.2  
There are the different yml files

1. filebeat.yml
2. filebeat-reference.yml
3. filed.yml

I want to read my access and error logs of webserver.  
both logs are present in same directory "/app/server/logpath/logs"

I have created two LS config files to read the logs.  
Kindly help me how to achieve this.

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 18, 2019, 4:56am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/6 "2019-01-18T04:56:34Z")

</div>

@shaunak

Currently i am reading only the access logs using the following configuration  
filebeat.inputs:

**--** type: log

paths:  
- /app/server/logpath/logs/access\_log.2019\*  
fields:  
log\_type: accesslog

#----------------------------- Logstash output --------------------------------  
output.logstash:  
#------ The Logstash hosts  
hosts: ["172.16.19.50:5044"]

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 22, 2019, 4:35am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/7 "2019-01-22T04:35:53Z")

</div>

HI @shaunak,

Could you please help

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 22, 2019, 5:22am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/8 "2019-01-22T05:22:12Z")

</div>

Hi All,

I changed my YML file

filebeat.prospectors:

- paths:
  - /my/log/path/access\_log.2019\*  
tags: [apache\_access]

- paths:
  - /my/log/path/error.log\*  
tags: [apache\_error]

output.logstash:  
hosts: ["172.16.19.50:5044"]

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 22, 2019, 5:23am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/9 "2019-01-22T05:23:35Z")

</div>

my pipeline.yml is

pipeline.id: test  
pipeline.workers: 1  
pipeline.batch.size: 1  
config.string: "input { generator {} } filter { sleep { time =\> 1 } } output { stdout { codec =\> plain { format =\> '1' } } }"

- pipeline.id: accesslog  
pipeline.workers: 2  
path.config: "/my/conf/file/path/apache\_accesslog.conf"
- pipeline.id: errorlog  
pipeline.batch.size: 10000  
path.config: "/my/conf/file/path/apache\_errorlog.conf"

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 22, 2019, 5:27am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/10 "2019-01-22T05:27:04Z")

</div>

both conf files:

1. apache\_accesslog.conf
2. apache\_errorlog.conf

is working fine while running independently

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 22, 2019, 5:44am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/11 "2019-01-22T05:44:13Z")

</div>

my conf files are like

**Accesslog.conf**  
input { beats { port =\> 5044 }}  
filter { if "apache\_access" in [tags] {  
if[message] =~ /^[.\*/ { grok {   
output{elasticsearch{hosts =\> "10.10.10.10"index =\> "apache\_access"  
}

**Errorlog.conf**  
input { beats { port =\> 5044 }}  
filter { if "apache\_error" in [tags] {  
if[message] =~ /^[.\*/ { grok { }  
output{elasticsearch{hosts =\> "10.10.10.10"index =\> "apache\_error"  
}

---

<div class="post-metadata">

**Author:** ![Sripal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sripal/32/36704_2.png) [@Sripal](https://discuss.elastic.co/u/Sripal)\
**Post date:** [January 22, 2019, 6:43am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/12 "2019-01-22T06:43:41Z")

</div>

my **apache\_error** index contains the value of access logs.

Why error\_log data not getting indexed?

---

<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 19, 2019, 6:43am UTC](https://discuss.elastic.co/t/error-in-initing-input-filebeat/163840/13 "2019-02-19T06:43:42Z")

</div>

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