filebeat]# filebeat test config -c filebeat.yml
Exiting: error initializing processors: failed to make if/then/else processor: failed to initialize condition: missing or invalid condition
There are no indentation error. You can also validate your code using any of yml validator.
The error message means that there is an invalid condition specified in processors.
When using if-then-else processors we should not use when for the conditions
Thanks @sudhagar_ramesh the file conf dooesn't show error anymore !
Small probleme is it doesn't do what it was made for, none of the processors inside the if are used.
Ther may be a probleme in the condition. the file path I must spécifie in my condition is the one of the log file were I get my logs from right ?
current stat of the conf:
`#processors for Oscare
processors:
if:
contains:
log.file.path: "path1"
then:
drop_event:
- regexp:
message: "^!" #create criticity and clean messsage field
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.