Indeed your regular expression looks fine, but are these logs being read from /var/log/*.log? It looks like you are using the nginx module. Modules include their own prospector configurations, so your filebeat is probably not using this exclude_lines setting for the nginx logs.
Something you can try is to add a drop_event processor, that allows you to filter on the already parsed log lines, in your case I guess it'd be something like this:
There are several folders but among them is that of nginx and there is actually the log there
y try add this to end of the file /etc/filebeat/filebeat.yml
then I run sudo service filebeat restart
I drop filebeat-* Index in ES
I go to Kibana and check but still create docs with .js files logs
I have already searched the internet and I have not found how to send this behavior, the reason for this is that I only want to monitor my API and not my static files
You are my last hope to achieve this
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.