It is my subjective thinking that "include_lines" is working in modules. (i.e. apache2, Nginx or custom modules).
In official documentation website, "include_lines" is not mentioned within the module section. Instead, "include_lines" is covered in the filebeat.intput section (Log input | Filebeat Reference [8.11] | Elastic)
I doubt how "include_lines" (i.e. filter the logs before ingest into ES) works when using modules because we do have scenario that filter the logs and ingest what we want only.
I have a workaround now:
Use filebeat.input to configure the filebeat to read the log files, and use the "include_lines".
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.