Hi.
I've configured ModSecurity to generate JSON files this way:
SecAuditEngine On
SecAuditLogType Concurrent
SecAuditLogFormat JSON
SecAuditLogStorageDir /data/nginx/log/modsecurity
This means ModSec will generate a lot of files, one for each HTTP request, in the StorageDir folder. Unfortunately FileBeat doesn't seem to play well with these files. I.e. for a file I get the following (after enabling debug):
I've looked into filebeat options but couldn't find anything possibly related to this problem. I've been suggested to comment out the ignore_older statement in config, I'm still waiting for feedback to understand if it made any improvement.
does that mean the filebeat logs your sharing with us were obtained while filebeat was configured with ignore_older:3h ?
Looks like it but the way you phrase the fact that you changed the config and are now waiting is not clear. To me it looks like the logs are from a filebeat which DOES have an ignore older set but the config snippet you have in your post shows ignore older is commmented out.
Your file is from july 17 and your filebeat log line is from july 18 so ignore_older would have ignored it, as designed, no?
Sorry not used to reverse engineer from the logs like that. You should check if the content of that file is in elasticsearch. But yeah filebeat appear to be reading it because its backing off after end of file.
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.