{
  "_meta": {
    "documentation": "https://www.elastic.co/guide/en/ecs/current/ecs-process.html",
    "ecs_version": "1.12.2"
  },
  "template": {
    "mappings": {
      "properties": {
        "process": {
          "properties": {
            "command_line": {
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              },
              "type": "wildcard"
            },
            "entity_id": {
              "ignore_above": 1024,
              "type": "keyword",
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              }
            },
            "executable": {
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              },
              "ignore_above": 1024,
              "type": "keyword"
            },
            "name": {
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              },
              "ignore_above": 1024,
              "type": "keyword"
            },
            "parent": {
              "properties": {
                "command_line": {
                  "fields": {
                    "text": {
                      "type": "match_only_text"
                    },
                    "keyword": {
                      "type": "keyword"
                    }
                  },
                  "type": "wildcard"
                },
                "entity_id": {
                  "ignore_above": 1024,
                  "type": "keyword",
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  }
                },
                "executable": {
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  },
                  "ignore_above": 1024,
                  "type": "keyword"
                }
              }
            },
            "pe": {
              "properties": {
                "architecture": {
                  "ignore_above": 1024,
                  "type": "keyword",
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  }
                },
                "company": {
                  "ignore_above": 1024,
                  "type": "keyword",
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  }
                },
                "description": {
                  "ignore_above": 1024,
                  "type": "keyword",
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  }
                },
                "file_version": {
                  "ignore_above": 1024,
                  "type": "keyword",
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  }
                },
                "original_file_name": {
                  "ignore_above": 1024,
                  "type": "keyword",
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  }
                },
                "product": {
                  "ignore_above": 1024,
                  "type": "keyword",
                  "fields": {
                    "keyword": {
                      "type": "keyword"
                    }
                  }
                }
              }
            },
            "pid": {
              "type": "long",
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              }
            },
            "ppid": {
              "type": "long",
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              }
            },
            "working_directory": {
              "fields": {
                "keyword": {
                  "type": "keyword"
                }
              },
              "ignore_above": 1024,
              "type": "keyword"
            }
          }
        }
      }
    }
  }
}