name: Webserver access log to ECS
priority: 20
transformations:
  - id: web_field_mapping
    type: field_name_mapping
    mapping:
      c-ip: source.ip
      cs-method: http.request.method
      cs-uri-stem: url.path
      cs-uri-query: url.query
      cs-user-agent: user_agent.original
      sc-status: http.response.status_code
    rule_conditions:
      - type: logsource
        category: webserver
