so, config seems to be fine, external input was loaded, but then I can see:
INFO [crawler] beater/crawler.go:71 **Loading Inputs: 0**
INFO [crawler] beater/crawler.go:108 Loading and starting Inputs completed. **Enabled inputs: 0**
I was trying various combinations but with no results, all time there is 0 inputs enabled.
However, when use the same settings but defined in one file, without external config. It works as expected.
Can anyone look at it ? Is it a bug or configuration mistake ?
Sorry for the delay in getting back to you. If you are still experiencing this issue, could you share the filebeat and logstash version you are using? Which filebeat module are you currently using? If you are not sure you can run sudo filebeat modules list on the host and list the Enabled modules. Could you provide the module's configuration that are enabled?
Where/how are you specifying the environment variable ${LOG_PATH}? I think this could be a syntax issue or a hidden space within the yml/conf.d file. Depending on your text editor you can see if there are any spaces that could cause a parse error?
Variable LOG_PATH is set right before filebeat run and seems to be fine. When filebeat input is set in the same file (filebeat.yml) it works as expected. Anyway, I replaced variable by specific path and I can observe the same behaviour.
INFO [crawler] beater/crawler.go:71 Loading **Inputs: 0**
INFO log/input.go:157 Configured paths: [/tmp/log.log]
INFO [crawler] beater/crawler.go:108 Loading and starting Inputs completed. **Enabled inputs: 0**
INFO log/input.go:157 Configured paths: [/tmp/log.log]
INFO cfgfile/reload.go:224 Loading of config files completed.
INFO beater/filebeat.go:447 Running filebeat once. Waiting for completion ...
INFO beater/filebeat.go:449 All data collection completed. Shutting down.
INFO beater/crawler.go:148 Stopping Crawler
INFO beater/crawler.go:158 Stopping **0 inputs**
As additional information,
I check also other filebeat versions up to 7.9.1 - same results, no inputs enable when using external configuration files.
Looking from the info you provided I think its a syntax/space issue as there are no inputs being listed. Could you possibly turn on logging.level: debug in your filebeat.yml config and display the logs?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.