Thanks. Correct me if i am wrong. You are saying to create a new yml file which will be relaoded automatically without filebeat restart. But I am looking for a feature where if I change a field value in existing yml file ( changing field "level" value as "warn" in my scenario) that field should get updated for new logs without filebeat restart. I am wondering if we have this feature in filebeat.
@Eshwar_Kumar not everything in the Filebeat configuration support live reload, but prospector related configuration supports live reloading when you define them in externals file.
In the case you are describing updating the field value from error to warn will trigger a reload.
I am newbie for this. I seriously not understood filebeat configuration and external configuration. As per my knowledge i am using filebeat.yml and i am running as "filebeat -e -c "filebeat.yml" -d "publish"". In this filebeat.yml i am mentioning prospectors which contains path and fileds to be added. Should i add same prospectors with new field values in external.yml? If not please give me sample filebeat.yml and external.yml files what to be tested. My requirement is just if i change a field value of a prospector, without reload that field value should get updated for my new logs. Please help on this.
@Eshwar_Kumar I gave you the filebeat.yml configuration and the configuration for the external file in the comment above, Like I've said you will remove the prospector definition from the filebeat.yml file and just define them in the external file. When Filebeat is running and you change the external files Filebeat will reload the configuration and use the new prospector definition.
The modification will not change how you start Filebeat you will still use the same command and arguments.
2.log file lines were not flowing in the filebeat. I have changed field value of level in 1.yml from error to debug. Now new logs were still getting value for field level as error not debug.
I followed exactly same as per documents specified and the confs you commented.
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.