{
  "mappings": {
    "_default_": {
      "_all": {
        "norms": {
          "enabled": false
        }
      },
      "_meta": {
        "version": "5.6.8"
      },
      "date_detection": false,
      "dynamic_templates": [
        {
          "strings_as_keyword": {
            "mapping": {
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "string"
            },
            "match_mapping_type": "string"
          }
        }
      ],
      "properties": {
        "@timestamp": {
          "type": "date"
        },
        "apache2": {
          "properties": {
            "access": {
              "properties": {
                "agent": {
                  "index": "analyzed",
                  "norms": {
                    "enabled": false
                  },
                  "type": "string"
                },
                "body_sent": {
                  "properties": {
                    "bytes": {
                      "type": "long"
                    }
                  }
                },
                "geoip": {
                  "properties": {
                    "city_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "continent_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "country_iso_code": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "location": {
                      "type": "geo_point"
                    },
                    "region_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "http_version": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "method": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "referrer": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "remote_ip": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "response_code": {
                  "type": "long"
                },
                "url": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "user_agent": {
                  "properties": {
                    "device": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "major": {
                      "type": "long"
                    },
                    "minor": {
                      "type": "long"
                    },
                    "name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "os": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "os_major": {
                      "type": "long"
                    },
                    "os_minor": {
                      "type": "long"
                    },
                    "os_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "patch": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "user_name": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            },
            "error": {
              "properties": {
                "client": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "level": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "message": {
                  "index": "analyzed",
                  "norms": {
                    "enabled": false
                  },
                  "type": "string"
                },
                "module": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "pid": {
                  "type": "long"
                },
                "tid": {
                  "type": "long"
                }
              }
            }
          }
        },
        "auditd": {
          "properties": {
            "log": {
              "properties": {
                "a0": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "acct": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "geoip": {
                  "properties": {
                    "city_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "continent_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "country_iso_code": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "location": {
                      "type": "geo_point"
                    },
                    "region_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "item": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "items": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "new_auid": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "new_ses": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "old_auid": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "old_ses": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "pid": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "ppid": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "record_type": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "res": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "sequence": {
                  "type": "long"
                }
              }
            }
          }
        },
        "beat": {
          "properties": {
            "hostname": {
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "string"
            },
            "name": {
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "string"
            },
            "version": {
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "string"
            }
          }
        },
        "error": {
          "ignore_above": 1024,
          "index": "not_analyzed",
          "type": "string"
        },
        "fileset": {
          "properties": {
            "module": {
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "string"
            },
            "name": {
              "ignore_above": 1024,
              "index": "not_analyzed",
              "type": "string"
            }
          }
        },
        "input_type": {
          "ignore_above": 1024,
          "index": "not_analyzed",
          "type": "string"
        },
        "message": {
          "index": "analyzed",
          "norms": {
            "enabled": false
          },
          "type": "string"
        },
        "meta": {
          "properties": {
            "cloud": {
              "properties": {
                "availability_zone": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "instance_id": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "machine_type": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "project_id": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "provider": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "region": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            }
          }
        },
        "mysql": {
          "properties": {
            "error": {
              "properties": {
                "level": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "message": {
                  "index": "analyzed",
                  "norms": {
                    "enabled": false
                  },
                  "type": "string"
                },
                "thread_id": {
                  "type": "long"
                },
                "timestamp": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            },
            "slowlog": {
              "properties": {
                "host": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "id": {
                  "type": "long"
                },
                "ip": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "lock_time": {
                  "properties": {
                    "sec": {
                      "type": "float"
                    }
                  }
                },
                "query": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "query_time": {
                  "properties": {
                    "sec": {
                      "type": "float"
                    }
                  }
                },
                "rows_examined": {
                  "type": "long"
                },
                "rows_sent": {
                  "type": "long"
                },
                "timestamp": {
                  "type": "long"
                },
                "user": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            }
          }
        },
        "nginx": {
          "properties": {
            "access": {
              "properties": {
                "agent": {
                  "index": "analyzed",
                  "norms": {
                    "enabled": false
                  },
                  "type": "string"
                },
                "body_sent": {
                  "properties": {
                    "bytes": {
                      "type": "long"
                    }
                  }
                },
                "geoip": {
                  "properties": {
                    "city_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "continent_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "country_iso_code": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "location": {
                      "type": "geo_point"
                    },
                    "region_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "http_version": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "method": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "referrer": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "remote_ip": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "response_code": {
                  "type": "long"
                },
                "url": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "user_agent": {
                  "properties": {
                    "device": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "major": {
                      "type": "long"
                    },
                    "minor": {
                      "type": "long"
                    },
                    "name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "os": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "os_major": {
                      "type": "long"
                    },
                    "os_minor": {
                      "type": "long"
                    },
                    "os_name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "patch": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "user_name": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            },
            "error": {
              "properties": {
                "connection_id": {
                  "type": "long"
                },
                "level": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "message": {
                  "index": "analyzed",
                  "norms": {
                    "enabled": false
                  },
                  "type": "string"
                },
                "pid": {
                  "type": "long"
                },
                "tid": {
                  "type": "long"
                }
              }
            }
          }
        },
        "offset": {
          "type": "long"
        },
        "read_timestamp": {
          "ignore_above": 1024,
          "index": "not_analyzed",
          "type": "string"
        },
        "source": {
          "ignore_above": 1024,
          "index": "not_analyzed",
          "type": "string"
        },
        "system": {
          "properties": {
            "auth": {
              "properties": {
                "groupadd": {
                  "properties": {
                    "gid": {
                      "type": "long"
                    },
                    "name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "hostname": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "message": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "pid": {
                  "type": "long"
                },
                "program": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "ssh": {
                  "properties": {
                    "dropped_ip": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "event": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "geoip": {
                      "properties": {
                        "city_name": {
                          "ignore_above": 1024,
                          "index": "not_analyzed",
                          "type": "string"
                        },
                        "continent_name": {
                          "ignore_above": 1024,
                          "index": "not_analyzed",
                          "type": "string"
                        },
                        "country_iso_code": {
                          "ignore_above": 1024,
                          "index": "not_analyzed",
                          "type": "string"
                        },
                        "location": {
                          "type": "geo_point"
                        },
                        "region_name": {
                          "ignore_above": 1024,
                          "index": "not_analyzed",
                          "type": "string"
                        }
                      }
                    },
                    "ip": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "method": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "port": {
                      "type": "long"
                    },
                    "signature": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "sudo": {
                  "properties": {
                    "command": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "error": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "pwd": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "tty": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "user": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    }
                  }
                },
                "timestamp": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "user": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "useradd": {
                  "properties": {
                    "gid": {
                      "type": "long"
                    },
                    "home": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "name": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "shell": {
                      "ignore_above": 1024,
                      "index": "not_analyzed",
                      "type": "string"
                    },
                    "uid": {
                      "type": "long"
                    }
                  }
                }
              }
            },
            "syslog": {
              "properties": {
                "hostname": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "message": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "pid": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "program": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                },
                "timestamp": {
                  "ignore_above": 1024,
                  "index": "not_analyzed",
                  "type": "string"
                }
              }
            }
          }
        },
        "tags": {
          "ignore_above": 1024,
          "index": "not_analyzed",
          "type": "string"
        },
        "type": {
          "ignore_above": 1024,
          "index": "not_analyzed",
          "type": "string"
        }
      }
    }
  },
  "order": 0,
  "settings": {
    "index.refresh_interval": "5s"
  },
  "template": "filebeat-*"
}