{
  "name": "apache",
  "title": "Apache HTTP Server",
  "version": "2.1.1",
  "release": "ga",
  "source": {
    "license": "Elastic-2.0"
  },
  "description": "Collect logs and metrics from Apache servers with Elastic Agent.",
  "type": "integration",
  "download": "/epr/apache/apache-2.1.1.zip",
  "path": "/package/apache/2.1.1",
  "icons": [
    {
      "src": "/img/logo_apache.svg",
      "path": "/package/apache/2.1.1/img/logo_apache.svg",
      "title": "Apache Logo",
      "size": "32x32",
      "type": "image/svg+xml"
    }
  ],
  "conditions": {
    "kibana": {
      "version": "^8.13.0 || ^9.0.0"
    },
    "elastic": {
      "subscription": "basic"
    }
  },
  "owner": {
    "type": "elastic",
    "github": "elastic/obs-infraobs-integrations"
  },
  "categories": [
    "web",
    "observability"
  ],
  "signature_path": "/epr/apache/apache-2.1.1.zip.sig",
  "format_version": "3.1.5",
  "readme": "/package/apache/2.1.1/docs/README.md",
  "license": "basic",
  "screenshots": [
    {
      "src": "/img/apache-metrics-overview.png",
      "path": "/package/apache/2.1.1/img/apache-metrics-overview.png",
      "title": "Apache metrics overview",
      "size": "3360x3064",
      "type": "image/png"
    },
    {
      "src": "/img/apache-logs-overview.png",
      "path": "/package/apache/2.1.1/img/apache-logs-overview.png",
      "title": "Apache logs overview",
      "size": "3342x1384",
      "type": "image/png"
    }
  ],
  "assets": [
    "/package/apache/2.1.1/LICENSE.txt",
    "/package/apache/2.1.1/changelog.yml",
    "/package/apache/2.1.1/manifest.yml",
    "/package/apache/2.1.1/docs/README.md",
    "/package/apache/2.1.1/img/apache-logs-overview.png",
    "/package/apache/2.1.1/img/apache-metrics-overview.png",
    "/package/apache/2.1.1/img/logo_apache.svg",
    "/package/apache/2.1.1/data_stream/access/manifest.yml",
    "/package/apache/2.1.1/data_stream/access/sample_event.json",
    "/package/apache/2.1.1/data_stream/error/manifest.yml",
    "/package/apache/2.1.1/data_stream/error/sample_event.json",
    "/package/apache/2.1.1/data_stream/status/manifest.yml",
    "/package/apache/2.1.1/data_stream/status/sample_event.json",
    "/package/apache/2.1.1/kibana/dashboard/apache-Logs-Apache-Dashboard.json",
    "/package/apache/2.1.1/kibana/dashboard/apache-Metrics-Apache-HTTPD-server-status.json",
    "/package/apache/2.1.1/kibana/ml_module/apache-Logs-ml.json",
    "/package/apache/2.1.1/data_stream/access/fields/agent.yml",
    "/package/apache/2.1.1/data_stream/access/fields/base-fields.yml",
    "/package/apache/2.1.1/data_stream/access/fields/fields.yml",
    "/package/apache/2.1.1/data_stream/error/fields/agent.yml",
    "/package/apache/2.1.1/data_stream/error/fields/base-fields.yml",
    "/package/apache/2.1.1/data_stream/error/fields/fields.yml",
    "/package/apache/2.1.1/data_stream/status/fields/agent.yml",
    "/package/apache/2.1.1/data_stream/status/fields/base-fields.yml",
    "/package/apache/2.1.1/data_stream/status/fields/ecs.yml",
    "/package/apache/2.1.1/data_stream/status/fields/fields.yml",
    "/package/apache/2.1.1/data_stream/access/agent/stream/log.yml.hbs",
    "/package/apache/2.1.1/data_stream/access/elasticsearch/ingest_pipeline/default.yml",
    "/package/apache/2.1.1/data_stream/access/elasticsearch/ingest_pipeline/third-party.yml",
    "/package/apache/2.1.1/data_stream/error/agent/stream/log.yml.hbs",
    "/package/apache/2.1.1/data_stream/error/elasticsearch/ingest_pipeline/default.yml",
    "/package/apache/2.1.1/data_stream/error/elasticsearch/ingest_pipeline/third-party.yml",
    "/package/apache/2.1.1/data_stream/status/agent/stream/stream.yml.hbs"
  ],
  "policy_templates": [
    {
      "name": "apache",
      "title": "Apache logs and metrics",
      "description": "Collect logs and metrics from Apache instances",
      "inputs": [
        {
          "type": "logfile",
          "vars": [
            {
              "name": "condition",
              "type": "text",
              "title": "Condition",
              "description": "Condition to filter when to collect this input. See [Dynamic Input Configuration](https://www.elastic.co/guide/en/fleet/current/dynamic-input-configuration.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "title": "Collect logs from Apache instances",
          "description": "Collecting Apache access and error logs"
        },
        {
          "type": "apache/metrics",
          "vars": [
            {
              "name": "hosts",
              "type": "text",
              "title": "Hosts",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "http://127.0.0.1"
              ]
            },
            {
              "name": "condition",
              "type": "text",
              "title": "Condition",
              "description": "Condition to filter when to collect this input. See [Dynamic Input Configuration](https://www.elastic.co/guide/en/fleet/current/dynamic-input-configuration.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false
            },
            {
              "name": "ssl",
              "type": "yaml",
              "title": "SSL Configuration",
              "description": "SSL configuration options. See [documentation](https://www.elastic.co/guide/en/fleet/current/elastic-agent-ssl-configuration.html) for details.",
              "multi": false,
              "required": false,
              "show_user": false,
              "default": "#certificate_authorities:\n#  - |\n#    -----BEGIN CERTIFICATE-----\n#    MIIDCjCCAfKgAwIBAgITJ706Mu2wJlKckpIvkWxEHvEyijANBgkqhkiG9w0BAQsF\n#    ADAUMRIwEAYDVQQDDAlsb2NhbGhvc3QwIBcNMTkwNzIyMTkyOTA0WhgPMjExOTA2\n#    MjgxOTI5MDRaMBQxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEB\n#    BQADggEPADCCAQoCggEBANce58Y/JykI58iyOXpxGfw0/gMvF0hUQAcUrSMxEO6n\n#    fZRA49b4OV4SwWmA3395uL2eB2NB8y8qdQ9muXUdPBWE4l9rMZ6gmfu90N5B5uEl\n#    94NcfBfYOKi1fJQ9i7WKhTjlRkMCgBkWPkUokvBZFRt8RtF7zI77BSEorHGQCk9t\n#    /D7BS0GJyfVEhftbWcFEAG3VRcoMhF7kUzYwp+qESoriFRYLeDWv68ZOvG7eoWnP\n#    PsvZStEVEimjvK5NSESEQa9xWyJOmlOKXhkdymtcUd/nXnx6UTCFgnkgzSdTWV41\n#    CI6B6aJ9svCTI2QuoIq2HxX/ix7OvW1huVmcyHVxyUECAwEAAaNTMFEwHQYDVR0O\n#    BBYEFPwN1OceFGm9v6ux8G+DZ3TUDYxqMB8GA1UdIwQYMBaAFPwN1OceFGm9v6ux\n#    8G+DZ3TUDYxqMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAG5D\n#    874A4YI7YUwOVsVAdbWtgp1d0zKcPRR+r2OdSbTAV5/gcS3jgBJ3i1BN34JuDVFw\n#    3DeJSYT3nxy2Y56lLnxDeF8CUTUtVQx3CuGkRg1ouGAHpO/6OqOhwLLorEmxi7tA\n#    H2O8mtT0poX5AnOAhzVy7QW0D/k4WaoLyckM5hUa6RtvgvLxOwA0U+VGurCDoctu\n#    8F4QOgTAWyh8EZIwaKCliFRSynDpv3JTUwtfZkxo6K6nce1RhCWFAsMvDZL8Dgc0\n#    yvgJ38BRsFOtkRuAGSf6ZUwTO8JJRRIFnpUzXflAnGivK9M13D5GEQMmIl6U9Pvk\n#    sxSmbIUfc2SGJGCJD4I=\n#    -----END CERTIFICATE-----\n"
            }
          ],
          "title": "Collect metrics from Apache instances",
          "description": "Collecting Apache status metrics"
        }
      ],
      "multiple": true
    }
  ],
  "data_streams": [
    {
      "type": "logs",
      "dataset": "apache.access",
      "title": "Apache access logs",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "logfile",
          "vars": [
            {
              "name": "paths",
              "type": "text",
              "title": "Paths",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "/var/log/apache2/access.log*",
                "/var/log/apache2/other_vhosts_access.log*",
                "/var/log/httpd/access_log*"
              ]
            },
            {
              "name": "ignore_older",
              "type": "text",
              "title": "Ignore events older than",
              "description": "If this option is specified, events that are older than the specified amount of time are ignored. Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\".",
              "multi": false,
              "required": false,
              "show_user": false,
              "default": "72h"
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "apache-access"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "log.yml.hbs",
          "title": "Apache access logs",
          "description": "Collect Apache access logs",
          "enabled": true,
          "ingestion_method": "File"
        }
      ],
      "package": "apache",
      "path": "access"
    },
    {
      "type": "logs",
      "dataset": "apache.error",
      "title": "Apache error logs",
      "release": "ga",
      "ingest_pipeline": "default",
      "streams": [
        {
          "input": "logfile",
          "vars": [
            {
              "name": "paths",
              "type": "text",
              "title": "Paths",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "/var/log/apache2/error.log*",
                "/var/log/httpd/error_log*"
              ]
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "apache-error"
              ]
            },
            {
              "name": "preserve_original_event",
              "type": "bool",
              "title": "Preserve original event",
              "description": "Preserves a raw copy of the original event, added to the field `event.original`",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": false
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the logs are parsed. See [Processors](https://www.elastic.co/guide/en/beats/filebeat/current/filtering-and-enhancing-data.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "log.yml.hbs",
          "title": "Apache error logs",
          "description": "Collect Apache error logs",
          "enabled": true,
          "ingestion_method": "File"
        }
      ],
      "package": "apache",
      "path": "error"
    },
    {
      "type": "metrics",
      "dataset": "apache.status",
      "title": "Apache status metrics",
      "release": "ga",
      "streams": [
        {
          "input": "apache/metrics",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "30s"
            },
            {
              "name": "server_status_path",
              "type": "text",
              "title": "Server Status Path",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "/server-status"
            },
            {
              "name": "processors",
              "type": "yaml",
              "title": "Processors",
              "description": "Processors are used to reduce the number of fields in the exported event or to enhance the event with metadata. This executes in the agent before the events are shipped. See [Processors](https://www.elastic.co/guide/en/fleet/current/elastic-agent-processor-configuration.html) for details.\n",
              "multi": false,
              "required": false,
              "show_user": false
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "Apache status metrics",
          "description": "Collect Apache status metrics",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "apache",
      "elasticsearch": {},
      "path": "status"
    }
  ]
}
