> For the complete documentation index, see [llms.txt](https://ilogtail.gitbook.io/ilogtail-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilogtail.gitbook.io/ilogtail-docs/pre-release/plugins/shu-ru-cha-jian/yuan-sheng-shu-ru-cha-jian/input-host-meta.md).

# 主机元数据采集

## 简介

`input_host_meta` 定时采集主机元数据，包括主机、进程及其之间的关系。

## 事件能力

列含义见 [概览 · 事件能力列说明](https://ilogtail.gitbook.io/ilogtail-docs/pre-release/plugins/shu-ru-cha-jian/yuan-sheng-shu-ru-cha-jian/pages/V3l051tHPlzCBkmzOfvu#事件能力列说明)。

| Log | Metric | Span |
| --- | ------ | ---- |
| ✓   | —      | —    |

## 版本

[Beta](/ilogtail-docs/pre-release/plugins/stability-level.md)

## 版本说明

* 推荐版本：LoongCollector v3.2.6 及以上

## 配置参数

| 参数       | 类型，默认值          | 说明                         |
| -------- | --------------- | -------------------------- |
| Type     | string，无默认值（必填） | 插件类型，固定为`input_host_meta`。 |
| Interval | int, 60         | 采集间隔时间，单位为秒。               |

## 样例

* 采集配置

```yaml
enable: true
inputs:
  - Type: input_host_meta
flushers:
  - Type: flusher_stdout
    OnlyStdout: true
```

* 输出

```json
{
  "__domain__":"infra",
  "__entity_type__":"infra.host.process",
  "__entity_id__":"8a1aee58dcdea68434e058e48e39f965",
  "__first_observed_time__":"1735348941",
  "__last_observed_time__":"1736163039",
  "__keep_alive_seconds__":"120",
  "pid":"84450",
  "ppid":"0",
  "comm":"sh",
  "ktime":"1735348941"
}
```
