Is this community still active ?
I want to ingest two files from my web server, the apache access logs and the modsecurity logs.
The modsecurity logs I will have to setup some serious GROK filters.
Filebeat and my index pattern works fine for the access logs but when I add the modsecurity logs no logs ingest. (Modsec_audit.logs are far more random not delineated by LF CR or characters.)
How do people handle this?
I tried setting up a tag for each log and adding the tag to the index to split them into separate indexes, but was not successful.
Can I send some logs in my filebeat config to Elastic and some to Logstash ?
my enabled apache module yaml:
/etc/filebeat/modules.d/apache2.yml
- module: apache2
# Access logs
access:
enabled: true
# Set custom paths for the log files. If left empty,
# Filebeat will choose the paths depending on your OS.
#var.paths:
var.paths: ['/var/log/httpd/zones/ssl_access_log']
fields:
type: "access"
var.paths: ['/var/log/httpd/zones/modsec_audit.log']
fields:
type: "modsec"
# Error logs
error:
enabled: true
filebeat.yml
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["10.0.0.5:9200"]
index: "weblog%{[fields.type]}%"
#ilm.enabled: false
#setup.ilm.enabled: false
setup.template.name: "weblog"
setup.template.pattern: "weblog*"
filebeat test config
filebeat test output
both pass, but no new indices are created.
Tried disabling ILM and leaving default as above.