{
  "name": "nginx",
  "title": "Nginx",
  "version": "3.1.0",
  "release": "ga",
  "description": "Collect logs and metrics from Nginx HTTP servers with Elastic Agent.",
  "type": "integration",
  "download": "/epr/nginx/nginx-3.1.0.zip",
  "path": "/package/nginx/3.1.0",
  "icons": [
    {
      "src": "/img/logo_nginx.svg",
      "path": "/package/nginx/3.1.0/img/logo_nginx.svg",
      "title": "logo nginx",
      "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/nginx/nginx-3.1.0.zip.sig",
  "format_version": "3.0.2",
  "readme": "/package/nginx/3.1.0/docs/README.md",
  "license": "basic",
  "screenshots": [
    {
      "src": "/img/nginx-metrics-overview.png",
      "path": "/package/nginx/3.1.0/img/nginx-metrics-overview.png",
      "title": "Nginx metrics overview",
      "size": "3360x2302",
      "type": "image/png"
    },
    {
      "src": "/img/nginx-logs-access-error.png",
      "path": "/package/nginx/3.1.0/img/nginx-logs-access-error.png",
      "title": "Nginx access and error logs",
      "size": "3360x3590",
      "type": "image/png"
    },
    {
      "src": "/img/nginx-logs-overview.png",
      "path": "/package/nginx/3.1.0/img/nginx-logs-overview.png",
      "title": "Nginx logs overview",
      "size": "3360x3590",
      "type": "image/png"
    }
  ],
  "assets": [
    "/package/nginx/3.1.0/LICENSE.txt",
    "/package/nginx/3.1.0/changelog.yml",
    "/package/nginx/3.1.0/manifest.yml",
    "/package/nginx/3.1.0/docs/README.md",
    "/package/nginx/3.1.0/img/logo_nginx.svg",
    "/package/nginx/3.1.0/img/nginx-logs-access-error.png",
    "/package/nginx/3.1.0/img/nginx-logs-overview.png",
    "/package/nginx/3.1.0/img/nginx-metrics-overview.png",
    "/package/nginx/3.1.0/data_stream/access/manifest.yml",
    "/package/nginx/3.1.0/data_stream/access/sample_event.json",
    "/package/nginx/3.1.0/data_stream/error/manifest.yml",
    "/package/nginx/3.1.0/data_stream/error/sample_event.json",
    "/package/nginx/3.1.0/data_stream/stubstatus/manifest.yml",
    "/package/nginx/3.1.0/data_stream/stubstatus/sample_event.json",
    "/package/nginx/3.1.0/kibana/dashboard/nginx-023d2930-f1a5-11e7-a9ef-93c69af7b129.json",
    "/package/nginx/3.1.0/kibana/dashboard/nginx-046212a0-a2a1-11e7-928f-5dbe6f6f5519.json",
    "/package/nginx/3.1.0/kibana/dashboard/nginx-55a9e6e0-a29e-11e7-928f-5dbe6f6f5519.json",
    "/package/nginx/3.1.0/kibana/ml_module/nginx-Logs-ml.json",
    "/package/nginx/3.1.0/data_stream/access/fields/agent.yml",
    "/package/nginx/3.1.0/data_stream/access/fields/base-fields.yml",
    "/package/nginx/3.1.0/data_stream/access/fields/fields.yml",
    "/package/nginx/3.1.0/data_stream/error/fields/agent.yml",
    "/package/nginx/3.1.0/data_stream/error/fields/base-fields.yml",
    "/package/nginx/3.1.0/data_stream/error/fields/fields.yml",
    "/package/nginx/3.1.0/data_stream/stubstatus/fields/agent.yml",
    "/package/nginx/3.1.0/data_stream/stubstatus/fields/base-fields.yml",
    "/package/nginx/3.1.0/data_stream/stubstatus/fields/ecs.yml",
    "/package/nginx/3.1.0/data_stream/stubstatus/fields/fields.yml",
    "/package/nginx/3.1.0/data_stream/access/agent/stream/stream.yml.hbs",
    "/package/nginx/3.1.0/data_stream/access/elasticsearch/ingest_pipeline/default.yml",
    "/package/nginx/3.1.0/data_stream/error/agent/stream/stream.yml.hbs",
    "/package/nginx/3.1.0/data_stream/error/elasticsearch/ingest_pipeline/default.yml",
    "/package/nginx/3.1.0/data_stream/stubstatus/agent/stream/stream.yml.hbs"
  ],
  "policy_templates": [
    {
      "name": "nginx",
      "title": "Nginx logs and metrics",
      "description": "Collect logs and metrics from Nginx instances",
      "inputs": [
        {
          "type": "logfile",
          "title": "Collect logs from Nginx instances",
          "description": "Collecting Nginx access and error logs"
        },
        {
          "type": "nginx/metrics",
          "vars": [
            {
              "name": "hosts",
              "type": "text",
              "title": "Hosts",
              "multi": true,
              "required": true,
              "show_user": true,
              "default": [
                "http://127.0.0.1:80"
              ]
            }
          ],
          "title": "Collect metrics from Nginx instances",
          "description": "Collecting Nginx stub status metrics"
        }
      ],
      "multiple": true
    }
  ],
  "data_streams": [
    {
      "type": "logs",
      "dataset": "nginx.access",
      "title": "Nginx 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/nginx/access.log*"
              ]
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "nginx-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
            },
            {
              "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"
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "Nginx access logs",
          "description": "Collect Nginx access logs",
          "enabled": true,
          "ingestion_method": "File"
        }
      ],
      "package": "nginx",
      "path": "access"
    },
    {
      "type": "logs",
      "dataset": "nginx.error",
      "title": "Nginx 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/nginx/error.log*"
              ]
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": true,
              "show_user": false,
              "default": [
                "nginx-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
            },
            {
              "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"
            }
          ],
          "template_path": "stream.yml.hbs",
          "title": "Nginx error logs",
          "description": "Collect Nginx error logs",
          "enabled": true,
          "ingestion_method": "File"
        }
      ],
      "package": "nginx",
      "path": "error"
    },
    {
      "type": "metrics",
      "dataset": "nginx.stubstatus",
      "title": "Nginx stubstatus metrics",
      "release": "ga",
      "streams": [
        {
          "input": "nginx/metrics",
          "vars": [
            {
              "name": "period",
              "type": "text",
              "title": "Period",
              "multi": false,
              "required": true,
              "show_user": true,
              "default": "10s"
            },
            {
              "name": "server_status_path",
              "type": "text",
              "title": "Server Status Path",
              "multi": false,
              "required": true,
              "show_user": false,
              "default": "/nginx_status"
            },
            {
              "name": "tags",
              "type": "text",
              "title": "Tags",
              "multi": true,
              "required": false,
              "show_user": false,
              "default": [
                "nginx-stubstatus"
              ]
            },
            {
              "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": "Nginx stub status metrics",
          "description": "Collect Nginx stub status metrics",
          "enabled": true,
          "ingestion_method": "API"
        }
      ],
      "package": "nginx",
      "elasticsearch": {},
      "path": "stubstatus"
    }
  ]
}
