I'm using filebeat to send log files from different servers to logstash. Srv1 has an index of nginx, while srv2 has it set to apache.
I have 2 patterns SED_NGINX_COMBINE(custom) and HTTPD_COMBINELOG (builtin).
Not sure how or what is the best way to match these records as they are coming in.
tried :
grok {
patterns_dir => ["/etc/logstash/patterns"]
match => {
"message" => "%{SED_NGINX_COMBINE}"
"message" => "%{HTTPD_COMBINELOG}"
}
but it didn't like this.
Just not sure how to go about this or should I create a second xxx.conf file for the different log files with a different index for Elasticsearch.