Filebeat: Apache module : two paths and two access inputs to configure

Hello,

I am a newbie and i am planing to install elastic stack.

Here is my architecture

Here is what my apache module conf looks like:

#-------------------------------- Apache Module --------------------------------
- module: apache
  access:
    enabled: true
    var.paths: ["/customer1/access.log", "/customer2/access.log"]
    input: ???

My point concerne the input section. How can i

  1. add custom fields for each of my access log files (customerName: c1 or c2, env: prod)
  2. tell apache to ignore lines starting by 127.0.0.1 or localhost
  3. tell apache to ignore 24h older access log files

Thank you for your help

Hello,

No one was already facing this issue?
Is it relevant to do as follow?

- module: apache
  access:
    enabled: true
    var.paths: ["/customer1/access.log", "/customer2/access.log"]
    input:
        processors:
           - if:
                var.paths: ["/customer1/access.log"]
            then:
                add_fields:
                    customerName: c1
           - if:
                var.paths: ["/customer2/access.log"]
            then:
                add_fields:
                    customerName: c2

Thank you for your help